%define serverdir %(apxs -q htdocsdir 2>/dev/null) # To create a customized installation of phpMyAdmin: # autospec -u phpmyadmin -a5 \ # -d "installdir=%serverdir/../www.example.com, sitename=example" %if "%{?installdir}" == "" %define installdir %{serverdir}/%{name} %endif # themes %define theme_version 2.10 %define theme_Grid_version %{theme_version}b %define theme_Paradice_version 3.4 %define theme_arctic_ocean_version 3.3 %define theme_crimson_gray_version 3.1-3.2 %define theme_pixeline_version 2.11a %define theme_Verysmall_version %{theme_version}a Name: %{?sitename:%sitename-}phpmyadmin Version: 4.6.3 Release: 1mamba Summary: MySQL administration tool Group: Applications/Databases Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.phpmyadmin.net/ Source: https://files.phpmyadmin.net/phpMyAdmin/%{version}/phpMyAdmin-%{version}-all-languages.tar.xz Source1: http://downloads.sourceforge.net/project/phpmyadmin/themes/arctic_ocean/%{theme_arctic_ocean_version}/arctic_ocean-%{theme_arctic_ocean_version}.zip Source2: http://downloads.sourceforge.net/project/phpmyadmin/themes/crimson_gray/%{theme_crimson_gray_version}/crimson_gray-%{theme_crimson_gray_version}.zip #Source3: http://downloads.sourceforge.net/phpmyadmin/dark_lime-%{theme_version}.zip #Source4: http://downloads.sourceforge.net/phpmyadmin/grid-%{theme_Grid_version}.zip Source5: http://downloads.sourceforge.net/project/phpmyadmin/themes/paradice/%{theme_Paradice_version}/paradice-%{theme_Paradice_version}.zip Source6: http://downloads.sourceforge.net/project/phpmyadmin/themes/pixeline/%{theme_pixeline_version}/pixeline-%{theme_pixeline_version}.zip #Source7: http://downloads.sourceforge.net/phpmyadmin/silk-%{theme_version}.zip #Source8: http://downloads.sourceforge.net/phpmyadmin/very_small-%{theme_Verysmall_version}.zip License: GPL BuildArch: noarch ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END BuildRequires: apache Requires: apache-mod_php >= 4.3 Requires: php-mysqli #Requires: mysql >= 5.5 BuildRoot: %{_tmppath}/%{name}-%{version}-root %description phpMyAdmin can manage a whole MySQL server (needs a super-user) as well as a single database. To accomplish the latter you'll need a properly set up MySQL user who can read/write only the desired database. It's up to you to look up the appropriate part in the MySQL manual. Currently phpMyAdmin can: * create and drop databases * create, copy, drop, rename and alter tables * do table maintenance * delete, edit and add fields * execute any SQL-statement, even batch-queries * manage keys on fields * load text files into tables * create and read dumps of tables * export data to CSV, XML and Latex formats * administer multiple servers * manage MySQL users and privileges * check referential integrity in MyISAM tables using Query-by-example (QBE) * create complex queries automatically connecting required tables * create PDF graphics of your Database layout * search globally in a database or a subset of it * transform stored data into any format using a set of predefined functions, like displaying BLOB-data as image or download-link * support InnoDB tables and foreign keys * support mysqli, the improved MySQL extension %package themes Summary: Themes for phpMyAdmin Group: Applications/Databases URL: http://www.phpmyadmin.net/home_page/downloads.php?themes Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description themes phpMyAdmin can manage a whole MySQL server (needs a super-user) as well as a single database. To accomplish the latter you'll need a properly set up MySQL user who can read/write only the desired database. It's up to you to look up the appropriate part in the MySQL manual. Currently phpMyAdmin can: * create and drop databases * create, copy, drop, rename and alter tables * do table maintenance * delete, edit and add fields * execute any SQL-statement, even batch-queries * manage keys on fields * load text files into tables * create and read dumps of tables * export data to CSV, XML and Latex formats * administer multiple servers * manage MySQL users and privileges * check referential integrity in MyISAM tables using Query-by-example (QBE) * create complex queries automatically connecting required tables * create PDF graphics of your Database layout * search globally in a database or a subset of it * transform stored data into any format using a set of predefined functions, like displaying BLOB-data as image or download-link * support InnoDB tables and foreign keys * support mysqli, the improved MySQL extension This package contains various themes. %prep %setup -q -n phpMyAdmin-%{version}-all-languages for theme in $(ls themes); do echo %{installdir}/themes/$theme >> .core done cd themes for theme in %{S:1} %{S:2} %{S:5} %{S:6}; do unzip $theme done cd .. %build mv config.sample.inc.php config.inc.php %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d %{buildroot}%{installdir} cp -a * %{buildroot}%{installdir} (cd %{buildroot}%{installdir} rm -f ChangeLog CREDITS Documentation.txt INSTALL LICENSE README rm -f RELEASE-DATE-%{version} TODO) # create lists of files find %{buildroot}%{installdir}/themes \ -mindepth 1 -maxdepth 1 -type d | sed "s,^%{buildroot},," > .themes for corefile in $(grep themes .core); do sed -i "s,^$corefile$,," .themes done find %{buildroot}%{installdir} \ -mindepth 1 -maxdepth 1 \ ! -name themes | sed "s,^%{buildroot},," >> .core install -d %{buildroot}%{_sysconfdir}/httpd/httpd.d cat > %{buildroot}%{_sysconfdir}/httpd/httpd.d/%{name}.conf << EOF %{?!sitename:Alias /%name %installdir} Allow from All php_flag session.auto_start 0 php_admin_flag register_globals off php_admin_flag magic_quotes_gpc off php_admin_flag allow_url_include off php_admin_flag allow_url_fopen off php_admin_value open_basedir "%{installdir}:/tmp:/dev" Order Deny,Allow Deny from All Allow from None EOF rm -f %{buildroot}%{installdir}/themes/.gitignore %post if [ $1 -eq 1 ]; then password=`mkpasswd -s 0` sed -i "s|\(\$cfg\['blowfish_secret'\] = \)''|\1'$password'|" %{installdir}/config.inc.php fi if [ $1 -ge 1 ]; then service httpd reload fi : %postun # uninstall if [ $1 -eq 0 ]; then service httpd reload fi : %post themes if [ -w %{installdir}/libraries/config.default.php ]; then sed -i "s/\(\$cfg\['ThemeDefault'\][ ]*= '\)original/\1arctic_ocean/" \ %{installdir}/libraries/config.default.php fi : %preun themes # uninstall if [ $1 -eq 0 ]; then if [ -w %{installdir}/libraries/config.default.php ]; then sed -i "s/\(\$cfg\['ThemeDefault'\][ ]*= '\)[^']*/\1original/" \ %{installdir}/libraries/config.default.php fi fi : %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" rm -f .core .themes %files themes -f .themes %defattr(-, root, root) %files -f .core %defattr(-, root, root) %config(noreplace) %{_sysconfdir}/httpd/httpd.d/%{name}.conf %config(noreplace) %{installdir}/config.inc.php %dir %{installdir} %dir %{installdir}/themes %doc LICENSE #%doc ChangeLog Documentation.txt README #%doc RELEASE-DATE-%{version} # scripts/*.sql %changelog * Thu Jun 23 2016 Automatic Build System 4.6.3-1mamba - automatic version update by autodist * Thu May 26 2016 Automatic Build System 4.6.2-1mamba - automatic version update by autodist * Tue May 03 2016 Automatic Build System 4.6.1-1mamba - automatic version update by autodist * Tue Mar 22 2016 Automatic Build System 4.6.0-1mamba - automatic version update by autodist * Tue Mar 01 2016 Automatic Build System 4.5.5.1-1mamba - automatic version update by autodist * Tue Feb 23 2016 Automatic Build System 4.5.5-1mamba - automatic version update by autodist * Thu Feb 04 2016 Silvan Calarco 4.5.4.1-2mamba - require php-mysqli instead of php-mysql * Sat Jan 30 2016 Automatic Build System 4.5.4.1-1mamba - automatic version update by autodist * Thu Jan 28 2016 Automatic Build System 4.5.4-1mamba - automatic version update by autodist * Sat Dec 26 2015 Automatic Build System 4.5.3.1-1mamba - automatic version update by autodist * Thu Dec 24 2015 Automatic Build System 4.5.3-1mamba - automatic version update by autodist * Thu Dec 03 2015 Silvan Calarco 4.5.2-1mamba - update to 4.5.2 * Mon Jul 13 2015 Silvan Calarco 4.4.10-2mamba - allow /dev in php basedir configuration to fix blocking when trying to use /dev/urandom * Wed Jun 17 2015 Automatic Build System 4.4.10-1mamba - automatic version update by autodist * Fri Jun 05 2015 Automatic Build System 4.4.9-1mamba - automatic version update by autodist * Thu May 28 2015 Automatic Build System 4.4.8-1mamba - automatic version update by autodist * Sat May 16 2015 Automatic Build System 4.4.7-1mamba - automatic version update by autodist * Thu May 14 2015 Automatic Build System 4.4.6.1-1mamba - automatic version update by autodist * Fri May 08 2015 Automatic Build System 4.4.6-1mamba - automatic version update by autodist * Wed May 06 2015 Automatic Build System 4.4.5-1mamba - automatic version update by autodist * Mon Apr 27 2015 Automatic Build System 4.4.4-2mamba - automatic version update by autodist * Mon Apr 27 2015 Automatic Build System 4.4.4-1mamba - automatic version update by autodist * Fri Apr 03 2015 Automatic Build System 4.4.0-1mamba - automatic version update by autodist * Tue Mar 31 2015 Automatic Build System 4.3.13-1mamba - automatic version update by autodist * Sun Mar 29 2015 Automatic Build System 4.3.12-1mamba - automatic version update by autodist * Fri Feb 20 2015 Automatic Build System 4.3.10-1mamba - automatic version update by autodist * Fri Feb 06 2015 Automatic Build System 4.3.9-1mamba - automatic version update by autodist * Mon Jan 26 2015 Automatic Build System 4.3.8-1mamba - automatic version update by autodist * Thu Jan 15 2015 Automatic Build System 4.3.7-1mamba - automatic version update by autodist * Thu Jan 08 2015 Automatic Build System 4.3.6-1mamba - automatic version update by autodist * Tue Jan 06 2015 Automatic Build System 4.3.5-1mamba - automatic version update by autodist * Mon Dec 29 2014 Automatic Build System 4.3.4-1mamba - automatic version update by autodist * Sun Dec 21 2014 Automatic Build System 4.3.3-1mamba - automatic version update by autodist * Sat Dec 13 2014 Automatic Build System 4.3.2-1mamba - automatic version update by autodist * Tue Dec 09 2014 Automatic Build System 4.3.1-1mamba - automatic version update by autodist * Sat Dec 06 2014 Automatic Build System 4.3.0-1mamba - automatic version update by autodist * Fri Dec 05 2014 Automatic Build System 4.2.13.1-2mamba - automatic version update by autodist * Wed Dec 03 2014 Automatic Build System 4.2.13.1-1mamba - automatic version update by autodist * Sun Nov 30 2014 Automatic Build System 4.2.13-1mamba - automatic version update by autodist * Fri Nov 21 2014 Automatic Build System 4.2.12-1mamba - automatic version update by autodist * Sat Nov 01 2014 Automatic Build System 4.2.11-1mamba - automatic version update by autodist * Wed Oct 22 2014 Automatic Build System 4.2.10.1-1mamba - automatic version update by autodist * Sat Oct 11 2014 Automatic Build System 4.2.10-1mamba - automatic version update by autodist * Wed Oct 08 2014 Automatic Build System 4.2.9.1-1mamba - automatic version update by autodist * Sun Sep 21 2014 Automatic Build System 4.2.9-1mamba - automatic version update by autodist * Sun Sep 14 2014 Automatic Build System 4.2.8.1-1mamba - automatic version update by autodist * Mon Sep 01 2014 Automatic Build System 4.2.8-1mamba - automatic version update by autodist * Mon Aug 18 2014 Automatic Build System 4.2.7.1-1mamba - automatic version update by autodist * Sun Aug 03 2014 Automatic Build System 4.2.7-1mamba - automatic version update by autodist * Fri Jul 18 2014 Automatic Build System 4.2.6-1mamba - automatic version update by autodist * Fri Jun 27 2014 Automatic Build System 4.2.5-1mamba - automatic version update by autodist * Sat Jun 21 2014 Automatic Build System 4.2.4-1mamba - automatic version update by autodist * Mon Jun 09 2014 Automatic Build System 4.2.3-1mamba - automatic version update by autodist * Wed May 21 2014 Automatic Build System 4.2.2-1mamba - automatic version update by autodist * Wed May 14 2014 Automatic Build System 4.2.1-1mamba - automatic version update by autodist * Thu May 08 2014 Automatic Build System 4.2.0-1mamba - automatic version update by autodist * Sat Apr 26 2014 Automatic Build System 4.1.14-1mamba - automatic version update by autodist * Sun Apr 13 2014 Automatic Build System 4.1.13-1mamba - automatic version update by autodist * Fri Mar 28 2014 Automatic Build System 4.1.12-1mamba - automatic version update by autodist * Sun Mar 23 2014 Automatic Build System 4.1.11-1mamba - automatic version update by autodist * Fri Mar 07 2014 Automatic Build System 4.1.9-1mamba - automatic version update by autodist * Sat Feb 22 2014 Automatic Build System 4.1.8-1mamba - automatic version update by autodist * Sun Feb 09 2014 Automatic Build System 4.1.7-1mamba - automatic version update by autodist * Sun Jan 26 2014 Automatic Build System 4.1.6-1mamba - automatic version update by autodist * Sat Jan 18 2014 Automatic Build System 4.1.5-1mamba - automatic version update by autodist * Wed Jan 08 2014 Automatic Build System 4.1.4-1mamba - automatic version update by autodist * Tue Dec 31 2013 Automatic Build System 4.1.3-1mamba - automatic version update by autodist * Mon Dec 23 2013 Automatic Build System 4.1.2-1mamba - automatic version update by autodist * Tue Dec 17 2013 Automatic Build System 4.1.1-1mamba - automatic version update by autodist * Thu Dec 12 2013 Automatic Build System 4.1.0-1mamba - automatic version update by autodist * Wed Dec 04 2013 Automatic Build System 4.0.10-1mamba - automatic version update by autodist * Mon Nov 04 2013 Automatic Build System 4.0.9-1mamba - automatic version update by autodist * Mon Oct 07 2013 Automatic Build System 4.0.8-1mamba - automatic version update by autodist * Tue Sep 24 2013 Automatic Build System 4.0.7-1mamba - automatic version update by autodist * Fri Sep 06 2013 Automatic Build System 4.0.6-1mamba - automatic version update by autodist * Sun Aug 04 2013 Automatic Build System 4.0.5-1mamba - automatic version update by autodist * Sun Jul 28 2013 Automatic Build System 4.0.4.2-1mamba - automatic version update by autodist * Sun Jun 30 2013 Automatic Build System 4.0.4.1-1mamba - automatic version update by autodist * Tue Jun 18 2013 Automatic Build System 4.0.4-1mamba - automatic version update by autodist * Thu Jun 06 2013 Automatic Build System 4.0.3-1mamba - automatic version update by autodist * Sat May 25 2013 Automatic Build System 4.0.2-1mamba - automatic version update by autodist * Wed May 15 2013 Automatic Build System 4.0.1-1mamba - automatic version update by autodist * Sat May 04 2013 Automatic Build System 4.0.0-1mamba - automatic version update by autodist * Wed Apr 24 2013 Automatic Build System 3.5.8.1-1mamba - automatic version update by autodist * Mon Apr 08 2013 Automatic Build System 3.5.8-1mamba - automatic version update by autodist * Fri Feb 15 2013 Automatic Build System 3.5.7-1mamba - automatic version update by autodist * Mon Jan 28 2013 Automatic Build System 3.5.6-1mamba - automatic version update by autodist * Fri Dec 21 2012 Automatic Build System 3.5.5-1mamba - automatic version update by autodist * Sat Nov 17 2012 Automatic Build System 3.5.4-1mamba - automatic version update by autodist * Wed Oct 10 2012 Silvan Calarco 3.5.3-2mamba - fixed apxs path used to detected correct installdir * Tue Oct 09 2012 Automatic Build System 3.5.3-1mamba - automatic version update by autodist * Mon Aug 13 2012 Automatic Build System 3.5.2.2-1mamba - automatic version update by autodist * Sat Aug 04 2012 Automatic Build System 3.5.2.1-1mamba - automatic version update by autodist * Sat Jul 07 2012 Automatic Build System 3.5.2-1mamba - automatic version update by autodist * Fri May 04 2012 Automatic Build System 3.5.1-1mamba - automatic version update by autodist * Wed Apr 11 2012 Automatic Build System 3.5.0-1mamba - automatic version update by autodist * Thu Dec 22 2011 Automatic Build System 3.4.9-1mamba - automatic version update by autodist * Fri Dec 02 2011 Automatic Build System 3.4.8-1mamba - automatic version update by autodist * Thu Nov 10 2011 Automatic Build System 3.4.7.1-1mamba - automatic version update by autodist * Mon Oct 24 2011 Automatic Build System 3.4.7-1mamba - automatic version update by autodist * Sun Oct 16 2011 Automatic Build System 3.4.6-1mamba - automatic version update by autodist * Wed Sep 14 2011 Automatic Build System 3.4.5-1mamba - automatic version update by autodist * Thu Aug 25 2011 Automatic Build System 3.4.4-1mamba - automatic version update by autodist * Sat Jul 23 2011 Automatic Build System 3.4.3.2-1mamba - automatic update to 3.0.3.0 by autodist * Sun Jul 03 2011 Automatic Build System 3.4.3.1-1mamba - automatic update by autodist * Mon Jun 27 2011 Automatic Build System 3.4.3-1mamba - automatic update by autodist * Tue Jun 07 2011 Automatic Build System 3.4.2-1mamba - automatic update by autodist * Sat May 21 2011 Automatic Build System 3.4.1-1mamba - automatic update by autodist * Fri May 13 2011 Silvan Calarco 3.4.0-2mamba - reload instead of restarting apache * Wed May 11 2011 Automatic Build System 3.4.0-1mamba - automatic update by autodist * Sat Mar 19 2011 Automatic Build System 3.3.10-1mamba - automatic update by autodist * Sat Feb 12 2011 Automatic Build System 3.3.9.2-1mamba - automatic update by autodist * Wed Feb 09 2011 Automatic Build System 3.3.9.1-1mamba - automatic update by autodist * Mon Jan 03 2011 Automatic Build System 3.3.9-1mamba - automatic update by autodist * Tue Nov 30 2010 Automatic Build System 3.3.8.1-1mamba - automatic update to 3.3.8.1 by autodist * Tue Oct 26 2010 Automatic Build System 3.3.8-1mamba - automatic update to 3.3.8 by autodist * Wed Sep 08 2010 Automatic Build System 3.3.7-1mamba - automatic update to 3.3.7 by autodist * Thu Sep 02 2010 Automatic Build System 3.3.6-1mamba - automatic update to 3.3.6 by autodist * Sat Aug 21 2010 Automatic Build System 3.3.5.1-1mamba - automatic update to 3.3.5.1 by autodist * Tue Jul 27 2010 Automatic Build System 3.3.5-1mamba - automatic update to 3.3.5 by autodist * Mon Jun 28 2010 Automatic Build System 3.3.4-1mamba - automatic update to 3.3.4 by autodist * Mon May 10 2010 Automatic Build System 3.3.3-1mamba - automatic update to 3.3.3 by autodist * Wed Apr 14 2010 Automatic Build System 3.3.2-1mamba - automatic update to 3.3.2 by autodist * Tue Mar 16 2010 Automatic Build System 3.3.1-1mamba - automatic update to 3.3.1 by autodist * Mon Mar 08 2010 Automatic Build System 3.3.0-1mamba - automatic update to 3.3.0 by autodist * Sun Jan 10 2010 Automatic Build System 3.2.5-1mamba - automatic update to 3.2.5 by autodist * Thu Dec 03 2009 Automatic Build System 3.2.4-1mamba - automatic update to 3.2.4 by autodist * Sat Oct 31 2009 Automatic Build System 3.2.3-1mamba - automatic update to 3.2.3 by autodist * Tue Oct 13 2009 Automatic Build System 3.2.2.1-1mamba - automatic update to 3.2.2.1 by autodist * Sun Sep 13 2009 Automatic Build System 3.2.2-1mamba - automatic update to 3.2.2 by autodist * Mon Aug 10 2009 Automatic Build System 3.2.1-1mamba - automatic update to 3.2.1 by autodist * Wed Jul 01 2009 Automatic Build System 3.2.0.1-1mamba - automatic update to 3.2.0.1 by autodist * Tue Jun 16 2009 Automatic Build System 3.2.0-1mamba - automatic update to 3.2.0 by autodist * Sat May 16 2009 Automatic Build System 3.1.5-1mamba - automatic update to 3.1.5 by autodist * Sat Apr 25 2009 Automatic Build System 3.1.4-1mamba - automatic update to 3.1.4 by autodist * Wed Apr 15 2009 Silvan Calarco 3.1.3.2-1mamba - automatic update to 3.1.3.2 by autodist * Wed Mar 25 2009 Silvan Calarco 3.1.3.1-1mamba - automatic update to 3.1.3.1 by autodist * Thu Mar 19 2009 Silvan Calarco 3.1.3-1mamba - update to 3.1.3 * Thu Mar 19 2009 Silvan Calarco 2.11.9.4-1mamba - update to 2.11.9.4 * Tue Sep 23 2008 Silvan Calarco 2.11.9.2-1mamba - automatic update to 2.11.9.2 by autodist * Tue Sep 16 2008 Silvan Calarco 2.11.9.1-1mamba - automatic update to 2.11.9.1 by autodist * Sun Aug 31 2008 Silvan Calarco 2.11.9-1mamba - update to 2.11.9 * Tue May 22 2007 Stefano Cotta Ramusino 2.10.1-1mamba - update to 2.10.1 - added themes subpackage - added apache configuration file - added %%installdir and %%sitename variables * Tue May 23 2006 Silvan Calarco 2.8.1-1qilnx - update to version 2.8.1 by autospec - fixed group entry * Mon Jun 27 2005 Alessandro Ramazzina 2.6.2-2qilnx - rebuild and moved from devel-contrbi repository to devel repository * Fri Apr 22 2005 Matteo Bernasconi 2.6.2-1qilnx - First Build