Accepting request 1174375 from home:dimstar:Factory

- Re-arrange spec files block to be in line with all other openSUSE
  spec files.

OBS-URL: https://build.opensuse.org/request/show/1174375
OBS-URL: https://build.opensuse.org/package/show/Base:System/ledmon?expand=0&rev=55
This commit is contained in:
Nicholas Yang 2024-05-16 07:47:04 +00:00 committed by Git OBS Bridge
parent 053a069b74
commit fdcf8e6f75
2 changed files with 27 additions and 22 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu May 16 07:01:36 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Re-arrange spec files block to be in line with all other openSUSE
spec files.
-------------------------------------------------------------------
Tue May 14 10:09:04 UTC 2024 - Nicholas Yang <nicholas.yang@suse.com>

View File

@ -45,6 +45,24 @@ The ledctl application and ledmon daemon are part of Intel(R) LED
ControlUtilities. They help to enable LED management for software RAID
solutions.
%package -n libled1
Summary: Enclosure LED Control Library
License: LGPL-2.1-or-later
%description -n libled1
libled enable enclosure LED control for applications.
%package devel
Summary: Document and Include Files for Enclosure LED Control Library
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
Requires: libled1 = %{version}-%{release}
Requires: pkgconfig
%description devel
This package contains the files that are necessary for software development
using libled.
%prep
%autosetup -p1
@ -62,7 +80,7 @@ ln -sv %{_sbindir}/service \
%{buildroot}%{_sbindir}/rc%{name}
rm %{buildroot}%{_datarootdir}/doc/ledmon/README.md
rm -f %{buildroot}%{_libdir}/*.a
rm -f %{buildroot}%{_libdir}/*.la
find %{buildroot} -type f -name "*.la" -delete -print
%pre
%service_add_pre %{name}.service
@ -76,6 +94,8 @@ rm -f %{buildroot}%{_libdir}/*.la
%postun
%service_del_postun %{name}.service
%ldconfig_scriptlets -n libled1
%files
%license COPYING
%doc README.md
@ -87,32 +107,11 @@ rm -f %{buildroot}%{_libdir}/*.la
%{_mandir}/man8/ledctl.8%{?ext_man}
%{_mandir}/man8/ledmon.8%{?ext_man}
%package -n libled1
Summary: Enclosure LED Control Library
License: LGPL-2.1-or-later
%description -n libled1
libled enable enclosure LED control for applications.
%files -n libled1
%license COPYING.LIB
%{_libdir}/libled.so.1
%{_libdir}/libled.so.1.*
%post -n libled1 -p /sbin/ldconfig
%postun -n libled1 -p /sbin/ldconfig
%package devel
Summary: Document and Include Files for Enclosure LED Control Library
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
Requires: libled1 = %{version}-%{release}
Requires: pkgconfig
%description devel
This package contains the files that are necessary for software development
using libled.
%files devel
%license COPYING.LIB
%doc src/lib/LIBRARY.md