2 # - add codepress (http://codepress.org/index.php) patch
3 # - use system jquery (js/jquery), tcpdf (libraries/tcpdf) and php-gettext (libraries/gettext)
4 Summary: phpMyAdmin - web-based MySQL administration
5 Summary(pl.UTF-8): phpMyAdmin - administracja bazami MySQL przez WWW
10 Group: Applications/Databases/Interfaces
11 Source0: http://downloads.sourceforge.net/phpmyadmin/%{name}-%{version}-all-languages.tar.bz2
12 # Source0-md5: 1e56ff858ed10dcd4affd4df1e92daff
14 Source2: %{name}-lighttpd.conf
15 Patch0: %{name}-config.patch
16 Patch1: %{name}-ServerSelectDisplayName.patch
17 Patch2: %{name}-ServerSelectDisplayName-config.patch
18 URL: http://www.phpmyadmin.net/
19 BuildRequires: rpmbuild(macros) >= 1.268
20 Requires(triggerpostun): sed >= 4.0
21 Requires: php-common >= 4:5.2
25 Requires: php-mbstring
30 Requires: php-simplexml
32 Requires: webserver(access)
33 Requires: webserver(alias)
35 Suggests: webserver(indexfile)
36 Suggests: webserver(php)
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 %define _appdir %{_datadir}/%{name}
41 %define _webapps /etc/webapps
42 %define _webapp %{name}
43 %define _sysconfdir %{_webapps}/%{_webapp}
46 phpMyAdmin can administer a whole MySQL-server (needs a super-user)
47 but also a single database. To accomplish the latter you'll need a
48 properly set up MySQL-user who can read/write only the desired
49 database. It's up to you to look up the appropiate part in the MySQL
50 manual. Currently phpMyAdmin can:
51 - create and drop databases
52 - create, copy, drop and alter tables
53 - delete, edit and add fields
54 - execute any SQL-statement, even batch-queries
55 - manage keys on fields
56 - load text files into tables
57 - create (*) and read dumps of tables
58 - export (*) and import data to CSV values
59 - administer multiple servers and single databases
60 - check referencial integrity
61 - create complex queries automatically connecting required tables
62 - create PDF graphics of your database layout
63 - communicate in more than 50 different languages
65 %description -l pl.UTF-8
66 phpMyAdmin potrafi zarządzać całymi bazami MySQL (potrzebne
67 uprawnienia superużytkownika) jak i pojedynczymi bazami danych.
68 Potrzebny jest użytkownik, który ma prawa zapisu/odczytu tylko tych
69 baz, którymi chcemy administrować (więcej informacji w odpowiedniej
70 podręcznika MySQL). Aktualnie phpMyAdmin potrafi:
71 - tworzyć i usuwać bazy
72 - wykonywać create, copy, drop oraz alter na tabelach
73 - dodawać, usuwać i modyfikować pola
74 - wykonywać dowolne zapytania SQL
75 - zarządzać kluczami na rekordach
76 - wczytywać tekst z plików do tabel
77 - obsługiwać ponad 20 języków
78 - zarządzać wieloma serwerami i pojedynczymi bazami danych
79 - eksportować i importować dane do wartości CSV
80 - tworzyć i czytać zrzuty tabel
83 %setup -q -n %{name}-%{version}-all-languages
89 rm -rf $RPM_BUILD_ROOT
90 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
92 install *.php *.html *.css robots.txt $RPM_BUILD_ROOT%{_appdir}
93 cp -a locale themes js libraries $RPM_BUILD_ROOT%{_appdir}
95 install libraries/config.default.php $RPM_BUILD_ROOT%{_sysconfdir}/config.inc.php
96 ln -sf %{_sysconfdir}/config.inc.php $RPM_BUILD_ROOT%{_appdir}/config.inc.php
98 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
99 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
100 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
102 cp -f libraries/import/README{,-import}
103 cp -f libraries/transformations/README{,-transformations}
106 rm -rf $RPM_BUILD_ROOT
108 %triggerin -- apache1 < 1.3.37-3, apache1-base
109 %webapp_register apache %{_webapp}
111 %triggerun -- apache1 < 1.3.37-3, apache1-base
112 %webapp_unregister apache %{_webapp}
114 %triggerin -- apache < 2.2.0, apache-base
115 %webapp_register httpd %{_webapp}
117 %triggerun -- apache < 2.2.0, apache-base
118 %webapp_unregister httpd %{_webapp}
120 %triggerin -- lighttpd
121 %webapp_register lighttpd %{_webapp}
123 %triggerun -- lighttpd
124 %webapp_unregister lighttpd %{_webapp}
127 %defattr(644,root,root,755)
128 %doc Documentation.* ChangeLog README README.VENDOR libraries/import/README-import libraries/transformations/README-transformations libraries/transformations/TEMPLATE* libraries/transformations/*.sh
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
132 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
133 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.php
142 %{_appdir}/robots.txt