2008-09-24 00:37:35 +02:00
|
|
|
#
|
2011-11-20 09:43:19 +01:00
|
|
|
# spec file for package libusb-1_0
|
2008-09-24 00:37:35 +02:00
|
|
|
#
|
2024-02-01 14:12:24 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2008-09-24 00:37:35 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-08-30 01:37:45 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-09-24 00:37:35 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-03-20 13:23:46 +01:00
|
|
|
%define _name libusb
|
|
|
|
%define debug_package_requires libusb-1_0-0 = %{version}-%{release}
|
2008-09-24 00:37:35 +02:00
|
|
|
Name: libusb-1_0
|
2024-02-01 14:12:24 +01:00
|
|
|
Version: 1.0.27
|
2012-04-20 10:04:52 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: USB Library
|
2018-03-20 13:16:51 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2018-03-22 10:46:17 +01:00
|
|
|
Group: System/Hardware
|
2024-02-01 14:12:24 +01:00
|
|
|
URL: https://libusb.info/
|
2016-11-02 10:32:50 +01:00
|
|
|
Source: https://github.com/libusb/libusb/releases/download/v%{version}/libusb-%{version}.tar.bz2
|
2024-02-01 14:12:24 +01:00
|
|
|
Source1: https://github.com/libusb/libusb/releases/download/v%{version}/libusb-%{version}.tar.bz2.asc
|
|
|
|
Source2: %name.keyring
|
|
|
|
Source3: baselibs.conf
|
2018-03-20 13:23:46 +01:00
|
|
|
BuildRequires: dos2unix
|
|
|
|
BuildRequires: pkgconfig
|
2014-05-21 21:10:07 +02:00
|
|
|
BuildRequires: pkgconfig(libudev)
|
2008-09-24 00:37:35 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Libusb is a library that allows userspace access to USB devices.
|
|
|
|
|
|
|
|
%package -n libusb-1_0-0
|
|
|
|
Summary: USB Library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libusb-1_0-0
|
|
|
|
Libusb is a library that allows userspace access to USB devices.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: USB Library
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-04-03 18:55:35 +02:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libusb-1_0-0 = %{version}
|
2008-09-24 00:37:35 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Libusb is a library that allows userspace access to USB devices.
|
|
|
|
|
|
|
|
%prep
|
2022-02-03 23:52:03 +01:00
|
|
|
%setup -n %{_name}-%{version}
|
2018-03-20 13:23:46 +01:00
|
|
|
dos2unix NEWS
|
2008-09-24 00:37:35 +02:00
|
|
|
|
|
|
|
%build
|
2018-03-20 13:23:46 +01:00
|
|
|
%configure \
|
|
|
|
--with-pic \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--disable-static
|
|
|
|
make %{?_smp_mflags}
|
2008-09-24 00:37:35 +02:00
|
|
|
|
|
|
|
%install
|
2018-03-20 13:23:46 +01:00
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2008-09-24 00:37:35 +02:00
|
|
|
|
|
|
|
%post -n libusb-1_0-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libusb-1_0-0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libusb-1_0-0
|
2018-03-20 13:16:51 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS ChangeLog NEWS README TODO
|
2012-02-12 17:27:32 +01:00
|
|
|
%{_libdir}/*.so.*
|
2008-09-24 00:37:35 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc PORTING
|
|
|
|
%{_includedir}/libusb-1.0
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|