Compare commits

...

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

3 changed files with 45 additions and 98 deletions

2
.gitignore vendored
View File

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

View File

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

View File

@ -1,20 +1,16 @@
Summary: Enclosure LED Utilities Summary: Enclosure LED Utilities
Name: ledmon Name: ledmon
Version: 1.0.0 Version: 0.97
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: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source0: https://github.com/intel/ledmon/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: autoconf automake BuildRequires: perl-interpreter perl-podlators
BuildRequires: autoconf-archive
BuildRequires: gcc make
BuildRequires: libconfig-devel
BuildRequires: libtool
BuildRequires: pciutils-devel
BuildRequires: sg3_utils-devel BuildRequires: sg3_utils-devel
# Needed for pkgconfig usage. BuildRequires: pciutils-devel
BuildRequires: pkgconfig(systemd) BuildRequires: autoconf, automake
# Needed for the udev dependency. # Needed for the udev dependency.
BuildRequires: systemd-devel BuildRequires: systemd-devel
BuildRequires: systemd-rpm-macros BuildRequires: systemd-rpm-macros
@ -30,38 +26,18 @@ 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
%configure --enable-systemd=yes --enable-library --disable-static # can't use smp_flags because -j4 makes the build fail
%make_build #make CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
sh autogen.sh
%configure --enable-systemd=yes
make
%install %install
%make_install SBIN_DIR=$RPM_BUILD_ROOT/%{_sbindir} MANDIR=$RPM_BUILD_ROOT%{_mandir} make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT 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
@ -79,86 +55,58 @@ find %{buildroot} -name '*.la' -delete
%{_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 (#2159926) - update to 0.97 (#2159588)
- drop ipmi-avoid-error-messages-on-non-dell-platforms.patch - drop downstream patch - ipmi: avoid error messages on non-dell platforms
* Mon Nov 28 2022 Jan Macku <jamacku@redhat.com> - 0.96-5 * Tue Nov 29 2022 Jan Macku <jamacku@redhat.com> - 0.96-3
- Decrease log level of IPMI messages (#2148954) - Decrease log level of IPMI messages (#2148944)
* Mon Jun 27 2022 Jan Macku <jamacku@redhat.com> - 0.96-4 * Mon Jun 27 2022 Jan Macku <jamacku@redhat.com> - 0.96-2
- Use systemd-rpm-macros to handle ledmon.service (#2073332) - Use systemd-rpm-macros to handle ledmon.service (#2073331)
* 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 (#2042273) - update to 0.96 (#2041713)
- Add gating.yml
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.95-6 * Mon Jan 18 2021 Jan Macku <jamacku@redhat.com> - 0.95-1
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - update to 0.95 (#1841501)
* Thu May 27 2021 Tomas Bzatek <tbzatek@redhat.com> - 0.95-5 * Thu Jan 14 2021 Jan Macku <jamacku@redhat.com> - 0.94-2
- Rebuilt for sg3_utils 1.47 (#1955156) - tests: fix test to run on reverse depedency pipeline (#1912591)
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.95-4 * Mon Feb 17 2020 Jan Synáček <jsynacek@redhat.com> - 0.94-1
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 - update to 0.94 (#1780521)
* Mon Feb 22 2021 Jan Macku <jamacku@redhat.com> - 0.95-3 * Tue Dec 10 2019 Jan Synáček <jsynacek@redhat.com> - 0.93-1
- Use make macros - update to 0.93 (#1721928)
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
* Tue Feb 02 2021 Jan Macku <jamacku@redhat.com> - 0.95-2 * Tue Jun 4 2019 Jan Synáček <jsynacek@redhat.com> - 0.92-7
- drop perl dependency - tests: fix tests (#1681030)
* Tue Feb 02 2021 Jan Macku <jamacku@redhat.com> - 0.95-1 * Tue Jun 4 2019 Jan Synáček <jsynacek@redhat.com> - 0.92-6
- clean up spec based on RHEL 8.4.0 spec - tests: fix tests (#1681030)
- remove -Werror=format-truncation=1 from configure
- update to 0.95 (#1880599)
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.92-6 * Mon Jun 3 2019 Jan Synáček <jsynacek@redhat.com> - 0.92-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - tests: skip tests on unsupported devices (#1681030)
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.92-5 * Mon May 27 2019 Jan Synáček <jsynacek@redhat.com> - 0.92-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - fix the _ledmon_status() function (#1681030)
* Mon Apr 20 2020 Dan Horák <dan@danny.cz> - 0.92-4 * Mon May 20 2019 Jan Synáček <jsynacek@redhat.com> - 0.92-3
- rebuilt for sg3_utils 1.45 (#1809392) - tests: fix segfault when a value is missing from ibpi_str[] (#1681030)
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.92-3 * Mon May 6 2019 Jan Synáček <jsynacek@redhat.com> - 0.92-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - tests: add PURPOSE target (#1681030)
* 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 (#1699783) - update to 0.92 (#1661204)
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.90-4 * Fri Feb 15 2019 Jan Synáček <jsynacek@redhat.com> - 0.90-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - LEDs do not work properly during migration (#1669232)
* Tue Aug 7 2018 Jan Synáček <jsynacek@redhat.com> - 0.90-3 * Tue Aug 7 2018 Jan Synáček <jsynacek@redhat.com> - 0.90-2
- fix manpage generation (#1611428) - fix manpage generation (#1612711)
* 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)