- 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:
Tomáš Chvátal 2018-03-20 12:23:46 +00:00 committed by Git OBS Bridge
parent 2bd7eb13be
commit 92c9861e7c
2 changed files with 19 additions and 19 deletions

View File

@ -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

View File

@ -16,22 +16,20 @@
#
%define _name libusb
%define debug_package_requires libusb-1_0-0 = %{version}-%{release}
Name: libusb-1_0
Version: 1.0.21
Release: 0
Summary: USB Library
License: LGPL-2.1-or-later
Group: System/Libraries
%define _name libusb
Url: http://libusb.info/
Source: https://github.com/libusb/libusb/releases/download/v%{version}/libusb-%{version}.tar.bz2
Source1: baselibs.conf
BuildRequires: pkg-config
%if 0%{?suse_version} >= 1200
BuildRequires: dos2unix
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libudev)
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define debug_package_requires libusb-1_0-0 = %{version}-%{release}
%description
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
%setup -q -n %{_name}-%{version}
tr -d '\r' <NEWS >NEWS.unix ; touch -r NEWS NEWS.unix ; mv NEWS.unix NEWS
dos2unix NEWS
%build
%configure\
%if 0%{?suse_version} < 1200
--disable-udev\
%endif
--with-pic\
--disable-static
make
%configure \
--with-pic \
--disable-silent-rules \
--disable-static
make %{?_smp_mflags}
%install
%makeinstall
rm -f %{buildroot}%{_libdir}/*.la
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libusb-1_0-0 -p /sbin/ldconfig
%postun -n libusb-1_0-0 -p /sbin/ldconfig
%files -n libusb-1_0-0
%defattr(-,root,root)
%license COPYING
%doc AUTHORS ChangeLog NEWS README TODO
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%doc PORTING
%{_includedir}/libusb-1.0
%{_libdir}/*.so