|
@@ -1,37 +1,38 @@
|
|
|
-%if %{?WITH_PAM:0}%{!?WITH_PAM:1}
|
|
|
-%define WITH_PAM 1
|
|
|
-%endif
|
|
|
+%bcond_without pam
|
|
|
|
|
|
Summary: Job spooling tools.
|
|
|
Summary(ja): ジョブスプーリングツール
|
|
|
Name: at
|
|
|
-Version: 3.1.10.1
|
|
|
-Release: 17%{?_dist_release}
|
|
|
-License: GPL
|
|
|
+Version: 3.1.13
|
|
|
+Release: 1%{?_dist_release}
|
|
|
+License: GPLv2+ and ISC
|
|
|
Group: System Environment/Daemons
|
|
|
URL: http://ftp.debian.org/debian/pool/main/a/at
|
|
|
-Source: http://ftp.debian.org/debian/pool/main/a/at/at_%{version}.tar.gz
|
|
|
-Source1: test.pl
|
|
|
+
|
|
|
+Source: http://ftp.debian.org/debian/pool/main/a/at/at_%{version}.orig.tar.gz
|
|
|
+Source1: pam_atd
|
|
|
Source2: atd.init
|
|
|
Source3: atd.sysconf
|
|
|
-Patch0: at-3.1.7-lockfile.patch
|
|
|
-Patch1: at-3.1.10-makefile.patch
|
|
|
-Patch2: at-3.1.10-man-timespec-path.patch
|
|
|
-Patch3: at-3.1.7-sigchld.patch
|
|
|
-Patch4: at-3.1.10-typo.patch
|
|
|
-Patch5: at-3.1.8-perr.patch
|
|
|
-Patch6: at-3.1.10-shell.patch
|
|
|
-Patch7: at-3.1.8-t_option.patch
|
|
|
-Patch8: at-3.1.10-pam.patch
|
|
|
-Patch9: at-3.1.10-dont_fork.patch
|
|
|
-Patch10: at-3.1.10-perm.patch
|
|
|
-Patch11: at-3.1.10-opt_V.patch
|
|
|
-
|
|
|
-BuildRequires: fileutils chkconfig /etc/init.d
|
|
|
-BuildRequires: flex bison autoconf
|
|
|
-#BuildRequires: libselinux-devel >= 1.27.9
|
|
|
-
|
|
|
-%if %{WITH_PAM}
|
|
|
+
|
|
|
+Patch1: at-3.1.13-makefile.patch
|
|
|
+Patch2: at-3.1.12-opt_V.patch
|
|
|
+Patch3: at-3.1.12-shell.patch
|
|
|
+Patch4: at-3.1.13-nitpicks.patch
|
|
|
+Patch5: at-3.1.13-pam.patch
|
|
|
+Patch6: at-3.1.13-selinux.patch
|
|
|
+Patch7: at-3.1.12-nowrap.patch
|
|
|
+Patch8: at-3.1.12-fix_no_export.patch
|
|
|
+Patch9: at-3.1.13-mailwithhostname.patch
|
|
|
+Patch10: at-3.1.13-usePOSIXtimers.patch
|
|
|
+Patch11: at-3.1.13-help.patch
|
|
|
+
|
|
|
+BuildRequires: fileutils
|
|
|
+BuildRequires: chkconfig
|
|
|
+BuildRequires: flex
|
|
|
+BuildRequires: bison
|
|
|
+BuildRequires: autoconf
|
|
|
+
|
|
|
+%if %{with pam}
|
|
|
BuildRequires: pam-devel
|
|
|
%endif
|
|
|
Conflicts: crontabs <= 1.5
|
|
@@ -65,18 +66,17 @@ batch はシステムの負荷レベルが特定のレベルを下回るとコ
|
|
|
%prep
|
|
|
%setup -q
|
|
|
cp %{SOURCE1} .
|
|
|
-%patch0 -p1 -b .lockfile
|
|
|
%patch1 -p1 -b .make
|
|
|
-%patch2 -p1 -b .paths
|
|
|
-%patch3 -p1 -b .sigchld
|
|
|
-%patch4 -p1 -b .typo
|
|
|
-%patch5 -p1 -b .perr
|
|
|
-%patch6 -p1 -b .shell
|
|
|
-%patch7 -p1 -b .t_option
|
|
|
-%patch8 -p1 -b .pam
|
|
|
-%patch9 -p1 -b .dont_fork
|
|
|
-%patch10 -p1 -b .perm
|
|
|
-%patch11 -p1 -b .opt_V
|
|
|
+%patch2 -p1 -b .opt_V
|
|
|
+%patch3 -p1 -b .shell
|
|
|
+%patch4 -p1 -b .nit
|
|
|
+%patch5 -p1 -b .pam
|
|
|
+%patch6 -p1 -b .selinux
|
|
|
+%patch7 -p1 -b .nowrap
|
|
|
+%patch8 -p1 -b .export
|
|
|
+%patch9 -p1 -b .mail
|
|
|
+%patch10 -p1 -b .posix
|
|
|
+%patch11 -p1 -b .help
|
|
|
|
|
|
%build
|
|
|
# patch10 touches configure.in
|
|
@@ -87,8 +87,8 @@ rm -f lex.yy.* y.tab.*
|
|
|
--with-jobdir=%{_localstatedir}/spool/at \
|
|
|
--with-daemon_username=root \
|
|
|
--with-daemon_groupname=root \
|
|
|
-%if %{WITH_PAM}
|
|
|
- --with-pam
|
|
|
+%if %{with pam}
|
|
|
+ --with-pam
|
|
|
%endif
|
|
|
|
|
|
make
|
|
@@ -124,15 +124,12 @@ echo > %{buildroot}%{_sysconfdir}/at.deny
|
|
|
mkdir docs
|
|
|
cp $RPM_BUILD_ROOT/%{_prefix}/doc/at/* docs/
|
|
|
|
|
|
+mkdir -p %{buildroot}%{_sysconfdir}/pam.d
|
|
|
+install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/atd
|
|
|
+
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
|
|
|
install -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/rc.d/init.d/atd
|
|
|
|
|
|
-mv -f %{buildroot}/%{_mandir}/man5/at_allow.5 \
|
|
|
- %{buildroot}/%{_mandir}/man5/at.allow.5
|
|
|
-rm -f %{buildroot}/%{_mandir}/man5/at_deny.5
|
|
|
-ln -s at.allow.5 \
|
|
|
- %{buildroot}/%{_mandir}/man5/at.deny.5
|
|
|
-
|
|
|
mkdir -p %{buildroot}/etc/sysconfig
|
|
|
install -m 755 %{SOURCE3} %{buildroot}/etc/sysconfig/atd
|
|
|
|
|
@@ -179,6 +176,10 @@ fi
|
|
|
%attr(4755,root,root) %{_bindir}/at
|
|
|
|
|
|
%changelog
|
|
|
+* Tue Nov 06 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 3.1.13-1
|
|
|
+- update to 3.1.13
|
|
|
+- update patches to sync with fedora 3.1.13-10.
|
|
|
+
|
|
|
* Mon Sep 27 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.10.1-17
|
|
|
- rebuild with rpm-4.8.1
|
|
|
|