diff --git a/mono-cecil.pc b/mono-cecil.pc new file mode 100644 index 0000000..51d64c2 --- /dev/null +++ b/mono-cecil.pc @@ -0,0 +1,7 @@ +assemblies_dir=/usr/lib/mono +Libraries=${assemblies_dir}/gac/Mono.Cecil/0.9.6.0__0738eb9f132ed756/Mono.Cecil.dll + +Name: Mono Cecil +Description: Library to generate and inspect programs and libraries in the ECMA CIL form +Version: 0.9.6.0 +Libs: -r:Mono.Cecil.dll diff --git a/mono-cecil.spec b/mono-cecil.spec index 7d9724e..7cc86a7 100644 --- a/mono-cecil.spec +++ b/mono-cecil.spec @@ -9,11 +9,12 @@ Name: mono-cecil Version: 0.9.6 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Library to generate and inspect programs and libraries in the ECMA CIL form License: MIT URL: http://www.mono-project.com/Cecil Source0: https://github.com/jbevain/cecil/archive/%{version}/cecil-%{version}.tar.gz +Source1: %{name}.pc Patch0: %{name}-nobuild-tests.patch # JIT only available on these: ExclusiveArch: %mono_arches @@ -34,6 +35,16 @@ modified assembly. Today it is used by the Mono Debugger, the bug-finding and compliance checking tool Gendarme, MoMA, DB4O, as well as many other tools. +%package devel +Summary: pkgconfig file for Mono.Cecil +Group: Development/Languages +Requires: mono-cecil = %{version}-%{release} +Requires: pkgconfig + +%description devel +This package contains the cecil.pc file +which is required by other packages that reference Mono.Cecil.dll + %prep %setup -qn cecil-%{version} @@ -51,13 +62,21 @@ gacutil -i Mono.Cecil.Mdb.dll -f -package Mono.Cecil -root %{buildroot}/usr/lib gacutil -i Mono.Cecil.Pdb.dll -f -package Mono.Cecil -root %{buildroot}/usr/lib gacutil -i Mono.Cecil.Rocks.dll -f -package Mono.Cecil -root %{buildroot}/usr/lib cd - +mkdir -p %{buildroot}/%{_libdir}/pkgconfig/ +%{__install} -m0644 %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/cecil.pc %files %doc %{_monogacdir}/Mono.Cecil* %{_monodir}/Mono.Cecil* +%files devel +%{_libdir}/pkgconfig/cecil.pc + %changelog +* Sat Aug 06 2016 Timotheus Pokorra - 0.9.6-5 +- add cecil.pc + * Thu Feb 04 2016 Fedora Release Engineering - 0.9.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild