[libusb1] move libraries from /usr/lib to /lib
jvcelak
jvcelak at fedoraproject.org
Tue Jan 25 13:47:39 UTC 2011
commit 0042668b1b3b25b869d136e67de55d93eed36c19
Author: Jan Vcelak <jvcelak at redhat.com>
Date: Tue Jan 25 14:44:04 2011 +0100
move libraries from /usr/lib to /lib
Resolves: #519716
libusb1.spec | 17 ++++++++++-------
1 files 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 <jvcelak at 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
- drop the ExcludeArch as it's causing too many troubles
More information about the scm-commits
mailing list