From e54455e45398cfaaf6676955a787c75d9351c4a81f6667e7ab631021543b4e2f Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 2 Feb 2023 08:05:28 +0000 Subject: [PATCH] Accepting request 1062557 from home:malcolmlewis:branches:utilities - Spec file cleanup to fix build errors. OBS-URL: https://build.opensuse.org/request/show/1062557 OBS-URL: https://build.opensuse.org/package/show/utilities/actkbd?expand=0&rev=12 --- actkbd.changes | 5 +++++ actkbd.spec | 32 +++++++++++++++----------------- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/actkbd.changes b/actkbd.changes index 57da486..b842894 100644 --- a/actkbd.changes +++ b/actkbd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 1 23:36:42 UTC 2023 - malcolmlewis@opensuse.org + +- Spec file cleanup to fix build errors. + ------------------------------------------------------------------- Fri Oct 15 12:10:29 UTC 2021 - Johannes Segitz diff --git a/actkbd.spec b/actkbd.spec index b6cb2ef..53595ad 100644 --- a/actkbd.spec +++ b/actkbd.spec @@ -1,7 +1,7 @@ # # spec file for package actkbd # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,9 +18,8 @@ #Compat macro for new _fillupdir macro introduced in Nov 2017 %if ! %{defined _fillupdir} - %define _fillupdir /var/adm/fillup-templates + %define _fillupdir %{_localstatedir}/adm/fillup-templates %endif - Name: actkbd Version: 0.2.8 Release: 0 @@ -35,7 +34,6 @@ Source3: actkbd.sysconfig Patch0: actkbd-0.2.7-amd64.patch BuildRequires: systemd-rpm-macros Requires(post): %fillup_prereq -BuildRoot: %{_tmppath}/%{name}-%{version}-build %{?systemd_ordering} %description @@ -44,24 +42,25 @@ commands. It can be used to utilize multimedia keys on simple setups, or assigned custom actions to rarely used keys. %prep -%setup -q -%patch0 -p1 +%autosetup -p1 %build -make CFLAGS="%{optflags}" %{?_smp_mflags} +%make_build CFLAGS="%{optflags}" %install -install -Dm 644 %{SOURCE1} %{buildroot}%{_unitdir}/actkbd.service -mkdir -p %{buildroot}%{_sbindir}/ +install -d -m 0755 %{buildroot}%{_unitdir} \ + %{buildroot}%{_sbindir} \ + %{buildroot}%{_sysconfdir} \ + %{buildroot}%{_fillupdir} \ + %{buildroot}%{_docdir}/%{name}/samples + +install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/actkbd.service ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcactkbd -install -Dm 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/actkbd.conf -install -Dm 644 %{SOURCE3} %{buildroot}%{_fillupdir}/sysconfig.actkbd - -install -Dm 755 actkbd %{buildroot}%{_sbindir}/actkbd - -install -d %{buildroot}%{_docdir}/%{name}/samples -install -dm 644 samples %{buildroot}%{_docdir}/%{name}/samples +install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/actkbd.conf +install -m 0644 %{SOURCE3} %{buildroot}%{_fillupdir}/sysconfig.actkbd +install -m 0755 actkbd %{buildroot}%{_sbindir}/actkbd +install -m 0644 samples/* %{buildroot}%{_docdir}/%{name}/samples/ %pre %service_add_pre actkbd.service @@ -77,7 +76,6 @@ install -dm 644 samples %{buildroot}%{_docdir}/%{name}/samples %service_del_postun actkbd.service %files -%defattr(-,root,root) %doc README NEWS FAQ AUTHORS %config %{_sysconfdir}/actkbd.conf %{_fillupdir}/*