SHA256
1
0
forked from pool/actkbd

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
This commit is contained in:
Michael Vetter 2023-02-02 08:05:28 +00:00 committed by Git OBS Bridge
parent adb388417b
commit e54455e453
2 changed files with 20 additions and 17 deletions

View File

@ -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 <jsegitz@suse.com>

View File

@ -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}/*