Accepting request 143496 from home:elvigia:branches:Base:System

- When sysconfig variables are empty, do not set stuff to zero
  just use the defaults. 

- Fix systemd unit and sysconfig parsing the right way.

OBS-URL: https://build.opensuse.org/request/show/143496
OBS-URL: https://build.opensuse.org/package/show/Base:System/at?expand=0&rev=50
This commit is contained in:
Ralf Lang
2012-11-29 10:10:11 +00:00
committed by Git OBS Bridge
parent 99b3ecec08
commit 1db49b09b5
4 changed files with 178 additions and 3 deletions

View File

@@ -18,6 +18,7 @@
Name: at
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
BuildRequires: flex
BuildRequires: libselinux-devel
@@ -61,11 +62,14 @@ Patch17: %{name}-%{version}-tomorrow.patch
Patch18: %{name}-%{version}-atrm-race.patch
#PATCH-FIX-UPSTREAM wrong mtime handling of jobdir (bnc#680113)
Patch19: %{name}-%{version}-jobdir-mtime.patch
Patch20: at-parse-suse-sysconfig.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %{_sbindir}/useradd %{_sbindir}/groupadd %fillup_prereq %insserv_prereq
PreReq: permissions
Recommends: smtp_daemon
%if 0%{?suse_version} > 1140
BuildRequires: libHX-devel
BuildRequires: pkgconfig
BuildRequires: systemd
%{?systemd_requires}
%define has_systemd 1
@@ -96,10 +100,10 @@ This program allows you to run jobs at specified times.
%patch17 -p1
%patch18
%patch19
%patch20
%build
rm -fv y.tab.c y.tab.h lex.yy.c lex.yy.o y.tab.o
autoconf
autoreconf -fiv
export SENDMAIL=%{_sbindir}/sendmail
%configure \
--with-pam \