From 0042668b1b3b25b869d136e67de55d93eed36c19 Mon Sep 17 00:00:00 2001 From: Jan Vcelak Date: Tue, 25 Jan 2011 14:44:04 +0100 Subject: [PATCH] move libraries from /usr/lib to /lib Resolves: #519716 --- libusb1.spec | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/libusb1.spec b/libusb1.spec index 2abb61f..7babc79 100644 --- a/libusb1.spec +++ b/libusb1.spec @@ -1,7 +1,7 @@ Summary: A library which allows userspace access to USB devices Name: libusb1 Version: 1.0.8 -Release: 4%{?dist} +Release: 5%{?dist} Source0: http://downloads.sourceforge.net/libusb/libusb-%{version}.tar.bz2 License: LGPLv2+ Group: System Environment/Libraries @@ -49,7 +49,7 @@ This package contains static libraries to develop applications that use libusb1. %patch0 -p1 -b error-access-log-message %build -%configure +%configure --libdir=/%{_lib} make CFLAGS="$RPM_OPT_FLAGS" pushd doc make docs @@ -58,7 +58,7 @@ popd %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT -rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +rm -f $RPM_BUILD_ROOT/%{_lib}/*.la %clean rm -rf $RPM_BUILD_ROOT @@ -70,13 +70,13 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc AUTHORS COPYING README NEWS ChangeLog -%{_libdir}/*.so.* +/%{_lib}/*.so.* %files devel %defattr(-,root,root) -%{_libdir}/pkgconfig/libusb-1.0.pc +/%{_lib}/pkgconfig/libusb-1.0.pc %{_includedir}/* -%{_libdir}/*.so +/%{_lib}/*.so %files devel-doc %defattr(-,root,root) @@ -84,9 +84,12 @@ rm -rf $RPM_BUILD_ROOT %files static %defattr(-,root,root) -%{_libdir}/*.a +/%{_lib}/*.a %changelog +* Tue Jan 25 2011 Jan Vcelak 1.0.8-5 +- move libraries from /usr/lib to /lib (#519716) + * Sun Nov 07 2010 Dan HorĂ¡k - 1.0.8-4 - drop the ExcludeArch as it's causing too many troubles