libusb/libusb.spec
Funda Wang 2f8fc4bc12 cleanup spec
(cherry picked from commit 552ec57fa4e1ddfbfa4555913dd0eb3a30d3b379)
2025-01-26 11:44:33 +08:00

81 lines
1.9 KiB
RPMSpec

Name: libusb
Epoch: 1
Version: 0.1.8
Release: 2
Summary: USB Library
License: LGPLv2+
URL: https://sourceforge.net/projects/libusb/
Source0: https://downloads.sourceforge.net/libusb/libusb-compat-%{version}.tar.bz2
Patch0: 0000-Link-with-znodelete-to-disallow-unloading.patch
BuildRequires: gcc
BuildRequires: autoconf automake libtool
BuildREquires: pkgconfig(libusb-1.0) >= 0.9.1
%description
This package provides a library that allows userspace access to USB devices.
%package devel
Summary: USB Library
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
%description devel
This package contains the files needed to develop applications that use libusb-0.1.
%prep
%autosetup -n libusb-compat-%{version} -p1
%build
./autogen.sh
%configure --disable-static
%make_build
%check
%make_build check
%install
%make_install
%delete_la
%files
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/libusb-0.1.so.*
%files devel
%{_bindir}/*
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/libusb.so
%changelog
* Tue Sep 03 2024 Funda Wang <fundawang@yeah.net> - 1:0.1.8-2
- cleanup spec
* Mon Jul 17 2023 Kunlin Yang <yangkunlin7@huawei.com> - 1:0.1.8-1
- update from 0.1.5 to 0.1.8
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1:0.1.5-18
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
* Wed Nov 4 2020 lixiaokeng <lixiaokeng@hauwei.com> - 1:0.1.5-17
- add make check
* Sun Jul 5 2020 Zhiqiang Liu <lzhq28@mail.ustc.edu.cn> - 1:0.1.5-16
- remove useless readme files.
* Tue Sep 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:0.1.5-15
- Type:enhancemnet
- ID:NA
- SUG:restart
- DESCi:openEuler Debranding
* Wed Aug 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:0.1.5-14
- Type:other
- ID:NA
- SUG:NA
- DESC:rename patches
* Mon Apr 15 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:0.1.5-13
- Package Initialization