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:
parent
adb388417b
commit
e54455e453
@ -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>
|
Fri Oct 15 12:10:29 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
|
||||||
|
|
||||||
|
32
actkbd.spec
32
actkbd.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package actkbd
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,9 +18,8 @@
|
|||||||
|
|
||||||
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
||||||
%if ! %{defined _fillupdir}
|
%if ! %{defined _fillupdir}
|
||||||
%define _fillupdir /var/adm/fillup-templates
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: actkbd
|
Name: actkbd
|
||||||
Version: 0.2.8
|
Version: 0.2.8
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -35,7 +34,6 @@ Source3: actkbd.sysconfig
|
|||||||
Patch0: actkbd-0.2.7-amd64.patch
|
Patch0: actkbd-0.2.7-amd64.patch
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
Requires(post): %fillup_prereq
|
Requires(post): %fillup_prereq
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%{?systemd_ordering}
|
%{?systemd_ordering}
|
||||||
|
|
||||||
%description
|
%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.
|
assigned custom actions to rarely used keys.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make CFLAGS="%{optflags}" %{?_smp_mflags}
|
%make_build CFLAGS="%{optflags}"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -Dm 644 %{SOURCE1} %{buildroot}%{_unitdir}/actkbd.service
|
install -d -m 0755 %{buildroot}%{_unitdir} \
|
||||||
mkdir -p %{buildroot}%{_sbindir}/
|
%{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
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcactkbd
|
||||||
|
|
||||||
install -Dm 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/actkbd.conf
|
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/actkbd.conf
|
||||||
install -Dm 644 %{SOURCE3} %{buildroot}%{_fillupdir}/sysconfig.actkbd
|
install -m 0644 %{SOURCE3} %{buildroot}%{_fillupdir}/sysconfig.actkbd
|
||||||
|
install -m 0755 actkbd %{buildroot}%{_sbindir}/actkbd
|
||||||
install -Dm 755 actkbd %{buildroot}%{_sbindir}/actkbd
|
install -m 0644 samples/* %{buildroot}%{_docdir}/%{name}/samples/
|
||||||
|
|
||||||
install -d %{buildroot}%{_docdir}/%{name}/samples
|
|
||||||
install -dm 644 samples %{buildroot}%{_docdir}/%{name}/samples
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%service_add_pre actkbd.service
|
%service_add_pre actkbd.service
|
||||||
@ -77,7 +76,6 @@ install -dm 644 samples %{buildroot}%{_docdir}/%{name}/samples
|
|||||||
%service_del_postun actkbd.service
|
%service_del_postun actkbd.service
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc README NEWS FAQ AUTHORS
|
%doc README NEWS FAQ AUTHORS
|
||||||
%config %{_sysconfdir}/actkbd.conf
|
%config %{_sysconfdir}/actkbd.conf
|
||||||
%{_fillupdir}/*
|
%{_fillupdir}/*
|
||||||
|
Loading…
Reference in New Issue
Block a user