[gkeyfile-sharp] Change paths for mono assemblies according to updated packaging guidelines (http://fedoraproject.org
Christian Krause
chkr at fedoraproject.org
Wed Oct 26 22:09:02 UTC 2011
commit fcc129a6cb96862219d85ef31b78d44842343429
Author: Christian Krause <chkr at fedoraproject.org>
Date: Thu Oct 27 00:08:55 2011 +0200
Change paths for mono assemblies according to updated packaging
guidelines (http://fedoraproject.org/wiki/Packaging:Mono)
gkeyfile-sharp.spec | 21 +++++++++++++--------
1 files changed, 13 insertions(+), 8 deletions(-)
---
diff --git a/gkeyfile-sharp.spec b/gkeyfile-sharp.spec
index c47a04e..c50ccb4 100644
--- a/gkeyfile-sharp.spec
+++ b/gkeyfile-sharp.spec
@@ -7,7 +7,7 @@
Name: gkeyfile-sharp
Version: 0.1
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: C# bindings for glib2's keyfile implementation
Group: Development/Libraries
@@ -48,17 +48,18 @@ Development files for gkeyfile-sharp
%patch1 -p1 -b dllimport-fix
%build
-sed -i 's|${exec_prefix}/lib|@libdir@|' %{name}.pc.in # Fix libdir
-sed -i 's|^\./configure.*||' autogen.sh # Remove the configure step, we'll do it manually
./autogen.sh
-%configure
+%configure --libdir=%{_prefix}/lib
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
-chmod 644 `find $RPM_BUILD_ROOT%{_libdir}/mono -name '*.dll.config'`
-rm -f $RPM_BUILD_ROOT%{_libdir}/mono/%{name}/%{name}.dll.config
+chmod 644 `find $RPM_BUILD_ROOT%{_prefix}/lib/mono -name '*.dll.config'`
+rm -f $RPM_BUILD_ROOT%{_prefix}/lib/mono/%{name}/%{name}.dll.config
+
+mkdir -p %{buildroot}%{_libdir}/pkgconfig
+test "%{_libdir}" = "%{_prefix}/lib" || mv %{buildroot}%{_prefix}/lib/pkgconfig/*.pc %{buildroot}%{_libdir}/pkgconfig/
%clean
rm -rf $RPM_BUILD_ROOT
@@ -66,14 +67,18 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog LICENSE.LGPL NEWS
-%{_libdir}/mono/gac/%{name}
-%{_libdir}/mono/%{name}
+%{_prefix}/lib/mono/gac/%{name}
+%{_prefix}/lib/mono/%{name}
%files devel
%defattr(-,root,root,-)
%{_libdir}/pkgconfig/%{name}.pc
%changelog
+* Thu Oct 27 2011 Christian Krause <chkr at fedoraproject.org> - 0.1-8
+- Change paths for mono assemblies according to updated packaging
+ guidelines (http://fedoraproject.org/wiki/Packaging:Mono)
+
* Sun May 08 2011 Christian Krause <chkr at fedoraproject.org> - 0.1-7
- Add mono-devel as BR for correct generation of the Requires/Provides
More information about the scm-commits
mailing list