diff --git a/phpmyadmin.spec b/phpmyadmin.spec index 2b64161..ef8a91e 100644 --- a/phpmyadmin.spec +++ b/phpmyadmin.spec @@ -19,7 +19,7 @@ Name: %{?sitename:%sitename-}phpmyadmin Version: 5.0.2 -Release: 1mamba +Release: 2mamba Summary: MySQL administration tool Group: Applications/Databases Vendor: openmamba @@ -163,9 +163,11 @@ EOF rm -f %{buildroot}%{installdir}/themes/.gitignore +install -d -m0755 %{buildroot}%{installdir}/tmp + %post if [ $1 -eq 1 ]; then - password=`mkpasswd -s 0` + password=`mkpasswd -s 0 -l 32` sed -i "s|\(\$cfg\['blowfish_secret'\] = \)''|\1'$password'|" %{installdir}/config.inc.php fi if [ $1 -ge 1 ]; then @@ -208,7 +210,7 @@ rm -f .core .themes %defattr(-, root, root) %config(noreplace) %{_sysconfdir}/httpd/httpd.d/%{name}.conf %config(noreplace) %{installdir}/config.inc.php -%dir %{installdir} +%attr(0755, apache, nobody) %dir %{installdir}/tmp %dir %{installdir}/themes %doc LICENSE #%doc ChangeLog Documentation.txt README @@ -216,6 +218,9 @@ rm -f .core .themes # scripts/*.sql %changelog +* Thu May 28 2020 Silvan Calarco 5.0.2-2mamba +- provide writable tmp direcotry + * Sat Mar 21 2020 Automatic Build System 5.0.2-1mamba - automatic version update by autodist