SHA256
1
0
forked from pool/libusb-1_0

Accepting request 72927 from hardware

- move libusb from /usr to / to make it usable for other packages
  and work around rpmlint stupidity

OBS-URL: https://build.opensuse.org/request/show/72927
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libusb-1_0?expand=0&rev=18
This commit is contained in:
Sascha Peilicke 2011-06-09 10:40:12 +00:00 committed by Git OBS Bridge
commit 17bb4229a1
2 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jun 1 10:48:18 UTC 2011 - seife+obs@b1-systems.com
- move libusb from /usr to / to make it usable for other packages
and work around rpmlint stupidity
-------------------------------------------------------------------
Mon Jun 21 12:00:40 CEST 2010 - opensuse@sukimashita.com

View File

@ -58,12 +58,21 @@ Libusb is a library that allows userspace access to USB devices.
%build
mkdir m4 ; autoreconf -f -i
%configure\
--libdir=/%{_lib} \
--disable-static
make %{?jobs:-j%jobs}
%install
%makeinstall
%{__rm} -f %{buildroot}%{_libdir}/*.la
install -d -m 0755 %{buildroot}%{_libdir}
for i in %{buildroot}/%{_lib}/*.so; do
link=$(readlink $i)
ln -s /%{_lib}/$link %{buildroot}%{_libdir}/$(basename $i)
rm $i
done
mv %{buildroot}/%{_lib}/pkgconfig %{buildroot}%{_libdir}
%{__rm} -f %{buildroot}/%{_lib}/*.la
%post -n libusb-1_0-0 -p /sbin/ldconfig
@ -72,7 +81,7 @@ make %{?jobs:-j%jobs}
%files -n libusb-1_0-0
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
%{_libdir}/*.so.*
/%{_lib}/*.so.*
%files devel
%defattr(-,root,root)