[Bug 1613573] Review Request: dsymbol - Symbol lookup support for libdparse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1613573

Robert-André Mauchin <zebob.m@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zebob.m@xxxxxxxxx



--- Comment #1 from Robert-André Mauchin <zebob.m@xxxxxxxxx> ---
 - Use:

Source0:       
https://github.com/dlang-community/dsymbol/archive/v%{version}%{?pre:-%{pre}}.tar.gz/%{name}-%{version}%{?pre:-%{pre}}.tar.gz

 - Latest version is 0.4.3

 - Proposal to convert it to Meson:
========================================================================
# debug info seem not works with D compiler
%global debug_package %{nil}

%global major_version 0
%global minor_version 4
%global patch_version 3
#%%global pre beta

Name:           dsymbol
Version:        %{major_version}.%{minor_version}.%{patch_version}
Release:        1%{?pre:.%{pre}}%{?dist}
Summary:        Symbol lookup support for libdparse
Summary(fr):    Support pour la recherche de symbol avec libdparse
License:        Boost
URL:            https://github.com/dlang-community/dsymbol

Source0:       
https://github.com/dlang-community/dsymbol/archive/v%{version}%{?pre:-%{pre}}/%{name}-%{version}%{?pre:-%{pre}}.tar.gz

Patch0:        
https://github.com/dlang-community/dsymbol/pull/91.patch#/0001-Add-Meson-build-definition.patch

ExclusiveArch:  %{ldc_arches}

BuildRequires:  ldc meson libdparse-devel containers-devel
Requires:       ldc-phobos ldc-druntime libdparse containers

%description
Symbol lookup support for libdparse.

%description -l fr
Prise en charge de la recherche de symbole pour libdparse.

%package        devel
Summary:        Development files for %{name}
Summary(fr):    Fichiers de développement pour %{name}
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
dsymbol-devel package contains header files for developing D applications
that use msgpack-d.

%description devel -l fr
Le paquet dsymbol-devel contient les fichiers d'entêtes pour développer
des applications en D utilisant dsymbol.


%package geany-tags
Summary:        Support for enable autocompletion in geany
Summary(fr):    Support pour activer l'auto-complétion dans geany
Requires:       %{name} = %{version}-%{release}
BuildArch:      noarch
BuildRequires:  geany
Requires:       geany

%description geany-tags
Enable autocompletion for dsymbol library in geany (IDE)

%description -l fr geany-tags
Active l'autocompletion pour pour la bibliothèque dsymbol dans geany (IDE)

%prep
%autosetup -p1 -n %{name}-%{version}%{?pre:-%{pre}}
# temp geany config directory for allow geany to generate tags
mkdir geany_config

%build
LDFLAGS='-Wl,-z,relro -Wl,-z,now' %meson
%meson_build

# generate doc
src_dir='src'
sources=$(find "${src_dir}" -name '*.d')
for f in ${sources[@]}; do
    d_path=$(dirname ${f});
    d_file=$(basename ${f});
    doc_file=html/${d_path/${src_dir}}/${d_file/.d/.html}
    ldc2 -I %{_includedir}/d/dparse -I %{_includedir}/d/containers -I
%{_includedir}/d/stdx-allocator -I "${src_dir}" -o- -c $f -Df ${doc_file};
done

# generate geany tags
headers=$(find src -name '*.d')
geany -c geany_config -g %{name}.d.tags ${headers[@]} 

%install
%meson_install

# geany tags
mkdir -p %{buildroot}%{_datadir}/geany/tags/
install -pm0644 %{name}.d.tags %{buildroot}/%{_datadir}/geany/tags/

%ldconfig_scriptlets

%files
%license LICENSE_1_0.txt
%doc README.md
%{_libdir}/lib%{name}.so.%{version}
%{_libdir}/lib%{name}.so.%{major_version}

%files devel
%doc html
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/d/%{name}
%{_libdir}/lib%{name}.so

%files geany-tags
%{_datadir}/geany/tags/%{name}.d.tags


%changelog
* Thu Aug  2 2018 MERCIER Jonathan <bioinfornatics at gmail.com> - 0.4.3-1
- Initial release
========================================================================

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx/message/UHU23KNAAKWBIWDNVHKCXAZSINATIHLR/




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux