1 |
# $Id: smeserver-phpmyadmin.spec,v 1.6 2020/12/17 12:53:08 jcrisp Exp $ |
# $Id: smeserver-phpmyadmin.spec,v 1.10 2021/02/28 03:30:17 jpp Exp $ |
2 |
# Authority: darrellmay |
# Authority: darrellmay |
3 |
# Name: Darrell May |
# Name: Darrell May |
4 |
|
|
6 |
%define name smeserver-phpmyadmin |
%define name smeserver-phpmyadmin |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 4.0.10.2 |
%define version 4.0.10.2 |
9 |
%define release 8 |
%define release 9 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
27 |
Patch0: smeserver-phpmyadmin-4.0.10.2-Update-httpd-for-php-fpw-and-add-unit-file.patch |
Patch0: smeserver-phpmyadmin-4.0.10.2-Update-httpd-for-php-fpw-and-add-unit-file.patch |
28 |
Patch1: smeserver-phpmyadmin-4.0.10.2-bz11043-add-blowfishsecret.patch |
Patch1: smeserver-phpmyadmin-4.0.10.2-bz11043-add-blowfishsecret.patch |
29 |
Patch2: smeserver-phpmyadmin-4.0.10.2-bz11043-configure-php-pool.patch |
Patch2: smeserver-phpmyadmin-4.0.10.2-bz11043-configure-php-pool.patch |
30 |
|
Patch3: smeserver-phpmyadmin-4.0.10.2-bz11043.patch |
31 |
|
|
32 |
%description |
%description |
33 |
Implementation of phpMyAdmin for SME Server. |
Implementation of phpMyAdmin for SME Server. |
34 |
Access with admin username/password via: https://yourdomain/phpmyadmin. |
Access with admin username/password via: https://yourdomain/phpmyadmin. |
35 |
|
|
36 |
%changelog |
%changelog |
37 |
|
* Sun Feb 28 2021 Jean-Philipe Pialasse <tests@pialasse.com> 4.0.10.2-9.sme |
38 |
|
- finish php74 pool integration [SME: 11043] |
39 |
|
|
40 |
* Fri Dec 18 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 4.0.10.2-8.sme |
* Fri Dec 18 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 4.0.10.2-8.sme |
41 |
- add php pool template and remove disable unit.ini |
- add php pool template and remove disable unit.ini |
42 |
|
|
137 |
%patch0 -p1 |
%patch0 -p1 |
138 |
%patch1 -p1 |
%patch1 -p1 |
139 |
%patch2 -p1 |
%patch2 -p1 |
140 |
|
%patch3 -p1 |
141 |
|
|
142 |
%build |
%build |
143 |
%{__mkdir_p} root/var/lib/phpMyAdmin/tmp |
%{__mkdir_p} root/var/lib/php/phpmyadmin/{tmp,session,opcache,wsdlcache} |
144 |
|
%{__mkdir_p} root/var/log/php/phpmyadmin |
145 |
perl createlinks |
perl createlinks |
146 |
|
|
147 |
%install |
%install |
150 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
151 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
152 |
/sbin/e-smith/genfilelist \ |
/sbin/e-smith/genfilelist \ |
153 |
--dir /var/lib/phpMyAdmin/tmp 'attr(0770,root,www)' \ |
--dir /var/lib/php/phmyadmin/ 'attr(0755,root,www)' \ |
154 |
--dir /var/log/php/phpmyadmin 'attr(0755,www,www)' \ |
--dir /var/lib/php/phmyadmin/tmp 'attr(0770,www,www)' \ |
155 |
|
--dir /var/lib/php/phmyadmin/opcache 'attr(0770,www,www)' \ |
156 |
|
--dir /var/lib/php/phmyadmin/session 'attr(0770,www,www)' \ |
157 |
|
--dir /var/lib/php/phmyadmin/wsdlcache 'attr(0770,www,www)' \ |
158 |
|
--dir /var/log/php/phpmyadmin 'attr(0755,root,www)' \ |
159 |
$RPM_BUILD_ROOT > %{name}-%{version}-filelist |
$RPM_BUILD_ROOT > %{name}-%{version}-filelist |
160 |
echo "%doc CHANGELOG.git" >> %{name}-%{version}-filelist |
echo "%doc CHANGELOG.git" >> %{name}-%{version}-filelist |
161 |
echo "%doc phpmyadmin.sql" >> %{name}-%{version}-filelist |
echo "%doc phpmyadmin.sql" >> %{name}-%{version}-filelist |