- Use dos2unix to generate the non-windows trailing on files
- Remove sle11 support as it got borged with last commit and we don't mostly need it to build there OBS-URL: https://build.opensuse.org/package/show/hardware/libusb-1_0?expand=0&rev=51
This commit is contained in:
parent
2bd7eb13be
commit
92c9861e7c
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 20 12:18:32 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Use dos2unix to generate the non-windows trailing on files
|
||||||
|
- Remove sle11 support as it got borged with last commit and
|
||||||
|
we don't mostly need it to build there
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Mar 20 13:10:13 CET 2018 - kukuk@suse.de
|
Tue Mar 20 13:10:13 CET 2018 - kukuk@suse.de
|
||||||
|
|
||||||
|
@ -16,22 +16,20 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define _name libusb
|
||||||
|
%define debug_package_requires libusb-1_0-0 = %{version}-%{release}
|
||||||
Name: libusb-1_0
|
Name: libusb-1_0
|
||||||
Version: 1.0.21
|
Version: 1.0.21
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: USB Library
|
Summary: USB Library
|
||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
%define _name libusb
|
|
||||||
Url: http://libusb.info/
|
Url: http://libusb.info/
|
||||||
Source: https://github.com/libusb/libusb/releases/download/v%{version}/libusb-%{version}.tar.bz2
|
Source: https://github.com/libusb/libusb/releases/download/v%{version}/libusb-%{version}.tar.bz2
|
||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
BuildRequires: pkg-config
|
BuildRequires: dos2unix
|
||||||
%if 0%{?suse_version} >= 1200
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: pkgconfig(libudev)
|
BuildRequires: pkgconfig(libudev)
|
||||||
%endif
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%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.
|
||||||
@ -54,33 +52,28 @@ Libusb is a library that allows userspace access to USB devices.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{_name}-%{version}
|
%setup -q -n %{_name}-%{version}
|
||||||
tr -d '\r' <NEWS >NEWS.unix ; touch -r NEWS NEWS.unix ; mv NEWS.unix NEWS
|
dos2unix NEWS
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
%configure \
|
||||||
%if 0%{?suse_version} < 1200
|
|
||||||
--disable-udev\
|
|
||||||
%endif
|
|
||||||
--with-pic \
|
--with-pic \
|
||||||
|
--disable-silent-rules \
|
||||||
--disable-static
|
--disable-static
|
||||||
make
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
%make_install
|
||||||
rm -f %{buildroot}%{_libdir}/*.la
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
%post -n libusb-1_0-0 -p /sbin/ldconfig
|
%post -n libusb-1_0-0 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libusb-1_0-0 -p /sbin/ldconfig
|
%postun -n libusb-1_0-0 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n libusb-1_0-0
|
%files -n libusb-1_0-0
|
||||||
%defattr(-,root,root)
|
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc AUTHORS ChangeLog NEWS README TODO
|
%doc AUTHORS ChangeLog NEWS README TODO
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc PORTING
|
%doc PORTING
|
||||||
%{_includedir}/libusb-1.0
|
%{_includedir}/libusb-1.0
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
|
Loading…
x
Reference in New Issue
Block a user