move shared library into libhwinfo and rename hwinfo-devel to libhwinfo-devel [release 22.1-2mamba;Tue Aug 16 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 23:46:10 +01:00
parent 157dfeaa25
commit e49ec9dfda

View File

@ -1,7 +1,7 @@
%define gitver %(echo %version | cut -d. -f1-2) %define gitver %(echo %version | cut -d. -f1-2)
Name: hwinfo Name: hwinfo
Version: 21.82 Version: 22.1
Release: 1mamba Release: 2mamba
Summary: Hardware information tool Summary: Hardware information tool
Group: System/Kernel and Hardware Group: System/Kernel and Hardware
Vendor: openmamba Vendor: openmamba
@ -19,17 +19,28 @@ BuildRequires: perl-XML-Writer
BuildRequires: perl-devel BuildRequires: perl-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: libx86emu-devel >= 3.1 BuildRequires: libx86emu-devel >= 3.1
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
License: GPL License: GPL
%description %description
A simple program that lists results from the hardware detection library. A simple program that lists results from the hardware detection library.
%package devel %package -n lib%{name}
Group: Development/Libraries Group: System/Libraries
Summary: Static libraries and headers for %{name} Summary: Shared library provided with %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} 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. A simple program that lists results from the hardware detection library.
This package contains static libraries and header files needed for development. This package contains static libraries and header files needed for development.
@ -59,19 +70,25 @@ install -d %{buildroot}%{_localstatedir}/lib/hardware/udi
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_sbindir}/hwinfo %{_sbindir}/hwinfo
%{_sbindir}/mk_isdnhwdb %{_sbindir}/mk_isdnhwdb
%{_sbindir}/getsysinfo %{_sbindir}/getsysinfo
%{_libdir}/libhd.so.*
%{_datadir}/hwinfo %{_datadir}/hwinfo
%{_mandir}/man8/hwinfo.8* %{_mandir}/man8/hwinfo.8*
%dir %{_localstatedir}/lib/hardware %dir %{_localstatedir}/lib/hardware
%dir %{_localstatedir}/lib/hardware/udi %dir %{_localstatedir}/lib/hardware/udi
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libhd.so.*
%doc COPYING %doc COPYING
%files devel %files -n lib%{name}-devel
%defattr(-,root,root) %defattr(-,root,root)
%{_sbindir}/check_hd %{_sbindir}/check_hd
%{_sbindir}/convert_hd %{_sbindir}/convert_hd
@ -81,6 +98,12 @@ install -d %{buildroot}%{_localstatedir}/lib/hardware/udi
#%doc doc/libhd/html README #%doc doc/libhd/html README
%changelog %changelog
* Tue Aug 16 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 22.1-2mamba
- move shared library into libhwinfo and rename hwinfo-devel to libhwinfo-devel
* Fri Aug 12 2022 Automatic Build System <autodist@mambasoft.it> 22.1-1mamba
- automatic version update by autodist
* Sat Jun 25 2022 Automatic Build System <autodist@mambasoft.it> 21.82-1mamba * Sat Jun 25 2022 Automatic Build System <autodist@mambasoft.it> 21.82-1mamba
- automatic version update by autodist - automatic version update by autodist