rpms/libnl/F-12 libnl.spec,1.30,1.31

John W. Linville linville at fedoraproject.org
Tue Dec 22 20:37:02 UTC 2009


Author: linville

Update of /cvs/pkgs/rpms/libnl/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv16266

Modified Files:
	libnl.spec 
Log Message:
Install libnl into /%{_lib} instead of %{_libdir}


Index: libnl.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libnl/F-12/libnl.spec,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -p -r1.30 -r1.31
--- libnl.spec	25 Jul 2009 06:13:31 -0000	1.30
+++ libnl.spec	22 Dec 2009 20:37:02 -0000	1.31
@@ -3,7 +3,7 @@ Group: Development/Libraries
 License: LGPLv2
 Name: libnl
 Version: 1.1
-Release: 8%{?dist}
+Release: 9%{?dist}
 URL: http://people.suug.ch/~tgr/libnl/
 Source: http://people.suug.ch/~tgr/libnl/files/libnl-%{version}.tar.gz
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
@@ -53,6 +53,13 @@ make gendoc
 %{__rm} -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 
+mkdir $RPM_BUILD_ROOT/%{_lib}
+mv $RPM_BUILD_ROOT%{_libdir}/libnl.so.* $RPM_BUILD_ROOT/%{_lib}
+for l in $RPM_BUILD_ROOT%{_libdir}/libnl.so; do
+    ln -sf $(echo %{_libdir} | \
+        sed 's,\(^/\|\)[^/][^/]*,..,g')/%{_lib}/$(readlink $l) $l
+done
+
 %clean
 %{__rm} -rf $RPM_BUILD_ROOT
 
@@ -61,7 +68,7 @@ make install DESTDIR=$RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root)
-%{_libdir}/%{name}.so.*
+/%{_lib}/%{name}.so.*
 %doc COPYING
 
 %files devel
@@ -73,6 +80,9 @@ make install DESTDIR=$RPM_BUILD_ROOT
 %{_libdir}/pkgconfig/%{name}-1.pc
 
 %changelog
+* Tue Dec 22 2009 John W. Linville <linville at redhat.com> - 1.1-9
+- Install libnl into /%{_lib} instead of %{_libdir}
+
 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list