diff --git a/postfixadmin.spec b/postfixadmin.spec index 7b5a6d6..dcaa4f4 100644 --- a/postfixadmin.spec +++ b/postfixadmin.spec @@ -4,7 +4,7 @@ Name: postfixadmin Version: 2.3.7 -Release: 1mamba +Release: 3mamba Summary: A Web Based Management tool for Postfix Group: Applications/Web Vendor: openmamba @@ -17,12 +17,20 @@ Source2: %{name}-vacation.conf Patch0: %{name}-2.2.1.1-css_menu_width.patch Patch1: %{name}-2.3-fix_php_path.patch License: GPL -BuildRoot: %{_tmppath}/%{name}-%{version}-root +## AUTOBUILDREQ-BEGIN +BuildRequires: perl-Imap +BuildRequires: perl-devel +## AUTOBUILDREQ-END Requires: mysql >= 4.1.22, mysql-client >= 4.1.22 -Requires: postfix >= 2.3.8 +Requires(pre): postfix >= 2.3.8 Requires: httpd, apache-mod_php Requires: php-mysql >= 5.1.5 +Requires: php-imap +Requires: perl-LockFile-Simple +Requires: perl-DBD-mysql +Requires: fetchmail BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Postfix Admin is a Web Based Management tool created for Postfix. @@ -80,6 +88,8 @@ cp %{buildroot}%{htmldir}/ADDITIONS/cyrus/cyrus.conf %{buildroot}%{_sysconfdir}/ rm -rf %{buildroot}%{htmldir}/debian #rm -f %{buildroot}%{htmldir}/*.TXT +install -d -m0755 %{buildroot}%{_localstatedir}/run/fetchmail + %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -179,6 +189,7 @@ exit 0 %{htmldir}/GPL-LICENSE.TXT %{htmldir}/INSTALL.TXT %{htmldir}/LICENSE.TXT +%dir %attr(0750,vmail,vmail) %{_localstatedir}/run/fetchmail %files cyrus %defattr(-,root,root) @@ -186,6 +197,13 @@ exit 0 %dir %{htmldir}/ADDITIONS/cyrus/* %changelog +* Sat Jun 21 2014 Silvan Calarco 2.3.7-3mamba +- require fetchmail, perl-LockFile-Simple and other perl requirements for fetchmail.pl +- provide /var/run/fetchmail required by fetchmail.pl + +* Sat Jun 21 2014 Silvan Calarco 2.3.7-2mamba +- require php-imap + * Thu Feb 27 2014 Automatic Build System 2.3.7-1mamba - automatic update by autodist