diff --git a/ledmon.changes b/ledmon.changes index 34435a5..91c6de8 100644 --- a/ledmon.changes +++ b/ledmon.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Wed Dec 11 09:32:32 UTC 2019 - Martin Pluskal + +- Small packaging cleanups + +------------------------------------------------------------------- +Wed Dec 11 03:05:00 UTC 2019 - heming.zhao@suse.com + +- Update to version 0.93 per https://jira.suse.com/browse/SLE-8004 + * modified spec file according to changes in source code + +- Enhancements + * Support for AMD SGPIO enclosure management + * Migration to GNU Autotools build system + * Added more strict compilation flags + +- Bug fixes + * Fixed segfault when a value is missing from ibpi_str + * Use proper format string with syslog() + * Fixed issues reported by static analysis + * Removed unused SGPIO structures + * Added udev_device reference clean-up + * Hidden ipmi error messages on non-dell platforms + ------------------------------------------------------------------- Thu Oct 10 01:40:17 UTC 2019 - heming.zhao@suse.com diff --git a/ledmon.spec b/ledmon.spec index e9a9310..3f1cada 100644 --- a/ledmon.spec +++ b/ledmon.spec @@ -1,7 +1,7 @@ # # spec file for package ledmon # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,18 +17,23 @@ Name: ledmon -Version: 0.92 +Version: 0.93 Release: 0 Summary: Enclosure LED Utilities License: GPL-2.0-only 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 +BuildRequires: autoconf +BuildRequires: automake BuildRequires: libsgutils-devel -BuildRequires: libudev-devel +BuildRequires: pkgconfig +BuildRequires: systemd-rpm-macros +BuildRequires: pkgconfig(libudev) +BuildRequires: pkgconfig(systemd) Provides: sgpio:/sbin/ledmon Provides: sgpio:/{%{_bindir}}/ledctl -BuildRoot: %{_tmppath}/%{name}-%{version}-build +%{?systemd_requires} %description The ledctl application and ledmon daemon are part of Intel(R) LED @@ -39,18 +44,36 @@ solutions. %setup -q %build -make -j1 CXFLAGS="%{optflags} -lsgutils2 -std=c99" +%define _lto_cflags %{nil} +autoreconf -fiv +%configure \ + --enable-systemd=yes +%make_build %install %make_install +rm %{buildroot}%{_datarootdir}/doc/ledmon/README + +%pre +%service_add_pre %{name}.service + +%post +%service_add_post %{name}.service + +%preun +%service_del_preun %{name}.service + +%postun +%service_del_postun %{name}.service %files -%defattr(-,root,root) -%doc README COPYING +%license COPYING +%doc README %{_sbindir}/ledmon %{_sbindir}/ledctl -%{_mandir}/man5/ledmon.conf.5%{ext_man} -%{_mandir}/man8/ledctl.8%{ext_man} -%{_mandir}/man8/ledmon.8%{ext_man} +%{_unitdir}/ledmon.service +%{_mandir}/man5/ledmon.conf.5.5%{?ext_man} +%{_mandir}/man8/ledctl.8.8%{?ext_man} +%{_mandir}/man8/ledmon.8.8%{?ext_man} %changelog diff --git a/v0.92.tar.gz b/v0.92.tar.gz deleted file mode 100644 index b28b37c..0000000 --- a/v0.92.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:db27183a5a900e7d8bd443143b9c4f2e991d5cbb8c7fbd9531f704699c1cfa07 -size 68779 diff --git a/v0.93.tar.gz b/v0.93.tar.gz new file mode 100644 index 0000000..271a743 --- /dev/null +++ b/v0.93.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e74804e74491096c771016dd78e7e0f935defb99383bcf7f19cf5d5e308abcf +size 80027