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