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