move libraries from /usr/lib to /lib

Resolves: #519716
This commit is contained in:
Jan Vcelak 2011-01-25 14:44:04 +01:00
parent 14f1299fb0
commit 0042668b1b

View File

@ -1,7 +1,7 @@
Summary: A library which allows userspace access to USB devices Summary: A library which allows userspace access to USB devices
Name: libusb1 Name: libusb1
Version: 1.0.8 Version: 1.0.8
Release: 4%{?dist} Release: 5%{?dist}
Source0: http://downloads.sourceforge.net/libusb/libusb-%{version}.tar.bz2 Source0: http://downloads.sourceforge.net/libusb/libusb-%{version}.tar.bz2
License: LGPLv2+ License: LGPLv2+
Group: System Environment/Libraries 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 %patch0 -p1 -b error-access-log-message
%build %build
%configure %configure --libdir=/%{_lib}
make CFLAGS="$RPM_OPT_FLAGS" make CFLAGS="$RPM_OPT_FLAGS"
pushd doc pushd doc
make docs make docs
@ -58,7 +58,7 @@ popd
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la rm -f $RPM_BUILD_ROOT/%{_lib}/*.la
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -70,13 +70,13 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc AUTHORS COPYING README NEWS ChangeLog %doc AUTHORS COPYING README NEWS ChangeLog
%{_libdir}/*.so.* /%{_lib}/*.so.*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/pkgconfig/libusb-1.0.pc /%{_lib}/pkgconfig/libusb-1.0.pc
%{_includedir}/* %{_includedir}/*
%{_libdir}/*.so /%{_lib}/*.so
%files devel-doc %files devel-doc
%defattr(-,root,root) %defattr(-,root,root)
@ -84,9 +84,12 @@ rm -rf $RPM_BUILD_ROOT
%files static %files static
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/*.a /%{_lib}/*.a
%changelog %changelog
* Tue Jan 25 2011 Jan Vcelak <jvcelak@redhat.com> 1.0.8-5
- move libraries from /usr/lib to /lib (#519716)
* Sun Nov 07 2010 Dan Horák <dan[at]danny.cz> - 1.0.8-4 * Sun Nov 07 2010 Dan Horák <dan[at]danny.cz> - 1.0.8-4
- drop the ExcludeArch as it's causing too many troubles - drop the ExcludeArch as it's causing too many troubles