]> git.pld-linux.org Git - packages/phpMyAdmin.git/blame - phpMyAdmin.spec
- updated to 3.5.3
[packages/phpMyAdmin.git] / phpMyAdmin.spec
CommitLineData
fdda4e42
ER
1# TODO
2# - add codepress (http://codepress.org/index.php) patch
d2811cfc 3# - use system jquery (js/jquery), tcpdf (libraries/tcpdf) and php-gettext (libraries/gettext)
d8c0193b 4Summary: phpMyAdmin - web-based MySQL administration
7f70cea7 5Summary(pl.UTF-8): phpMyAdmin - administracja bazami MySQL przez WWW
78a895aa 6Name: phpMyAdmin
5cef191b 7Version: 3.5.3
5b277a65 8Release: 1
c6adf9fe 9License: GPL v2
78a895aa 10Group: Applications/Databases/Interfaces
c22bd298 11Source0: http://downloads.sourceforge.net/phpmyadmin/%{name}-%{version}-all-languages.tar.bz2
5cef191b 12# Source0-md5: 1552e878bb768bf477ca9ff86d0a6983
aac07012 13Source1: %{name}.conf
59d81573 14Source2: %{name}-lighttpd.conf
d0c3620a 15Patch0: %{name}-config.patch
77cf866b
ER
16Patch1: %{name}-ServerSelectDisplayName.patch
17Patch2: %{name}-ServerSelectDisplayName-config.patch
c3f22269
JB
18URL: http://www.phpmyadmin.net/
19BuildRequires: rpmbuild(macros) >= 1.268
f935b243 20Requires(triggerpostun): sed >= 4.0
3f2471c0 21Requires: php(core) >= 5.2
58fb24fd
ER
22Requires: php(ctype)
23Requires: php(filter)
24Requires: php(json)
25Requires: php(mbstring)
26Requires: php(mcrypt)
27Requires: php(mysql)
28Requires: php(pcre)
29Requires: php(session)
30Requires: php(simplexml)
f935b243 31Requires: webapps
9c9eb38c 32Requires: webserver(access)
bef21c33 33Requires: webserver(alias)
95983e51 34Suggests: php-mysqli
7bb50a64 35Suggests: webserver(indexfile)
7e902492 36Suggests: webserver(php)
89cacb94 37BuildArch: noarch
78a895aa
PG
38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
7e9b99de 40%define _appdir %{_datadir}/%{name}
f935b243
ER
41%define _webapps /etc/webapps
42%define _webapp %{name}
43%define _sysconfdir %{_webapps}/%{_webapp}
78a895aa
PG
44
45%description
46phpMyAdmin can administer a whole MySQL-server (needs a super-user)
47but also a single database. To accomplish the latter you'll need a
48properly set up MySQL-user who can read/write only the desired
49database. It's up to you to look up the appropiate part in the MySQL
50manual. Currently phpMyAdmin can:
1d23e58d 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
ffe964b1
TP
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
78a895aa 64
27fed873
JR
65%description -l pl.UTF-8
66phpMyAdmin potrafi zarządzać całymi bazami MySQL (potrzebne
67uprawnienia superużytkownika) jak i pojedynczymi bazami danych.
68Potrzebny jest użytkownik, który ma prawa zapisu/odczytu tylko tych
69baz, którymi chcemy administrować (więcej informacji w odpowiedniej
70podrę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
78a895aa 81
78a895aa 82%prep
fb6eaade 83%setup -q -n %{name}-%{version}-all-languages
8677f286 84%patch0 -p1
aae97293 85%patch1 -p0
86%patch2 -p0
78a895aa
PG
87
88%install
89rm -rf $RPM_BUILD_ROOT
591b67f6 90install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
f935b243 91
6f66c54e 92install *.php *.html *.css robots.txt $RPM_BUILD_ROOT%{_appdir}
d2811cfc 93cp -a locale themes js libraries $RPM_BUILD_ROOT%{_appdir}
78a895aa 94
52f3e0d7 95install libraries/config.default.php $RPM_BUILD_ROOT%{_sysconfdir}/config.inc.php
f935b243 96ln -sf %{_sysconfdir}/config.inc.php $RPM_BUILD_ROOT%{_appdir}/config.inc.php
aac07012 97
f935b243
ER
98install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
99install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
c3491de8 100install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
aac07012 101
ffe964b1
TP
102cp -f libraries/import/README{,-import}
103cp -f libraries/transformations/README{,-transformations}
104
78a895aa 105%clean
95798666 106rm -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)
d2811cfc 128%doc Documentation.* ChangeLog README README.VENDOR libraries/import/README-import libraries/transformations/README-transformations libraries/transformations/TEMPLATE* libraries/transformations/*.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 136%{_appdir}/libraries
591b67f6 137%{_appdir}/locale
786331fa 138%{_appdir}/themes
f935b243
ER
139%{_appdir}/*.css
140%{_appdir}/*.html
141%{_appdir}/*.php
6f66c54e 142%{_appdir}/robots.txt
This page took 0.078351 seconds and 4 git commands to generate.