From 552ec57fa4e1ddfbfa4555913dd0eb3a30d3b379 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Tue, 3 Sep 2024 09:45:36 +0800 Subject: [PATCH] cleanup spec --- libusb.spec | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/libusb.spec b/libusb.spec index 37bdd1f..a6972be 100644 --- a/libusb.spec +++ b/libusb.spec @@ -1,13 +1,15 @@ Name: libusb Epoch: 1 Version: 0.1.8 -Release: 1 +Release: 2 Summary: USB Library License: LGPLv2+ -URL: http://sourceforge.net/projects/libusb/ -Source0: http://downloads.sourceforge.net/libusb/libusb-compat-%{version}.tar.bz2 +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 libusb1-devel libtool +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. @@ -28,19 +30,16 @@ This package contains the files needed to develop applications that use libusb-0 %make_build %check -make check +%make_build check %install %make_install - -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig +%delete_la %files -%doc AUTHORS COPYING ChangeLog NEWS README +%license COPYING +%doc AUTHORS ChangeLog NEWS README %{_libdir}/libusb-0.1.so.* -%{_libdir}/libusb.la %files devel %{_bindir}/* @@ -49,6 +48,9 @@ make check %{_libdir}/libusb.so %changelog +* Tue Sep 03 2024 Funda Wang - 1:0.1.8-2 +- cleanup spec + * Mon Jul 17 2023 Kunlin Yang - 1:0.1.8-1 - update from 0.1.5 to 0.1.8 -- Gitee