Fix build on Rawhide
- Remove explicit library runtime dependency as suggested by rpmlint - Modernise used macros
This commit is contained in:
parent
4434185c42
commit
9f68667854
20
ledmon.spec
20
ledmon.spec
@ -1,24 +1,26 @@
|
|||||||
Summary: Enclosure LED Utilities
|
Summary: Enclosure LED Utilities
|
||||||
Name: ledmon
|
Name: ledmon
|
||||||
Version: 0.96
|
Version: 0.96
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
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
|
||||||
|
|
||||||
|
# remove -Werror=format-truncation=1 in order to build package
|
||||||
Patch0: ledmon_format-truncation-flag.patch
|
Patch0: ledmon_format-truncation-flag.patch
|
||||||
|
|
||||||
BuildRequires: sg3_utils-devel
|
BuildRequires: sg3_utils-devel
|
||||||
BuildRequires: pciutils-devel
|
BuildRequires: pciutils-devel
|
||||||
BuildRequires: autoconf automake
|
BuildRequires: autoconf automake
|
||||||
BuildRequires: gcc make
|
BuildRequires: gcc make
|
||||||
|
# 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
|
||||||
|
|
||||||
Obsoletes: ledctl = 0.1-1
|
Obsoletes: ledctl = 0.1-1
|
||||||
Provides: ledctl = %{version}-%{release}
|
Provides: ledctl = %{version}-%{release}
|
||||||
Requires: sg3_utils-libs
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The ledmon and ledctl are user space applications design to control LED
|
The ledmon and ledctl are user space applications design to control LED
|
||||||
@ -28,18 +30,15 @@ types of system: 2-LED system (Activity LED, Status LED) and 3-LED system
|
|||||||
use this application.
|
use this application.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
# remove -Werror=format-truncation=1 in order to build package
|
|
||||||
%patch0 -p1
|
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
|
|
||||||
%build
|
%build
|
||||||
sh autogen.sh
|
|
||||||
%configure --enable-systemd=yes
|
%configure --enable-systemd=yes
|
||||||
make
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install SBIN_DIR=$RPM_BUILD_ROOT/%{_sbindir} MANDIR=$RPM_BUILD_ROOT%{_mandir}
|
%make_install
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post ledmon.service
|
%systemd_post ledmon.service
|
||||||
@ -58,6 +57,11 @@ make
|
|||||||
%{_unitdir}/ledmon.service
|
%{_unitdir}/ledmon.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 10 2023 Lukáš Zaoral <lzaoral@redhat.com> - 0.96-5
|
||||||
|
- Fix build on Rawhide
|
||||||
|
- Remove explicit library runtime dependency as suggested by rpmlint
|
||||||
|
- Modernise used macros
|
||||||
|
|
||||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.96-4
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.96-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user