From e49ec9dfda6bb48afc9c4bfd9ca1fc867f7438e6 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 23:46:10 +0100 Subject: [PATCH] move shared library into libhwinfo and rename hwinfo-devel to libhwinfo-devel [release 22.1-2mamba;Tue Aug 16 2022] --- hwinfo.spec | 39 +++++++++++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/hwinfo.spec b/hwinfo.spec index 4983ffd..0f4b5df 100644 --- a/hwinfo.spec +++ b/hwinfo.spec @@ -1,7 +1,7 @@ %define gitver %(echo %version | cut -d. -f1-2) Name: hwinfo -Version: 21.82 -Release: 1mamba +Version: 22.1 +Release: 2mamba Summary: Hardware information tool Group: System/Kernel and Hardware Vendor: openmamba @@ -19,17 +19,28 @@ BuildRequires: perl-XML-Writer BuildRequires: perl-devel ## AUTOBUILDREQ-END BuildRequires: libx86emu-devel >= 3.1 +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} License: GPL %description A simple program that lists results from the hardware detection library. -%package devel -Group: Development/Libraries -Summary: Static libraries and headers for %{name} +%package -n lib%{name} +Group: System/Libraries +Summary: Shared library provided with %{name} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} -%description devel +%description -n lib%{name} +This package contains the shared library provided with %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Static libraries and headers for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Provides: hwinfo-devel +Obsoletes: hwinfo-devel <= 22.1-1mamba + +%description -n lib%{name}-devel A simple program that lists results from the hardware detection library. This package contains static libraries and header files needed for development. @@ -59,19 +70,25 @@ install -d %{buildroot}%{_localstatedir}/lib/hardware/udi %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + %files %defattr(-,root,root) %{_sbindir}/hwinfo %{_sbindir}/mk_isdnhwdb %{_sbindir}/getsysinfo -%{_libdir}/libhd.so.* %{_datadir}/hwinfo %{_mandir}/man8/hwinfo.8* %dir %{_localstatedir}/lib/hardware %dir %{_localstatedir}/lib/hardware/udi + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libhd.so.* %doc COPYING -%files devel +%files -n lib%{name}-devel %defattr(-,root,root) %{_sbindir}/check_hd %{_sbindir}/convert_hd @@ -81,6 +98,12 @@ install -d %{buildroot}%{_localstatedir}/lib/hardware/udi #%doc doc/libhd/html README %changelog +* Tue Aug 16 2022 Silvan Calarco 22.1-2mamba +- move shared library into libhwinfo and rename hwinfo-devel to libhwinfo-devel + +* Fri Aug 12 2022 Automatic Build System 22.1-1mamba +- automatic version update by autodist + * Sat Jun 25 2022 Automatic Build System 21.82-1mamba - automatic version update by autodist