From 9f68667854b49ccf541d5a491c7305eea8417f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zaoral?= Date: Tue, 10 Jan 2023 20:11:12 +0100 Subject: [PATCH] Fix build on Rawhide - Remove explicit library runtime dependency as suggested by rpmlint - Modernise used macros --- ledmon.spec | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/ledmon.spec b/ledmon.spec index 66e7f0d..1f57f47 100644 --- a/ledmon.spec +++ b/ledmon.spec @@ -1,24 +1,26 @@ Summary: Enclosure LED Utilities Name: ledmon Version: 0.96 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv2+ URL: https://github.com/intel/ledmon 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 BuildRequires: sg3_utils-devel BuildRequires: pciutils-devel BuildRequires: autoconf automake BuildRequires: gcc make +# Needed for pkgconfig usage. +BuildRequires: pkgconfig(systemd) # Needed for the udev dependency. BuildRequires: systemd-devel BuildRequires: systemd-rpm-macros Obsoletes: ledctl = 0.1-1 Provides: ledctl = %{version}-%{release} -Requires: sg3_utils-libs %description 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. %prep -%setup -q -# remove -Werror=format-truncation=1 in order to build package -%patch0 -p1 +%autosetup -p1 autoreconf -fiv %build -sh autogen.sh %configure --enable-systemd=yes -make +%make_build %install -%make_install SBIN_DIR=$RPM_BUILD_ROOT/%{_sbindir} MANDIR=$RPM_BUILD_ROOT%{_mandir} +%make_install %post %systemd_post ledmon.service @@ -58,6 +57,11 @@ make %{_unitdir}/ledmon.service %changelog +* Tue Jan 10 2023 Lukáš Zaoral - 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 - 0.96-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild