1 |
# $Id: smeserver-phpmyadmin.spec,v 1.1 2020/04/13 11:23:29 jpp Exp $ |
# $Id: smeserver-phpmyadmin.spec,v 1.16 2022/07/24 04:12:28 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 4 |
%define release 13 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
17 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
18 |
Requires: e-smith-base |
Requires: e-smith-base |
19 |
Requires: phpMyAdmin >= 4.4.15.10 |
Requires: phpMyAdmin >= 4.4.15.10 |
20 |
Requires: e-smith-release >= 9.0 |
Requires: e-smith-release >= 10.0 |
21 |
|
Requires: e-smith-apache >= 2.6.0-19 |
22 |
Obsoletes: phpmyadmin,phpMyAdmin3 |
Obsoletes: phpmyadmin,phpMyAdmin3 |
23 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
24 |
Obsoletes: e-smith-phpmyadmin |
Obsoletes: e-smith-phpmyadmin |
25 |
Obsoletes: smeserver-phpmyadmin <= 3.5.2.2-1 |
Obsoletes: smeserver-phpmyadmin <= 3.5.2.2-1 |
26 |
Obsoletes: smeserver-phpmyadmin-multiuser |
Obsoletes: smeserver-phpmyadmin-multiuser |
27 |
|
|
28 |
|
Patch0: smeserver-phpmyadmin-4.0.10.2-Update-httpd-for-php-fpw-and-add-unit-file.patch |
29 |
|
Patch1: smeserver-phpmyadmin-4.0.10.2-bz11043-add-blowfishsecret.patch |
30 |
|
Patch2: smeserver-phpmyadmin-4.0.10.2-bz11043-configure-php-pool.patch |
31 |
|
Patch3: smeserver-phpmyadmin-4.0.10.2-bz11043.patch |
32 |
|
Patch4: smeserver-phpmyadmin-4.0.10.2-bz11408-httpport.patch |
33 |
|
Patch5: smeserver-phpmyadmin-4.0.10.2-bz12056-httpd24.patch |
34 |
|
|
35 |
%description |
%description |
36 |
Implementation of phpMyAdmin for SME Server. |
Implementation of phpMyAdmin for SME Server. |
37 |
Access with admin username/password via: https://yourdomain/phpmyadmin. |
Access with admin username/password via: https://yourdomain/phpmyadmin. |
38 |
|
|
39 |
%changelog |
%changelog |
40 |
|
* Sun Jul 31 2022 Jean-Philippe Pialasse <tests@pialasse.com> 4.0.10.2-13.sme |
41 |
|
- update to httpd 2.4 access syntax [SME: 12056] |
42 |
|
|
43 |
|
* Sat Jul 23 2022 Jean-Philippe Pialasse <tests@pialasse.com> 4.0.10.2-12.sme |
44 |
|
- use $httpPort in place of hardcoded port 80 [SME: 11408] |
45 |
|
- update to httpd 2.4 access syntax [SME: 12056] |
46 |
|
|
47 |
|
* Sun Feb 28 2021 Jean-Philipe Pialasse <tests@pialasse.com> 4.0.10.2-11.sme |
48 |
|
- finish php74 pool integration [SME: 11043] |
49 |
|
fixed dir perms |
50 |
|
|
51 |
|
* Fri Dec 18 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 4.0.10.2-8.sme |
52 |
|
- add php pool template and remove disable unit.ini |
53 |
|
|
54 |
|
* Thu Dec 17 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 4.0.10.2-7.sme |
55 |
|
- fix BlowfishSecret [SME: 11043] |
56 |
|
- Update minimum e-smith release version |
57 |
|
|
58 |
|
* Wed Dec 16 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 4.0.10.2-6.sme |
59 |
|
- fix patch file typo [SME: 11043] |
60 |
|
|
61 |
|
* Sun Nov 29 2020 Brian Read <brianr@bjsystems.co.uk> 4.0.10.2-5.sme |
62 |
|
- Change httpd frament to php-fpw and add in .user.ini to set php vars [SME: 11043] |
63 |
|
|
64 |
* Mon Apr 13 2020 Jean-Philipe Pialasse <tests@pialasse.com> 4.0.10.2-4.sme |
* Mon Apr 13 2020 Jean-Philipe Pialasse <tests@pialasse.com> 4.0.10.2-4.sme |
65 |
- first import for contribs10 |
- first import for contribs10 |
66 |
|
|
145 |
|
|
146 |
%prep |
%prep |
147 |
%setup |
%setup |
148 |
|
%patch0 -p1 |
149 |
|
%patch1 -p1 |
150 |
|
%patch2 -p1 |
151 |
|
%patch3 -p1 |
152 |
|
%patch4 -p1 |
153 |
|
%patch5 -p1 |
154 |
|
|
155 |
%build |
%build |
156 |
%{__mkdir_p} root/var/lib/phpMyAdmin/tmp |
%{__mkdir_p} root/var/lib/php/phpmyadmin/{tmp,session,opcache,wsdlcache} |
157 |
|
%{__mkdir_p} root/var/log/php/phpmyadmin |
158 |
perl createlinks |
perl createlinks |
159 |
|
|
160 |
%install |
%install |
163 |
(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) |
164 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
165 |
/sbin/e-smith/genfilelist \ |
/sbin/e-smith/genfilelist \ |
166 |
--dir /var/lib/phpMyAdmin/tmp 'attr(0770,root,www)' \ |
--dir /var/lib/php/phpmyadmin/ 'attr(0755,root,www)' \ |
167 |
|
--dir /var/lib/php/phpmyadmin/tmp 'attr(0770,www,www)' \ |
168 |
|
--dir /var/lib/php/phpmyadmin/opcache 'attr(0770,www,www)' \ |
169 |
|
--dir /var/lib/php/phpmyadmin/session 'attr(0770,www,www)' \ |
170 |
|
--dir /var/lib/php/phpmyadmin/wsdlcache 'attr(0770,www,www)' \ |
171 |
|
--dir /var/log/php/phpmyadmin 'attr(0770,root,www)' \ |
172 |
$RPM_BUILD_ROOT > %{name}-%{version}-filelist |
$RPM_BUILD_ROOT > %{name}-%{version}-filelist |
173 |
echo "%doc CHANGELOG.git" >> %{name}-%{version}-filelist |
echo "%doc CHANGELOG.git" >> %{name}-%{version}-filelist |
174 |
echo "%doc phpmyadmin.sql" >> %{name}-%{version}-filelist |
echo "%doc phpmyadmin.sql" >> %{name}-%{version}-filelist |