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.xz
12 # Source0-md5: 646795297032cc9d53fe9bee261919e5
13 Source1: %{name}-apache.conf
14 Source2: %{name}-lighttpd.conf
15 Source3: %{name}-httpd.conf
16 Patch0: %{name}-config.patch
17 Patch1: %{name}-ServerSelectDisplayName.patch
18 Patch2: %{name}-ServerSelectDisplayName-config.patch
19 URL: http://www.phpmyadmin.net/
20 BuildRequires: rpmbuild(macros) >= 1.268
21 BuildRequires: tar >= 1:1.22
23 Requires: php(core) >= 5.2
27 Requires: php(mbstring)
31 Requires: php(session)
32 Requires: php(simplexml)
34 Requires: webserver(access)
35 Requires: webserver(alias)
36 Requires(triggerpostun): sed >= 4.0
38 Suggests: webserver(indexfile)
39 Suggests: webserver(php)
40 Conflicts: apache-base < 2.4.0-1
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 %define _appdir %{_datadir}/%{name}
45 %define _webapps /etc/webapps
46 %define _webapp %{name}
47 %define _sysconfdir %{_webapps}/%{_webapp}
50 phpMyAdmin can administer a whole MySQL-server (needs a super-user)
51 but also a single database. To accomplish the latter you'll need a
52 properly set up MySQL-user who can read/write only the desired
53 database. It's up to you to look up the appropiate part in the MySQL
54 manual. Currently phpMyAdmin can:
55 - create and drop databases
56 - create, copy, drop and alter tables
57 - delete, edit and add fields
58 - execute any SQL-statement, even batch-queries
59 - manage keys on fields
60 - load text files into tables
61 - create (*) and read dumps of tables
62 - export (*) and import data to CSV values
63 - administer multiple servers and single databases
64 - check referencial integrity
65 - create complex queries automatically connecting required tables
66 - create PDF graphics of your database layout
67 - communicate in more than 50 different languages
69 %description -l pl.UTF-8
70 phpMyAdmin potrafi zarządzać całymi bazami MySQL (potrzebne
71 uprawnienia superużytkownika) jak i pojedynczymi bazami danych.
72 Potrzebny jest użytkownik, który ma prawa zapisu/odczytu tylko tych
73 baz, którymi chcemy administrować (więcej informacji w odpowiedniej
74 podręcznika MySQL). Aktualnie phpMyAdmin potrafi:
75 - tworzyć i usuwać bazy
76 - wykonywać create, copy, drop oraz alter na tabelach
77 - dodawać, usuwać i modyfikować pola
78 - wykonywać dowolne zapytania SQL
79 - zarządzać kluczami na rekordach
80 - wczytywać tekst z plików do tabel
81 - obsługiwać ponad 20 języków
82 - zarządzać wieloma serwerami i pojedynczymi bazami danych
83 - eksportować i importować dane do wartości CSV
84 - tworzyć i czytać zrzuty tabel
87 %setup -q -n %{name}-%{version}-all-languages
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
96 install *.php *.css favicon.ico robots.txt $RPM_BUILD_ROOT%{_appdir}
97 cp -a locale themes js libraries $RPM_BUILD_ROOT%{_appdir}
99 install libraries/config.default.php $RPM_BUILD_ROOT%{_sysconfdir}/config.inc.php
100 ln -sf %{_sysconfdir}/config.inc.php $RPM_BUILD_ROOT%{_appdir}/config.inc.php
102 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
103 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
104 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
107 rm -rf $RPM_BUILD_ROOT
109 %triggerin -- apache1 < 1.3.37-3, apache1-base
110 %webapp_register apache %{_webapp}
112 %triggerun -- apache1 < 1.3.37-3, apache1-base
113 %webapp_unregister apache %{_webapp}
115 %triggerin -- apache-base
116 %webapp_register httpd %{_webapp}
118 %triggerun -- apache-base
119 %webapp_unregister httpd %{_webapp}
121 %triggerin -- lighttpd
122 %webapp_register lighttpd %{_webapp}
124 %triggerun -- lighttpd
125 %webapp_unregister lighttpd %{_webapp}
128 %defattr(644,root,root,755)
129 %doc ChangeLog README
130 %dir %attr(750,root,http) %{_sysconfdir}
131 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
132 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
133 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
134 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.php
142 %{_appdir}/favicon.ico
143 %{_appdir}/robots.txt