Fix installation and removal of atd.service (#870)
This commit is contained in:
parent
2b123e6354
commit
3233c84928
|
@ -2,7 +2,7 @@
|
|||
Summary: Job spooling tools
|
||||
Name: at
|
||||
Version: 3.1.23
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
# http://packages.debian.org/changelogs/pool/main/a/at/current/copyright
|
||||
# + install-sh is MIT license with changes under Public Domain
|
||||
License: GPLv3+ AND GPLv2+ AND ISC AND MIT AND Public Domain
|
||||
|
@ -38,6 +38,7 @@ BuildRequires: flex-devel
|
|||
BuildRequires: gcc
|
||||
BuildRequires: libselinux-devel >= 1.27.9
|
||||
BuildRequires: perl
|
||||
BuildRequires: systemd
|
||||
Requires(post): systemd
|
||||
Requires(postun): systemd
|
||||
Requires(preun): systemd
|
||||
|
@ -124,8 +125,8 @@ mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
|
|||
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/atd
|
||||
|
||||
# install systemd initscript
|
||||
mkdir -p %{buildroot}/%{_unitdir}/
|
||||
install -m 644 %{SOURCE5} %{buildroot}/%{_unitdir}/atd.service
|
||||
mkdir -p %{buildroot}/lib/systemd/system/
|
||||
install -m 644 %{SOURCE5} %{buildroot}/lib/systemd/system/atd.service
|
||||
|
||||
# remove unpackaged files from the buildroot
|
||||
rm -r %{buildroot}%{_prefix}/doc
|
||||
|
@ -174,9 +175,13 @@ chown root:root %{_localstatedir}/spool/at/.SEQ
|
|||
%{_bindir}/atrm
|
||||
%{_bindir}/atq
|
||||
%attr(4755,root,root) %{_bindir}/at
|
||||
%attr(0644,root,root) /%{_unitdir}/atd.service
|
||||
%attr(0644,root,root) /lib/systemd/system/atd.service
|
||||
|
||||
%changelog
|
||||
* Mon Apr 19 2021 Nicolas Ontiveros <niontive@microsoft.com> - 3.1.23-7
|
||||
- Fix installation of atd.service
|
||||
- Add systemd to BR
|
||||
|
||||
* Mon Nov 30 2020 Nicolas Ontiveros <niontive@microsoft.com> - 3.1.23-6
|
||||
- Initial CBL-Mariner import from Fedora 33 (license: MIT).
|
||||
- Use flex-devel in BR
|
||||
|
|
Loading…
Reference in New Issue