1 |
# $Id: smeserver-phpmyadmin.spec,v 1.15 2022/07/24 03:59:04 jpp Exp $ |
2 |
# Authority: darrellmay |
3 |
# Name: Darrell May |
4 |
|
5 |
Summary: phpMyAdmin for SME Server |
6 |
%define name smeserver-phpmyadmin |
7 |
Name: %{name} |
8 |
%define version 4.0.10.2 |
9 |
%define release 12 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: Mitel/addon |
14 |
Source: %{name}-%{version}.tar.gz |
15 |
URL: http://www.phpmyadmin.net/ |
16 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
17 |
BuildArchitectures: noarch |
18 |
Requires: e-smith-base |
19 |
Requires: phpMyAdmin >= 4.4.15.10 |
20 |
Requires: e-smith-release >= 10.0 |
21 |
Obsoletes: phpmyadmin,phpMyAdmin3 |
22 |
BuildRequires: e-smith-devtools |
23 |
Obsoletes: e-smith-phpmyadmin |
24 |
Obsoletes: smeserver-phpmyadmin <= 3.5.2.2-1 |
25 |
Obsoletes: smeserver-phpmyadmin-multiuser |
26 |
|
27 |
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 |
29 |
Patch2: smeserver-phpmyadmin-4.0.10.2-bz11043-configure-php-pool.patch |
30 |
Patch3: smeserver-phpmyadmin-4.0.10.2-bz11043.patch |
31 |
Patch4: smeserver-phpmyadmin-4.0.10.2-bz11408-httpport.patch |
32 |
Patch5: smeserver-phpmyadmin-4.0.10.2-bz12056-httpd24.patch |
33 |
|
34 |
%description |
35 |
Implementation of phpMyAdmin for SME Server. |
36 |
Access with admin username/password via: https://yourdomain/phpmyadmin. |
37 |
|
38 |
%changelog |
39 |
* Sat Jul 23 2022 Jean-Philippe Pialasse <tests@pialasse.com> 4.0.10.2-12.sme |
40 |
- use $httpPort in place of hardcoded port 80 [SME: 11408] |
41 |
- update to httpd 2.4 access syntax [SME: 12056] |
42 |
|
43 |
* Sun Feb 28 2021 Jean-Philipe Pialasse <tests@pialasse.com> 4.0.10.2-11.sme |
44 |
- finish php74 pool integration [SME: 11043] |
45 |
fixed dir perms |
46 |
|
47 |
* Fri Dec 18 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 4.0.10.2-8.sme |
48 |
- add php pool template and remove disable unit.ini |
49 |
|
50 |
* Thu Dec 17 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 4.0.10.2-7.sme |
51 |
- fix BlowfishSecret [SME: 11043] |
52 |
- Update minimum e-smith release version |
53 |
|
54 |
* Wed Dec 16 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 4.0.10.2-6.sme |
55 |
- fix patch file typo [SME: 11043] |
56 |
|
57 |
* Sun Nov 29 2020 Brian Read <brianr@bjsystems.co.uk> 4.0.10.2-5.sme |
58 |
- Change httpd frament to php-fpw and add in .user.ini to set php vars [SME: 11043] |
59 |
|
60 |
* Mon Apr 13 2020 Jean-Philipe Pialasse <tests@pialasse.com> 4.0.10.2-4.sme |
61 |
- first import for contribs10 |
62 |
|
63 |
* Sat Aug 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 4.0.10.2-3.sme |
64 |
- Initial release to contribs9 |
65 |
|
66 |
* Sun Sep 28 2014 stephane de labrusse <stephdl@de-labrusse.fr> 4.0.10.2-2.sme |
67 |
- added a tmp folder other that the /tmp [SME:8577] |
68 |
- added some db values to adjust php limits (PostMaxSize,UploadMaxSize,MemoryLimit) |
69 |
|
70 |
* Sun Sep 28 2014 stephane de labrusse <stephdl@de-labrusse.fr> 4.0.10.2-1.sme |
71 |
- added an event template on 'phpmyadmin-update' |
72 |
- added a phpmyadmin.sql db to save settings in db |
73 |
- new cool features (bookmarktable,relation,userconfig,table_info,column_info,history, |
74 |
- recent,table_uiprefs,tracking,table_coords,pdf_pages,designer_coords) |
75 |
- the http://url/setup page is now forbidden by apache |
76 |
- a db 'status' exists now to disable simply phpmyadmin in httpd.conf |
77 |
- removed the openbasedir of /tmp to /var/lib/phpMyAdmin/tmp |
78 |
|
79 |
* Wed Sep 24 2014 stephane de labrusse <stephdl@de-labrusse.fr> 4.0.10.1-1.sme |
80 |
- add memory value up to 500M |
81 |
- add php upload/post up to 100M |
82 |
- add session.use_trans_sid 0 |
83 |
- directory 'scripts' removed of httpd templates |
84 |
- VersionCheck is off now |
85 |
|
86 |
* Mon May 19 2014 stephane de labrusse <stephdl@de-labrusse.fr> 3.5.8.2-2 |
87 |
-first release to sme9 |
88 |
-added an event template on 'signal-event console-save' |
89 |
|
90 |
* Sat Jun 22 2013 JP Pialasse <tests@pialasse.com> 3.5.2.2-6 |
91 |
- Obsolete multiuser [SME: 7685] |
92 |
|
93 |
* Tue Jun 18 2013 JP Pialasse <tests@pialasse.com> 3.5.2.2-5 |
94 |
- added full 3.5 configuration to avoid errors [SME: 7153] [SME: 7194] |
95 |
- incorporated multiuser contrib in this package [SME: 7628 7627 ] |
96 |
- increased security [SME: 5007] |
97 |
- configext.patch |
98 |
- release bump to 4 to fix spec file |
99 |
- patch1 to fix config.inc.php syntax error |
100 |
|
101 |
* Thu Aug 06 2012 JP Pialasse aka Unnilennium <tests@pialasse.com> 3.5.2.2-2 |
102 |
- first version for SME 8 |
103 |
- adaptation for phpMyAdmin3 3.5.2.2 |
104 |
|
105 |
* Thu May 15 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.11.1.2-3 |
106 |
- Protect sensible data and prevent access error by setting |
107 |
proper permissions to config.inc.php template [SME: 4343] |
108 |
|
109 |
* Wed May 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> |
110 |
- Converted RPM to be an integrational RPM [SME: 4298]: |
111 |
- Convert and move templates to RPMForge (Dag) install location [SME: 4339] |
112 |
- Automatically expand phpmyadmin configuation file (config.php.inc) [SME: 4340] |
113 |
- Remove PHPMyAdmin core [SME: 4341] |
114 |
|
115 |
* Mon Apr 21 2008 Shad L. Lords <slords@mail.com> |
116 |
- Prep for import into buildsys |
117 |
- Clean up spec |
118 |
|
119 |
* Fri Oct 19 2007 Darrell May <dmay@myezserver.com> |
120 |
- accounts and configuration db phpmyadmin defaults added |
121 |
- default access restricted to private (private|public) |
122 |
- phpMyAdmin 2.11.1.2 |
123 |
- [ 2.11.1.2-0] |
124 |
* Fri Mar 09 2007 Darrell May <dmay@myezserver.com> |
125 |
- phpMyAdmin 2.10.0.2 |
126 |
- [ 2.10.0.2-0] |
127 |
* Thu Oct 12 2006 Darrell May <dmay@myezserver.com> |
128 |
- phpMyAdmin 2.9.0.2 |
129 |
- [ 2.9.0.2-0] |
130 |
* Thu Dec 15 2005 Darrell May <dmay@myezserver.com> |
131 |
- phpMyAdmin 2.6.4-pl4 |
132 |
- [ 2.6.4-pl4] |
133 |
* Fri Apr 22 2005 Darrell May <dmay@myezserver.com> |
134 |
- added support for SME 7.x |
135 |
- [ 2.6.2-2] |
136 |
* Mon Apr 18 2005 Darrell May <dmay@myezserver.com> |
137 |
- Release 2.6.2 of phpMyAdmin |
138 |
- change rpm name to smeserver-phpmyadmin |
139 |
- change install dir to /opt/phpmyadmin |
140 |
- [ 2.6.2-1] |
141 |
|
142 |
%prep |
143 |
%setup |
144 |
%patch0 -p1 |
145 |
%patch1 -p1 |
146 |
%patch2 -p1 |
147 |
%patch3 -p1 |
148 |
%patch4 -p1 |
149 |
%patch5 -p1 |
150 |
|
151 |
%build |
152 |
%{__mkdir_p} root/var/lib/php/phpmyadmin/{tmp,session,opcache,wsdlcache} |
153 |
%{__mkdir_p} root/var/log/php/phpmyadmin |
154 |
perl createlinks |
155 |
|
156 |
%install |
157 |
/bin/rm -rf $RPM_BUILD_ROOT |
158 |
rm -f %{name}-%{version}-filelist |
159 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
160 |
/bin/rm -f %{name}-%{version}-filelist |
161 |
/sbin/e-smith/genfilelist \ |
162 |
--dir /var/lib/php/phpmyadmin/ 'attr(0755,root,www)' \ |
163 |
--dir /var/lib/php/phpmyadmin/tmp 'attr(0770,www,www)' \ |
164 |
--dir /var/lib/php/phpmyadmin/opcache 'attr(0770,www,www)' \ |
165 |
--dir /var/lib/php/phpmyadmin/session 'attr(0770,www,www)' \ |
166 |
--dir /var/lib/php/phpmyadmin/wsdlcache 'attr(0770,www,www)' \ |
167 |
--dir /var/log/php/phpmyadmin 'attr(0770,root,www)' \ |
168 |
$RPM_BUILD_ROOT > %{name}-%{version}-filelist |
169 |
echo "%doc CHANGELOG.git" >> %{name}-%{version}-filelist |
170 |
echo "%doc phpmyadmin.sql" >> %{name}-%{version}-filelist |
171 |
|
172 |
%files -f %{name}-%{version}-filelist |
173 |
%defattr(-,root,root) |
174 |
|
175 |
%clean |
176 |
rm -rf $RPM_BUILD_ROOT |
177 |
|