# $Id: smeserver-phpmyadmin.spec,v 1.18 2023/10/25 19:47:08 jpp Exp $ # Authority: darrellmay # Name: Darrell May Summary: phpMyAdmin for SME Server %define name smeserver-phpmyadmin Name: %{name} %define version 5.2.1 %define release 1 Version: %{version} Release: %{release}%{?dist} License: GPL Group: Mitel/addon Source: %{name}-%{version}.tar.xz URL: http://www.phpmyadmin.net/ BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildArchitectures: noarch Requires: smeserver-base Requires: phpMyAdmin >= 5.2.1 Requires: smeserver-release >= 11.0 Requires: smeserver-apache Obsoletes: phpmyadmin,phpMyAdmin3 BuildRequires: smeserver-devtools Obsoletes: e-smith-phpmyadmin Obsoletes: smeserver-phpmyadmin <= 3.5.2.2-1 Obsoletes: smeserver-phpmyadmin-multiuser %description Implementation of phpMyAdmin for SME Server. Access with admin username/password via: https://yourdomain/phpmyadmin. %changelog * Fri Sep 13 2024 Jean-Philippe Pialasse 5.2.1-1.sme - fix mysql user creation [SME: 12736] * Sun Sep 08 2024 fix-e-smith-pkg.sh by Trevor Batley 4.0.10.2-16.sme - Fix e-smith references in smeserver-phpmyadmin [SME: 12732] * Sat Sep 07 2024 cvs2git.sh aka Brian Read 4.0.10.2-15.sme - Roll up patches and move to git repo [SME: 12338] * Sat Sep 07 2024 BogusDateBot - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, by assuming the date is correct and changing the weekday. Thu Aug 06 2012 --> Thu Aug 02 2012 or Mon Aug 06 2012 or Thu Aug 09 2012 or .... * Wed Oct 25 2023 Jean-Philippe Pialasse 4.0.10.2-14.sme - fix private access not respected for admin [SME: 12343] * Sun Jul 31 2022 Jean-Philippe Pialasse 4.0.10.2-13.sme - update to httpd 2.4 access syntax [SME: 12056] * Sat Jul 23 2022 Jean-Philippe Pialasse 4.0.10.2-12.sme - use $httpPort in place of hardcoded port 80 [SME: 11408] - update to httpd 2.4 access syntax [SME: 12056] * Sun Feb 28 2021 Jean-Philipe Pialasse 4.0.10.2-11.sme - finish php74 pool integration [SME: 11043] fixed dir perms * Fri Dec 18 2020 John Crisp 4.0.10.2-8.sme - add php pool template and remove disable unit.ini * Thu Dec 17 2020 John Crisp 4.0.10.2-7.sme - fix BlowfishSecret [SME: 11043] - Update minimum e-smith release version * Wed Dec 16 2020 John Crisp 4.0.10.2-6.sme - fix patch file typo [SME: 11043] * Sun Nov 29 2020 Brian Read 4.0.10.2-5.sme - Change httpd frament to php-fpw and add in .user.ini to set php vars [SME: 11043] * Mon Apr 13 2020 Jean-Philipe Pialasse 4.0.10.2-4.sme - first import for contribs10 * Sat Aug 22 2015 stephane de Labrusse 4.0.10.2-3.sme - Initial release to contribs9 * Sun Sep 28 2014 stephane de labrusse 4.0.10.2-2.sme - added a tmp folder other that the /tmp [SME:8577] - added some db values to adjust php limits (PostMaxSize,UploadMaxSize,MemoryLimit) * Sun Sep 28 2014 stephane de labrusse 4.0.10.2-1.sme - added an event template on 'phpmyadmin-update' - added a phpmyadmin.sql db to save settings in db - new cool features (bookmarktable,relation,userconfig,table_info,column_info,history, - recent,table_uiprefs,tracking,table_coords,pdf_pages,designer_coords) - the http://url/setup page is now forbidden by apache - a db 'status' exists now to disable simply phpmyadmin in httpd.conf - removed the openbasedir of /tmp to /var/lib/phpMyAdmin/tmp * Wed Sep 24 2014 stephane de labrusse 4.0.10.1-1.sme - add memory value up to 500M - add php upload/post up to 100M - add session.use_trans_sid 0 - directory 'scripts' removed of httpd templates - VersionCheck is off now * Mon May 19 2014 stephane de labrusse 3.5.8.2-2 -first release to sme9 -added an event template on 'signal-event console-save' * Sat Jun 22 2013 JP Pialasse 3.5.2.2-6 - Obsolete multiuser [SME: 7685] * Tue Jun 18 2013 JP Pialasse 3.5.2.2-5 - added full 3.5 configuration to avoid errors [SME: 7153] [SME: 7194] - incorporated multiuser contrib in this package [SME: 7628 7627 ] - increased security [SME: 5007] - configext.patch - release bump to 4 to fix spec file - patch1 to fix config.inc.php syntax error * Thu Aug 06 2012 JP Pialasse aka Unnilennium 3.5.2.2-2 - first version for SME 8 - adaptation for phpMyAdmin3 3.5.2.2 * Thu May 15 2008 Jonathan Martens 2.11.1.2-3 - Protect sensible data and prevent access error by setting proper permissions to config.inc.php template [SME: 4343] * Wed May 14 2008 Jonathan Martens - Converted RPM to be an integrational RPM [SME: 4298]: - Convert and move templates to RPMForge (Dag) install location [SME: 4339] - Automatically expand phpmyadmin configuation file (config.php.inc) [SME: 4340] - Remove PHPMyAdmin core [SME: 4341] * Mon Apr 21 2008 Shad L. Lords - Prep for import into buildsys - Clean up spec * Fri Oct 19 2007 Darrell May - accounts and configuration db phpmyadmin defaults added - default access restricted to private (private|public) - phpMyAdmin 2.11.1.2 - [ 2.11.1.2-0] * Fri Mar 09 2007 Darrell May - phpMyAdmin 2.10.0.2 - [ 2.10.0.2-0] * Thu Oct 12 2006 Darrell May - phpMyAdmin 2.9.0.2 - [ 2.9.0.2-0] * Thu Dec 15 2005 Darrell May - phpMyAdmin 2.6.4-pl4 - [ 2.6.4-pl4] * Fri Apr 22 2005 Darrell May - added support for SME 7.x - [ 2.6.2-2] * Mon Apr 18 2005 Darrell May - Release 2.6.2 of phpMyAdmin - change rpm name to smeserver-phpmyadmin - change install dir to /opt/phpmyadmin - [ 2.6.2-1] %prep %setup %build %{__mkdir_p} root/var/lib/php/phpmyadmin/{tmp,session,opcache,wsdlcache} %{__mkdir_p} root/var/log/php/phpmyadmin perl createlinks %install /bin/rm -rf $RPM_BUILD_ROOT rm -f %{name}-%{version}-filelist (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) /bin/rm -f %{name}-%{version}-filelist /sbin/e-smith/genfilelist \ --dir /var/lib/php/phpmyadmin/ 'attr(0755,root,www)' \ --dir /var/lib/php/phpmyadmin/tmp 'attr(0770,www,www)' \ --dir /var/lib/php/phpmyadmin/opcache 'attr(0770,www,www)' \ --dir /var/lib/php/phpmyadmin/session 'attr(0770,www,www)' \ --dir /var/lib/php/phpmyadmin/wsdlcache 'attr(0770,www,www)' \ --dir /var/log/php/phpmyadmin 'attr(0770,root,www)' \ $RPM_BUILD_ROOT > %{name}-%{version}-filelist echo "%doc CHANGELOG.git" >> %{name}-%{version}-filelist echo "%doc phpmyadmin.sql" >> %{name}-%{version}-filelist %files -f %{name}-%{version}-filelist %defattr(-,root,root) %clean rm -rf $RPM_BUILD_ROOT