]> git.pld-linux.org Git - packages/phpMyAdmin.git/blame - phpMyAdmin.spec
- updated to 4.1.6
[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
0013e225 7Version: 4.1.6
f79b83db 8Release: 1
c6adf9fe 9License: GPL v2
78a895aa 10Group: Applications/Databases/Interfaces
bf484b35 11Source0: http://downloads.sourceforge.net/phpmyadmin/%{name}-%{version}-all-languages.tar.xz
0013e225 12# Source0-md5: 2f34f35824f7189822ca2a9f1ccc55ce
83a872cd 13Source1: %{name}-apache.conf
59d81573 14Source2: %{name}-lighttpd.conf
483a1aa6 15Source3: %{name}-httpd.conf
d0c3620a 16Patch0: %{name}-config.patch
77cf866b
ER
17Patch1: %{name}-ServerSelectDisplayName.patch
18Patch2: %{name}-ServerSelectDisplayName-config.patch
c3f22269
JB
19URL: http://www.phpmyadmin.net/
20BuildRequires: rpmbuild(macros) >= 1.268
88c63352
ER
21BuildRequires: tar >= 1:1.22
22BuildRequires: xz
054dddf6
ŁK
23# phpMyAdmin doesn't support mysql < 5.5 and won't work with php < 5.3
24Requires: mysql-libs >= 5.5
17e2933d 25Requires: php(core) >= 5.3
58fb24fd
ER
26Requires: php(ctype)
27Requires: php(filter)
28Requires: php(json)
29Requires: php(mbstring)
30Requires: php(mcrypt)
31Requires: php(mysql)
32Requires: php(pcre)
33Requires: php(session)
34Requires: php(simplexml)
f935b243 35Requires: webapps
9c9eb38c 36Requires: webserver(access)
bef21c33 37Requires: webserver(alias)
88c63352 38Requires(triggerpostun): sed >= 4.0
95983e51 39Suggests: php-mysqli
7bb50a64 40Suggests: webserver(indexfile)
7e902492 41Suggests: webserver(php)
483a1aa6 42Conflicts: apache-base < 2.4.0-1
89cacb94 43BuildArch: noarch
78a895aa
PG
44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
7e9b99de 46%define _appdir %{_datadir}/%{name}
f935b243
ER
47%define _webapps /etc/webapps
48%define _webapp %{name}
49%define _sysconfdir %{_webapps}/%{_webapp}
78a895aa
PG
50
51%description
52phpMyAdmin can administer a whole MySQL-server (needs a super-user)
53but also a single database. To accomplish the latter you'll need a
54properly set up MySQL-user who can read/write only the desired
55database. It's up to you to look up the appropiate part in the MySQL
56manual. Currently phpMyAdmin can:
1d23e58d 57- create and drop databases
58- create, copy, drop and alter tables
59- delete, edit and add fields
60- execute any SQL-statement, even batch-queries
61- manage keys on fields
62- load text files into tables
63- create (*) and read dumps of tables
64- export (*) and import data to CSV values
65- administer multiple servers and single databases
ffe964b1
TP
66- check referencial integrity
67- create complex queries automatically connecting required tables
68- create PDF graphics of your database layout
69- communicate in more than 50 different languages
78a895aa 70
27fed873
JR
71%description -l pl.UTF-8
72phpMyAdmin potrafi zarządzać całymi bazami MySQL (potrzebne
73uprawnienia superużytkownika) jak i pojedynczymi bazami danych.
74Potrzebny jest użytkownik, który ma prawa zapisu/odczytu tylko tych
75baz, którymi chcemy administrować (więcej informacji w odpowiedniej
76podręcznika MySQL). Aktualnie phpMyAdmin potrafi:
77- tworzyć i usuwać bazy
78- wykonywać create, copy, drop oraz alter na tabelach
79- dodawać, usuwać i modyfikować pola
80- wykonywać dowolne zapytania SQL
81- zarządzać kluczami na rekordach
82- wczytywać tekst z plików do tabel
83- obsługiwać ponad 20 języków
84- zarządzać wieloma serwerami i pojedynczymi bazami danych
85- eksportować i importować dane do wartości CSV
86- tworzyć i czytać zrzuty tabel
78a895aa 87
78a895aa 88%prep
fb6eaade 89%setup -q -n %{name}-%{version}-all-languages
8677f286 90%patch0 -p1
aae97293 91%patch1 -p0
92%patch2 -p0
78a895aa
PG
93
94%install
95rm -rf $RPM_BUILD_ROOT
591b67f6 96install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
f935b243 97
81443609 98install *.php *.css favicon.ico robots.txt $RPM_BUILD_ROOT%{_appdir}
d2811cfc 99cp -a locale themes js libraries $RPM_BUILD_ROOT%{_appdir}
78a895aa 100
52f3e0d7 101install libraries/config.default.php $RPM_BUILD_ROOT%{_sysconfdir}/config.inc.php
f935b243 102ln -sf %{_sysconfdir}/config.inc.php $RPM_BUILD_ROOT%{_appdir}/config.inc.php
aac07012 103
f935b243 104install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
483a1aa6 105install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
c3491de8 106install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
aac07012 107
78a895aa 108%clean
95798666 109rm -rf $RPM_BUILD_ROOT
78a895aa 110
879dcd55 111%triggerin -- apache1 < 1.3.37-3, apache1-base
f935b243 112%webapp_register apache %{_webapp}
aac07012 113
879dcd55 114%triggerun -- apache1 < 1.3.37-3, apache1-base
f935b243
ER
115%webapp_unregister apache %{_webapp}
116
483a1aa6 117%triggerin -- apache-base
f935b243
ER
118%webapp_register httpd %{_webapp}
119
483a1aa6 120%triggerun -- apache-base
f935b243 121%webapp_unregister httpd %{_webapp}
aac07012 122
59d81573
PG
123%triggerin -- lighttpd
124%webapp_register lighttpd %{_webapp}
125
126%triggerun -- lighttpd
127%webapp_unregister lighttpd %{_webapp}
128
78a895aa
PG
129%files
130%defattr(644,root,root,755)
054dddf6 131%doc ChangeLog README examples
f935b243
ER
132%dir %attr(750,root,http) %{_sysconfdir}
133%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
134%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
59d81573 135%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
f935b243
ER
136%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.php
137%dir %{_appdir}
786331fa 138%{_appdir}/js
f935b243 139%{_appdir}/libraries
591b67f6 140%{_appdir}/locale
786331fa 141%{_appdir}/themes
f935b243 142%{_appdir}/*.css
f935b243 143%{_appdir}/*.php
81443609 144%{_appdir}/favicon.ico
6f66c54e 145%{_appdir}/robots.txt
This page took 0.111723 seconds and 4 git commands to generate.