Accepting request 72442 from home:seife:branches: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/72442
OBS-URL: https://build.opensuse.org/package/show/hardware/libusb-1_0?expand=0&rev=16
This commit is contained in:
Stefan Seyfried 2011-06-01 14:31:44 +00:00 committed by Git OBS Bridge
parent c2ccf09b1a
commit 49cf252d1a
4 changed files with 32 additions and 9 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:39bb03dfcc9758c40948d92c1ec5dd90aebd972e67b921f0cc1aa610fb87db9d
size 322956

3
libusb-1.0.8.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:21d0d3a5710f7f4211c595102c6b9eccb42435a17a4f5bd2c3f4166ab1badba9
size 331820

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
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
- Updated to version 1.0.8:
* Bug fixes and documentation tweaks
* Add more interface class definitions
- This release fixes a crash for kernel's with debug flag enabled
-------------------------------------------------------------------
Sat Apr 24 10:14:18 UTC 2010 - coolo@novell.com

View File

@ -1,5 +1,5 @@
#
# spec file for package libusb-1_0 (Version 1.0.6)
# spec file for package libusb-1_0 (Version 1.0.8)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -20,12 +20,12 @@
Name: libusb-1_0
%define _name libusb
Url: http://libusb.wiki.sourceforge.net/Libusb1.0
Url: http://www.libusb.org/
License: LGPLv2.1+
Summary: USB Library
Group: System/Libraries
Version: 1.0.6
Release: 4
Version: 1.0.8
Release: 1
Source: %{_name}-%{version}.tar.bz2
Source2: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -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)