2013-12-06 10:52:18 +00:00
|
|
|
#
|
|
|
|
# spec file for package ledmon
|
|
|
|
#
|
2024-04-02 08:33:32 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2013-12-06 10:52:18 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-10-14 06:06:03 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-12-06 10:52:18 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: ledmon
|
2024-04-02 08:33:32 +00:00
|
|
|
Version: 1.0.0
|
2014-09-03 16:26:44 +00:00
|
|
|
Release: 0
|
2013-12-06 10:52:18 +00:00
|
|
|
Summary: Enclosure LED Utilities
|
2024-05-15 04:02:28 +00:00
|
|
|
License: GPL-2.0-only
|
2014-01-10 08:50:56 +00:00
|
|
|
Group: Hardware/Other
|
2019-12-13 17:15:27 +00:00
|
|
|
URL: https://github.com/intel/ledmon/
|
2023-05-18 11:44:43 +00:00
|
|
|
Source0: https://github.com/intel/ledmon/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2022-07-18 19:38:42 +00:00
|
|
|
Patch0: harden_ledmon.service.patch
|
2019-12-13 17:15:27 +00:00
|
|
|
BuildRequires: autoconf
|
2024-04-02 08:33:32 +00:00
|
|
|
BuildRequires: autoconf-archive
|
2019-12-13 17:15:27 +00:00
|
|
|
BuildRequires: automake
|
2024-04-02 08:33:32 +00:00
|
|
|
BuildRequires: check-devel
|
2013-12-06 10:52:18 +00:00
|
|
|
BuildRequires: libsgutils-devel
|
2024-04-02 08:33:32 +00:00
|
|
|
BuildRequires: libtool
|
2019-12-13 17:15:27 +00:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: systemd-rpm-macros
|
2020-05-20 09:46:35 +00:00
|
|
|
BuildRequires: pkgconfig(libpci)
|
2019-12-13 17:15:27 +00:00
|
|
|
BuildRequires: pkgconfig(libudev)
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
2013-12-06 10:52:18 +00:00
|
|
|
Provides: sgpio:/sbin/ledmon
|
2015-04-23 06:01:34 +00:00
|
|
|
Provides: sgpio:/{%{_bindir}}/ledctl
|
2019-12-13 17:15:27 +00:00
|
|
|
%{?systemd_requires}
|
2013-12-06 10:52:18 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The ledctl application and ledmon daemon are part of Intel(R) LED
|
|
|
|
ControlUtilities. They help to enable LED management for software RAID
|
|
|
|
solutions.
|
|
|
|
|
|
|
|
%prep
|
2021-10-16 09:50:31 +00:00
|
|
|
%autosetup -p1
|
2013-12-06 10:52:18 +00:00
|
|
|
|
|
|
|
%build
|
2019-12-13 17:15:27 +00:00
|
|
|
%define _lto_cflags %{nil}
|
|
|
|
autoreconf -fiv
|
|
|
|
%configure \
|
2024-05-15 04:02:28 +00:00
|
|
|
--enable-systemd=yes \
|
|
|
|
--enable-library=yes
|
2019-12-13 17:15:27 +00:00
|
|
|
%make_build
|
2013-12-06 10:52:18 +00:00
|
|
|
|
|
|
|
%install
|
2017-01-02 08:53:35 +00:00
|
|
|
%make_install
|
2020-05-20 09:46:35 +00:00
|
|
|
ln -sv %{_sbindir}/service \
|
|
|
|
%{buildroot}%{_sbindir}/rc%{name}
|
2021-07-02 05:53:52 +00:00
|
|
|
rm %{buildroot}%{_datarootdir}/doc/ledmon/README.md
|
2024-05-15 04:02:28 +00:00
|
|
|
rm -f %{buildroot}%{_libdir}/*.a
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
2019-12-13 17:15:27 +00:00
|
|
|
|
|
|
|
%pre
|
|
|
|
%service_add_pre %{name}.service
|
|
|
|
|
|
|
|
%post
|
|
|
|
%service_add_post %{name}.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun %{name}.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun %{name}.service
|
2013-12-06 10:52:18 +00:00
|
|
|
|
|
|
|
%files
|
2024-05-15 04:02:28 +00:00
|
|
|
%license COPYING
|
2021-07-02 05:53:52 +00:00
|
|
|
%doc README.md
|
2013-12-06 10:52:18 +00:00
|
|
|
%{_sbindir}/ledmon
|
|
|
|
%{_sbindir}/ledctl
|
2020-05-20 09:46:35 +00:00
|
|
|
%{_sbindir}/rcledmon
|
2019-12-13 17:15:27 +00:00
|
|
|
%{_unitdir}/ledmon.service
|
2021-07-02 05:53:52 +00:00
|
|
|
%{_mandir}/man5/ledmon.conf.5%{?ext_man}
|
|
|
|
%{_mandir}/man8/ledctl.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/ledmon.8%{?ext_man}
|
2013-12-06 10:52:18 +00:00
|
|
|
|
2024-05-15 04:02:28 +00:00
|
|
|
%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 -n libled1-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
|
|
|
|
Provides: ledmon-devel = %{version}
|
|
|
|
|
|
|
|
%description -n libled1-devel
|
|
|
|
This package contains the files that are necessary for software development
|
|
|
|
using libled.
|
|
|
|
|
|
|
|
%files -n libled1-devel
|
|
|
|
%license COPYING.LIB
|
|
|
|
%doc src/lib/LIBRARY.md
|
|
|
|
%dir %{_includedir}/led/
|
|
|
|
%{_includedir}/led/libled.h
|
|
|
|
%{_libdir}/libled.so
|
|
|
|
%{_libdir}/pkgconfig/ledmon.pc
|
|
|
|
|
2013-12-06 10:52:18 +00:00
|
|
|
%changelog
|