Changed files:
dspam.spec -> 1.56
%{?with_mysql:BuildRequires: mysql-devel}
BuildRequires: openldap-devel
%{?with_pgsql:BuildRequires: postgresql-devel}
%{?with_mysql:BuildRequires: mysql-devel}
BuildRequires: openldap-devel
%{?with_pgsql:BuildRequires: postgresql-devel}
+BuildRequires: rpmbuild(macros) >= 1.268
BuildRequires: sed >= 4.0
%{?with_sqlite:BuildRequires: sqlite3-devel}
BuildRequires: zlib-devel
BuildRequires: sed >= 4.0
%{?with_sqlite:BuildRequires: sqlite3-devel}
BuildRequires: zlib-devel
%post
/sbin/chkconfig --add dspam
%post
/sbin/chkconfig --add dspam
-if [ -f /var/lock/subsys/dspam ]; then
- /etc/rc.d/init.d/dspam restart 1>&2
-else
- echo "Run \"/etc/rc.d/init.d/dspam start\" to start dspam daemon."
-fi
+%service dspam restart "dspam daemon"
%preun
if [ "$1" = "0" ]; then
%preun
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/dspam ]; then
- /etc/rc.d/init.d/dspam stop 1>&2
- fi
/sbin/chkconfig --del dspam
fi
/sbin/chkconfig --del dspam
fi