[gio-sharp] Change paths for mono assemblies according to updated packaging guidelines (http://fedoraproject.org

Christian Krause chkr at fedoraproject.org
Wed Oct 26 20:54:48 UTC 2011


commit ad2af2c510e07fee6b2d605ddfa192c4ac43c0d7
Author: Christian Krause <chkr at fedoraproject.org>
Date:   Wed Oct 26 22:54:43 2011 +0200

    Change paths for mono assemblies according to updated packaging
    guidelines (http://fedoraproject.org/wiki/Packaging:Mono)

 gio-sharp.spec |   17 +++++++----------
 1 files changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/gio-sharp.spec b/gio-sharp.spec
index 362f711..d7664e4 100644
--- a/gio-sharp.spec
+++ b/gio-sharp.spec
@@ -7,7 +7,7 @@
 
 Name:           gio-sharp
 Version:        %{tagname}
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        C# bindings for gio
 
 Group:          Development/Libraries
@@ -17,7 +17,6 @@ URL:            http://github.com/mono/%{name}
 # They are releases, but the file is generated on the fly.
 # The actual URL is: http://github.com/mono/$name/tarball/$tagname
 Source0:        mono-%{name}-%{tagname}-%{relvers}-%{tsuffix}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  autoconf
 BuildRequires:  automake
@@ -45,24 +44,18 @@ Development files for gio-sharp
 %setup -q -n mono-%{name}-%{dsuffix}
 
 %build
-sed -i 's|$(prefix)/lib/|$(libdir)/|' gio/Makefile.am # Fix install path
-sed -i 's|${exec_prefix}/lib|@libdir@|' gio/%{name}-2.0.pc.in # Fix libdir
 NOCONFIGURE=true ./autogen-2.22.sh
 %configure
 make # Parallel builds don't work
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
-chmod 644 `find $RPM_BUILD_ROOT%{_libdir} -name '*.dll.config'`
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+chmod 644 `find $RPM_BUILD_ROOT%{_prefix}/lib -name '*.dll.config'`
 
 %files
 %defattr(-,root,root,-)
 %doc AUTHORS COPYING NEWS README
-%{_libdir}/%{name}
+%{_prefix}/lib/%{name}
 
 %files devel
 %defattr(-,root,root,-)
@@ -70,6 +63,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/gapi-2.0/gio-api.xml
 
 %changelog
+* Wed Oct 26 2011 Christian Krause <chkr at fedoraproject.org> - 0.3-3
+- 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.3-2
 - Add mono-devel as BR for correct generation of the Requires/Provides
 


More information about the scm-commits mailing list