Accepting request 104140 from home:elvigia:branches:hardware
- Libraries back in %{_libdir}, /usr merge project. OBS-URL: https://build.opensuse.org/request/show/104140 OBS-URL: https://build.opensuse.org/package/show/hardware/libusb-1_0?expand=0&rev=23
This commit is contained in:
parent
5300554eaf
commit
8f29df0a42
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Feb 12 15:11:04 UTC 2012 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
- Libraries back in %{_libdir}, /usr merge project.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Nov 24 16:40:21 UTC 2011 - dimstar@opensuse.org
|
Thu Nov 24 16:40:21 UTC 2011 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libusb-1_0
|
# spec file for package libusb-1_0
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -15,29 +15,27 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
|
|
||||||
Name: libusb-1_0
|
Name: libusb-1_0
|
||||||
%define _name libusb
|
%define _name libusb
|
||||||
Url: http://www.libusb.org/
|
Url: http://www.libusb.org/
|
||||||
License: LGPL-2.1+
|
|
||||||
Summary: USB Library
|
Summary: USB Library
|
||||||
|
License: LGPL-2.1+
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Version: 1.0.8_1.0.9rc3
|
Version: 1.0.8_1.0.9rc3
|
||||||
Release: 1
|
Release: 0
|
||||||
%define _version f07a4a7
|
%define _version f07a4a7
|
||||||
Source: %{_name}-%{version}.tar.bz2
|
Source: %{_name}-%{version}.tar.bz2
|
||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: libtool pkg-config
|
BuildRequires: libtool
|
||||||
|
BuildRequires: pkg-config
|
||||||
%define debug_package_requires libusb-1_0-0 = %{version}-%{release}
|
%define debug_package_requires libusb-1_0-0 = %{version}-%{release}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Libusb is a library that allows userspace access to USB devices.
|
Libusb is a library that allows userspace access to USB devices.
|
||||||
|
|
||||||
%package -n libusb-1_0-0
|
%package -n libusb-1_0-0
|
||||||
License: LGPL-2.1+
|
|
||||||
Summary: USB Library
|
Summary: USB Library
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
@ -45,7 +43,6 @@ Group: System/Libraries
|
|||||||
Libusb is a library that allows userspace access to USB devices.
|
Libusb is a library that allows userspace access to USB devices.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
License: LGPL-2.1+
|
|
||||||
Summary: USB Library
|
Summary: USB Library
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libusb-1_0-0 = %{version} glibc-devel
|
Requires: libusb-1_0-0 = %{version} glibc-devel
|
||||||
@ -58,22 +55,12 @@ Libusb is a library that allows userspace access to USB devices.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir m4 ; autoreconf -f -i
|
mkdir m4 ; autoreconf -f -i
|
||||||
%configure\
|
%configure --with-pic --disable-static
|
||||||
--libdir=/%{_lib} \
|
|
||||||
--disable-static
|
|
||||||
make %{?jobs:-j%jobs}
|
make %{?jobs:-j%jobs}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
%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
|
%post -n libusb-1_0-0 -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -82,7 +69,7 @@ mv %{buildroot}/%{_lib}/pkgconfig %{buildroot}%{_libdir}
|
|||||||
%files -n libusb-1_0-0
|
%files -n libusb-1_0-0
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS COPYING NEWS README THANKS TODO
|
%doc AUTHORS COPYING NEWS README THANKS TODO
|
||||||
/%{_lib}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user