121 lines
3.4 KiB
RPMSpec
121 lines
3.4 KiB
RPMSpec
Name: at
|
|
Version: 3.1.23
|
|
Release: 3
|
|
Summary: A job manager
|
|
License: GPLv3+, GPLv2+, ISC, MIT, Public Domain
|
|
URL: http://ftp.debian.org/debian/pool/main/a/at
|
|
Source0: http://ftp.debian.org/debian/pool/main/a/at/at_%{version}.orig.tar.gz
|
|
Source1: pam_atd
|
|
Source2: atd.sysconf
|
|
Source3: atd.systemd
|
|
|
|
Patch0: at-aarch64.patch
|
|
Patch1: at-3.1.18-make.patch
|
|
Patch2: at-3.1.20-pam.patch
|
|
Patch4: at-3.1.14-opt_V.patch
|
|
Patch5: at-3.1.20-shell.patch
|
|
Patch6: at-3.1.18-nitpicks.patch
|
|
Patch8: at-3.1.14-fix_no_export.patch
|
|
Patch9: at-3.1.14-mailwithhostname.patch
|
|
Patch10: at-3.1.14-usePOSIXtimers.patch
|
|
Patch12: at-3.1.20-aborted-jobs.patch
|
|
Patch13: at-3.1.18-noabort.patch
|
|
Patch14: at-3.1.16-fclose-error.patch
|
|
Patch15: at-3.1.16-clear-nonjobs.patch
|
|
Patch16: at-3.1.18-utc-dst.patch
|
|
Patch17: at-3.1.20-lock-locks.patch
|
|
Patch18: at-3.1.23-document-n.patch
|
|
Patch19: at-3.1.20-log-jobs.patch
|
|
|
|
BuildRequires: gcc flex flex-static bison pam-devel smtpdaemon
|
|
BuildRequires: autoconf libselinux-devel >= 1.27.9 perl(Test::Harness) perl(Test::More)
|
|
Requires(post): systemd
|
|
Requires(preun): systemd
|
|
Requires(postun): systemd
|
|
|
|
%description
|
|
AT and batch delay command scheduling utility and daemon.
|
|
|
|
%package_help
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
%build
|
|
autoconf
|
|
%configure --with-atspool=%{_localstatedir}/spool/at/spool \
|
|
--with-jobdir=%{_localstatedir}/spool/at \
|
|
--with-pam --with-selinux \
|
|
--with-daemon_username=root \
|
|
--with-daemon_groupname=root \
|
|
make
|
|
|
|
%install
|
|
cp %{SOURCE1} .
|
|
%make_install \
|
|
DAEMON_USERNAME=`id -nu` \
|
|
DAEMON_GROUPNAME=`id -ng` \
|
|
IROOT=%{buildroot} \
|
|
INSTALL_ROOT_USER=`id -nu`
|
|
|
|
mkdir -p %{buildroot}/etc/sysconfig
|
|
install -m 644 %{SOURCE2} %{buildroot}/etc/sysconfig/atd
|
|
|
|
mkdir -p %{buildroot}/%{_unitdir}/
|
|
install -m 644 %{SOURCE3} %{buildroot}/%{_unitdir}/atd.service
|
|
|
|
rm -rf %{buildroot}%{_prefix}/doc
|
|
|
|
%check
|
|
make test
|
|
|
|
%pre
|
|
|
|
%preun
|
|
%systemd_preun atd.service
|
|
|
|
%post
|
|
touch %{_localstatedir}/spool/at/.SEQ
|
|
chmod 600 %{_localstatedir}/spool/at/.SEQ
|
|
chown root:root %{_localstatedir}/spool/at/.SEQ
|
|
%systemd_post atd.service
|
|
|
|
%postun
|
|
%systemd_postun_with_restart atd.service
|
|
|
|
%files
|
|
%doc ChangeLog README timespec
|
|
%license COPYING Copyright
|
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/at.deny
|
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/atd
|
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/atd
|
|
%attr(0700,root,root) %dir %{_localstatedir}/spool/at
|
|
%attr(0700,root,root) %dir %{_localstatedir}/spool/at/spool
|
|
%attr(0600,root,root) %ghost %verify(not md5 size mtime) %{_localstatedir}/spool/at/.SEQ
|
|
%attr(0644,root,root) %{_unitdir}/atd.service
|
|
%attr(4755,root,root) %{_bindir}/at
|
|
%{_bindir}/atq
|
|
%{_bindir}/atrm
|
|
%{_bindir}/batch
|
|
%attr(0755,root,root) %{_sbindir}/atd
|
|
%{_sbindir}/atrun
|
|
|
|
%files help
|
|
%{_mandir}/man*/*
|
|
|
|
%changelog
|
|
* Sun Sep 29 2019 chengquan<chengquan3@huawei.com> - 3.1.23-3
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:fix bug in %post marco
|
|
|
|
* Tue Sep 24 2019 chengquan <chengquan3@huawei.com> - 3.1.23-2
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:revise requires of systemd
|
|
|
|
* Wed Sep 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.1.23-1
|
|
- Package init
|