Compare commits

...

No commits in common. "c8" and "c9-beta" have entirely different histories.
c8 ... c9-beta

3 changed files with 98 additions and 45 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/ledmon-0.97.tar.gz SOURCES/ledmon-1.0.0.tar.gz

1
.ledmon.metadata Normal file
View File

@ -0,0 +1 @@
07c962e4517acc1b7a7bbd7440a702ac4b50bec1 SOURCES/ledmon-1.0.0.tar.gz

View File

@ -1,16 +1,20 @@
Summary: Enclosure LED Utilities Summary: Enclosure LED Utilities
Name: ledmon Name: ledmon
Version: 0.97 Version: 1.0.0
Release: 1%{?dist} Release: 1%{?dist}
License: GPLv2+ License: GPLv2+
Group: Applications/System
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: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: perl-interpreter perl-podlators BuildRequires: autoconf automake
BuildRequires: sg3_utils-devel BuildRequires: autoconf-archive
BuildRequires: gcc make
BuildRequires: libconfig-devel
BuildRequires: libtool
BuildRequires: pciutils-devel BuildRequires: pciutils-devel
BuildRequires: autoconf, automake BuildRequires: sg3_utils-devel
# Needed for pkgconfig usage.
BuildRequires: pkgconfig(systemd)
# Needed for the udev dependency. # Needed for the udev dependency.
BuildRequires: systemd-devel BuildRequires: systemd-devel
BuildRequires: systemd-rpm-macros BuildRequires: systemd-rpm-macros
@ -26,18 +30,38 @@ types of system: 2-LED system (Activity LED, Status LED) and 3-LED system
(Activity LED, Locate LED, Fail LED). User must have root privileges to (Activity LED, Locate LED, Fail LED). User must have root privileges to
use this application. use this application.
%package libs
Summary: Runtime library files for %{name}
Requires: pciutils-libs
Requires: sg3_utils-libs
%description libs
The %{name}-libs package contains runtime libraries for applications
that use %{name}.
%package devel
Summary: Development files for %{name}
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: pciutils-devel
Requires: sg3_utils-devel
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep %prep
%setup -q %setup -q
autoreconf -fiv
%build %build
# can't use smp_flags because -j4 makes the build fail %configure --enable-systemd=yes --enable-library --disable-static
#make CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %make_build
sh autogen.sh
%configure --enable-systemd=yes
make
%install %install
make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT SBIN_DIR=$RPM_BUILD_ROOT/%{_sbindir} MANDIR=$RPM_BUILD_ROOT%{_mandir} %make_install SBIN_DIR=$RPM_BUILD_ROOT/%{_sbindir} MANDIR=$RPM_BUILD_ROOT%{_mandir}
# These files are not useful for install
find %{buildroot} -name '*.la' -delete
%post %post
%systemd_post ledmon.service %systemd_post ledmon.service
@ -55,58 +79,86 @@ make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT SBIN_DIR=$RPM_BUI
%{_mandir}/*/* %{_mandir}/*/*
%{_unitdir}/ledmon.service %{_unitdir}/ledmon.service
%files libs
%{_libdir}/*.so.*
%files devel
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
%changelog %changelog
* Fri Apr 12 2024 Jan Macku <jamacku@redhat.com> - 1.0.0-1
- update to 1.0.0
- package shared ledmon library by Tony Asleson
* Wed May 17 2023 Jan Macku <jamacku@redhat.com> - 0.97-1 * Wed May 17 2023 Jan Macku <jamacku@redhat.com> - 0.97-1
- update to 0.97 (#2159588) - update to 0.97 (#2159926)
- drop downstream patch - ipmi: avoid error messages on non-dell platforms - drop ipmi-avoid-error-messages-on-non-dell-platforms.patch
* Tue Nov 29 2022 Jan Macku <jamacku@redhat.com> - 0.96-3 * Mon Nov 28 2022 Jan Macku <jamacku@redhat.com> - 0.96-5
- Decrease log level of IPMI messages (#2148944) - Decrease log level of IPMI messages (#2148954)
* Mon Jun 27 2022 Jan Macku <jamacku@redhat.com> - 0.96-2 * Mon Jun 27 2022 Jan Macku <jamacku@redhat.com> - 0.96-4
- Use systemd-rpm-macros to handle ledmon.service (#2073331) - Use systemd-rpm-macros to handle ledmon.service (#2073332)
* Wed Jun 01 2022 Jan Macku <jamacku@redhat.com> - 0.96-3
- Add tests
* Wed Jun 01 2022 Jan Macku <jamacku@redhat.com> - 0.96-2
- Rename gating.yml to gating.yaml
* Wed Jun 01 2022 Jan Macku <jamacku@redhat.com> - 0.96-1 * Wed Jun 01 2022 Jan Macku <jamacku@redhat.com> - 0.96-1
- update to 0.96 (#2041713) - update to 0.96 (#2042273)
- Add gating.yml
* Mon Jan 18 2021 Jan Macku <jamacku@redhat.com> - 0.95-1 * Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.95-6
- update to 0.95 (#1841501) - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
* Thu Jan 14 2021 Jan Macku <jamacku@redhat.com> - 0.94-2 * Thu May 27 2021 Tomas Bzatek <tbzatek@redhat.com> - 0.95-5
- tests: fix test to run on reverse depedency pipeline (#1912591) - Rebuilt for sg3_utils 1.47 (#1955156)
* Mon Feb 17 2020 Jan Synáček <jsynacek@redhat.com> - 0.94-1 * Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.95-4
- update to 0.94 (#1780521) - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Tue Dec 10 2019 Jan Synáček <jsynacek@redhat.com> - 0.93-1 * Mon Feb 22 2021 Jan Macku <jamacku@redhat.com> - 0.95-3
- update to 0.93 (#1721928) - Use make macros
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
* Tue Jun 4 2019 Jan Synáček <jsynacek@redhat.com> - 0.92-7 * Tue Feb 02 2021 Jan Macku <jamacku@redhat.com> - 0.95-2
- tests: fix tests (#1681030) - drop perl dependency
* Tue Jun 4 2019 Jan Synáček <jsynacek@redhat.com> - 0.92-6 * Tue Feb 02 2021 Jan Macku <jamacku@redhat.com> - 0.95-1
- tests: fix tests (#1681030) - clean up spec based on RHEL 8.4.0 spec
- remove -Werror=format-truncation=1 from configure
- update to 0.95 (#1880599)
* Mon Jun 3 2019 Jan Synáček <jsynacek@redhat.com> - 0.92-5 * Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.92-6
- tests: skip tests on unsupported devices (#1681030) - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon May 27 2019 Jan Synáček <jsynacek@redhat.com> - 0.92-4 * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.92-5
- fix the _ledmon_status() function (#1681030) - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon May 20 2019 Jan Synáček <jsynacek@redhat.com> - 0.92-3 * Mon Apr 20 2020 Dan Horák <dan@danny.cz> - 0.92-4
- tests: fix segfault when a value is missing from ibpi_str[] (#1681030) - rebuilt for sg3_utils 1.45 (#1809392)
* Mon May 6 2019 Jan Synáček <jsynacek@redhat.com> - 0.92-2 * Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.92-3
- tests: add PURPOSE target (#1681030) - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.92-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Mon Apr 15 2019 Jan Synáček <jsynacek@redhat.com> - 0.92-1 * Mon Apr 15 2019 Jan Synáček <jsynacek@redhat.com> - 0.92-1
- update to 0.92 (#1661204) - update to 0.92 (#1699783)
* Fri Feb 15 2019 Jan Synáček <jsynacek@redhat.com> - 0.90-3 * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.90-4
- LEDs do not work properly during migration (#1669232) - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Aug 7 2018 Jan Synáček <jsynacek@redhat.com> - 0.90-2 * Tue Aug 7 2018 Jan Synáček <jsynacek@redhat.com> - 0.90-3
- fix manpage generation (#1612711) - fix manpage generation (#1611428)
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.90-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Mar 14 2018 Jan Synáček <jsynacek@redhat.com> - 0.90-1 * Wed Mar 14 2018 Jan Synáček <jsynacek@redhat.com> - 0.90-1
- update to 0.90 (#1555099) - update to 0.90 (#1555099)