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