]>
Commit | Line | Data |
---|---|---|
fdda4e42 ER |
1 | # TODO |
2 | # - add codepress (http://codepress.org/index.php) patch | |
d8c0193b | 3 | Summary: phpMyAdmin - web-based MySQL administration |
7f70cea7 | 4 | Summary(pl.UTF-8): phpMyAdmin - administracja bazami MySQL przez WWW |
78a895aa | 5 | Name: phpMyAdmin |
05c93d33 | 6 | Version: 3.3.1 |
6a7083d7 | 7 | Release: 1 |
c6adf9fe | 8 | License: GPL v2 |
78a895aa | 9 | Group: Applications/Databases/Interfaces |
fb6eaade | 10 | Source0: http://dl.sourceforge.net/phpmyadmin/%{name}-%{version}-all-languages.tar.bz2 |
05c93d33 | 11 | # Source0-md5: f4f9b7b8398bfaaa7235e01cc0a89a79 |
aac07012 | 12 | Source1: %{name}.conf |
59d81573 | 13 | Source2: %{name}-lighttpd.conf |
d0c3620a | 14 | Patch0: %{name}-config.patch |
77cf866b ER |
15 | Patch1: %{name}-ServerSelectDisplayName.patch |
16 | Patch2: %{name}-ServerSelectDisplayName-config.patch | |
c3f22269 JB |
17 | URL: http://www.phpmyadmin.net/ |
18 | BuildRequires: rpmbuild(macros) >= 1.268 | |
f935b243 | 19 | Requires(triggerpostun): sed >= 4.0 |
77cf866b ER |
20 | Requires: php-common >= 4:5.2 |
21 | Requires: php-ctype | |
22 | Requires: php-mbstring | |
23 | Requires: php-mcrypt | |
24 | Requires: php-mysql | |
25 | Requires: php-pcre | |
7e902492 | 26 | Requires: php-session |
f935b243 | 27 | Requires: webapps |
9c9eb38c | 28 | Requires: webserver(access) |
bef21c33 | 29 | Requires: webserver(alias) |
95983e51 | 30 | Suggests: php-mysqli |
7bb50a64 | 31 | Suggests: webserver(indexfile) |
7e902492 | 32 | Suggests: webserver(php) |
89cacb94 | 33 | BuildArch: noarch |
78a895aa PG |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
7e9b99de | 36 | %define _appdir %{_datadir}/%{name} |
f935b243 ER |
37 | %define _webapps /etc/webapps |
38 | %define _webapp %{name} | |
39 | %define _sysconfdir %{_webapps}/%{_webapp} | |
78a895aa PG |
40 | |
41 | %description | |
42 | phpMyAdmin can administer a whole MySQL-server (needs a super-user) | |
43 | but also a single database. To accomplish the latter you'll need a | |
44 | properly set up MySQL-user who can read/write only the desired | |
45 | database. It's up to you to look up the appropiate part in the MySQL | |
46 | manual. Currently phpMyAdmin can: | |
1d23e58d | 47 | - create and drop databases |
48 | - create, copy, drop and alter tables | |
49 | - delete, edit and add fields | |
50 | - execute any SQL-statement, even batch-queries | |
51 | - manage keys on fields | |
52 | - load text files into tables | |
53 | - create (*) and read dumps of tables | |
54 | - export (*) and import data to CSV values | |
55 | - administer multiple servers and single databases | |
ffe964b1 TP |
56 | - check referencial integrity |
57 | - create complex queries automatically connecting required tables | |
58 | - create PDF graphics of your database layout | |
59 | - communicate in more than 50 different languages | |
78a895aa | 60 | |
27fed873 JR |
61 | %description -l pl.UTF-8 |
62 | phpMyAdmin potrafi zarządzać całymi bazami MySQL (potrzebne | |
63 | uprawnienia superużytkownika) jak i pojedynczymi bazami danych. | |
64 | Potrzebny jest użytkownik, który ma prawa zapisu/odczytu tylko tych | |
65 | baz, którymi chcemy administrować (więcej informacji w odpowiedniej | |
66 | podręcznika MySQL). Aktualnie phpMyAdmin potrafi: | |
67 | - tworzyć i usuwać bazy | |
68 | - wykonywać create, copy, drop oraz alter na tabelach | |
69 | - dodawać, usuwać i modyfikować pola | |
70 | - wykonywać dowolne zapytania SQL | |
71 | - zarządzać kluczami na rekordach | |
72 | - wczytywać tekst z plików do tabel | |
73 | - obsługiwać ponad 20 języków | |
74 | - zarządzać wieloma serwerami i pojedynczymi bazami danych | |
75 | - eksportować i importować dane do wartości CSV | |
76 | - tworzyć i czytać zrzuty tabel | |
78a895aa | 77 | |
78a895aa | 78 | %prep |
fb6eaade | 79 | %setup -q -n %{name}-%{version}-all-languages |
8677f286 | 80 | %patch0 -p1 |
aae97293 | 81 | %patch1 -p0 |
82 | %patch2 -p0 | |
78a895aa PG |
83 | |
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
ef143b69 | 86 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}/{js,lang,libraries/{auth/swekey,dbg,dbi,engines,export,tcpdf/font,import,transformations}}} |
f935b243 ER |
87 | |
88 | install *.php *.html *.css $RPM_BUILD_ROOT%{_appdir} | |
89 | install lang/*.php $RPM_BUILD_ROOT%{_appdir}/lang | |
ffe964b1 | 90 | cp -rf pmd $RPM_BUILD_ROOT%{_appdir} |
f935b243 | 91 | cp -rf themes $RPM_BUILD_ROOT%{_appdir} |
01cd4cc6 | 92 | cp -rf js $RPM_BUILD_ROOT%{_appdir} |
52f3e0d7 | 93 | install libraries/*.php $RPM_BUILD_ROOT%{_appdir}/libraries |
f935b243 | 94 | install libraries/auth/*.php $RPM_BUILD_ROOT%{_appdir}/libraries/auth |
ef143b69 | 95 | install libraries/auth/swekey/*.{php,crt} $RPM_BUILD_ROOT%{_appdir}/libraries/auth/swekey |
f935b243 ER |
96 | install libraries/dbg/*.php $RPM_BUILD_ROOT%{_appdir}/libraries/dbg |
97 | install libraries/dbi/*.php $RPM_BUILD_ROOT%{_appdir}/libraries/dbi | |
eedbae07 | 98 | install libraries/engines/*.php $RPM_BUILD_ROOT%{_appdir}/libraries/engines |
99 | install libraries/export/*.php $RPM_BUILD_ROOT%{_appdir}/libraries/export | |
ffe964b1 | 100 | install libraries/import/*.php $RPM_BUILD_ROOT%{_appdir}/libraries/import |
f4f5ac2a | 101 | install libraries/tcpdf/*.php $RPM_BUILD_ROOT%{_appdir}/libraries/tcpdf |
102 | install libraries/tcpdf/font/*.{php,z} $RPM_BUILD_ROOT%{_appdir}/libraries/tcpdf/font | |
f935b243 | 103 | install libraries/transformations/*.php $RPM_BUILD_ROOT%{_appdir}/libraries/transformations |
78a895aa | 104 | |
52f3e0d7 | 105 | install libraries/config.default.php $RPM_BUILD_ROOT%{_sysconfdir}/config.inc.php |
f935b243 | 106 | ln -sf %{_sysconfdir}/config.inc.php $RPM_BUILD_ROOT%{_appdir}/config.inc.php |
aac07012 | 107 | |
f935b243 ER |
108 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf |
109 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf | |
c3491de8 | 110 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf |
aac07012 | 111 | |
ffe964b1 TP |
112 | cp -f libraries/import/README{,-import} |
113 | cp -f libraries/transformations/README{,-transformations} | |
114 | ||
78a895aa | 115 | %clean |
95798666 | 116 | rm -rf $RPM_BUILD_ROOT |
78a895aa | 117 | |
879dcd55 | 118 | %triggerin -- apache1 < 1.3.37-3, apache1-base |
f935b243 | 119 | %webapp_register apache %{_webapp} |
aac07012 | 120 | |
879dcd55 | 121 | %triggerun -- apache1 < 1.3.37-3, apache1-base |
f935b243 ER |
122 | %webapp_unregister apache %{_webapp} |
123 | ||
243b3916 | 124 | %triggerin -- apache < 2.2.0, apache-base |
f935b243 ER |
125 | %webapp_register httpd %{_webapp} |
126 | ||
243b3916 | 127 | %triggerun -- apache < 2.2.0, apache-base |
f935b243 | 128 | %webapp_unregister httpd %{_webapp} |
aac07012 | 129 | |
59d81573 PG |
130 | %triggerin -- lighttpd |
131 | %webapp_register lighttpd %{_webapp} | |
132 | ||
133 | %triggerun -- lighttpd | |
134 | %webapp_unregister lighttpd %{_webapp} | |
135 | ||
78a895aa PG |
136 | %files |
137 | %defattr(644,root,root,755) | |
01cd4cc6 | 138 | %doc Documentation.* CREDITS ChangeLog INSTALL README TODO translators.html scripts libraries/import/README-import libraries/transformations/README-transformations libraries/transformations/TEMPLATE* libraries/transformations/*.sh lang/*.sh |
f935b243 ER |
139 | %dir %attr(750,root,http) %{_sysconfdir} |
140 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf | |
141 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf | |
59d81573 | 142 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf |
f935b243 ER |
143 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.php |
144 | %dir %{_appdir} | |
786331fa | 145 | %{_appdir}/js |
f935b243 ER |
146 | %{_appdir}/lang |
147 | %{_appdir}/libraries | |
ffe964b1 | 148 | %{_appdir}/pmd |
786331fa | 149 | %{_appdir}/themes |
f935b243 ER |
150 | %{_appdir}/*.css |
151 | %{_appdir}/*.html | |
152 | %{_appdir}/*.php |