Accepting request 1174388 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1174388 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ledmon?expand=0&rev=28
This commit is contained in:
@@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- Enable building libled.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 28 04:28:18 UTC 2024 - Nicholas Yang <nicholas.yang@suse.com>
|
Thu Mar 28 04:28:18 UTC 2024 - Nicholas Yang <nicholas.yang@suse.com>
|
||||||
|
|
||||||
|
42
ledmon.spec
42
ledmon.spec
@@ -20,7 +20,7 @@ Name: ledmon
|
|||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Enclosure LED Utilities
|
Summary: Enclosure LED Utilities
|
||||||
License: GPL-2.0-only AND LGPL-2.1-or-later
|
License: GPL-2.0-only
|
||||||
Group: Hardware/Other
|
Group: Hardware/Other
|
||||||
URL: https://github.com/intel/ledmon/
|
URL: https://github.com/intel/ledmon/
|
||||||
Source0: https://github.com/intel/ledmon/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/intel/ledmon/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
@@ -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
|
ControlUtilities. They help to enable LED management for software RAID
|
||||||
solutions.
|
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
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
@@ -52,7 +70,8 @@ solutions.
|
|||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
%configure \
|
%configure \
|
||||||
--enable-systemd=yes
|
--enable-systemd=yes \
|
||||||
|
--enable-library=yes
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@@ -60,6 +79,8 @@ autoreconf -fiv
|
|||||||
ln -sv %{_sbindir}/service \
|
ln -sv %{_sbindir}/service \
|
||||||
%{buildroot}%{_sbindir}/rc%{name}
|
%{buildroot}%{_sbindir}/rc%{name}
|
||||||
rm %{buildroot}%{_datarootdir}/doc/ledmon/README.md
|
rm %{buildroot}%{_datarootdir}/doc/ledmon/README.md
|
||||||
|
rm -f %{buildroot}%{_libdir}/*.a
|
||||||
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%service_add_pre %{name}.service
|
%service_add_pre %{name}.service
|
||||||
@@ -73,8 +94,10 @@ rm %{buildroot}%{_datarootdir}/doc/ledmon/README.md
|
|||||||
%postun
|
%postun
|
||||||
%service_del_postun %{name}.service
|
%service_del_postun %{name}.service
|
||||||
|
|
||||||
|
%ldconfig_scriptlets -n libled1
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING COPYING.LIB
|
%license COPYING
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{_sbindir}/ledmon
|
%{_sbindir}/ledmon
|
||||||
%{_sbindir}/ledctl
|
%{_sbindir}/ledctl
|
||||||
@@ -84,4 +107,17 @@ rm %{buildroot}%{_datarootdir}/doc/ledmon/README.md
|
|||||||
%{_mandir}/man8/ledctl.8%{?ext_man}
|
%{_mandir}/man8/ledctl.8%{?ext_man}
|
||||||
%{_mandir}/man8/ledmon.8%{?ext_man}
|
%{_mandir}/man8/ledmon.8%{?ext_man}
|
||||||
|
|
||||||
|
%files -n libled1
|
||||||
|
%license COPYING.LIB
|
||||||
|
%{_libdir}/libled.so.1
|
||||||
|
%{_libdir}/libled.so.1.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%license COPYING.LIB
|
||||||
|
%doc src/lib/LIBRARY.md
|
||||||
|
%dir %{_includedir}/led/
|
||||||
|
%{_includedir}/led/libled.h
|
||||||
|
%{_libdir}/libled.so
|
||||||
|
%{_libdir}/pkgconfig/ledmon.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user