]> git.pld-linux.org Git - packages/phpMyAdmin.git/blame - phpMyAdmin.spec
BR for .tar.xz
[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
8b565369 7Version: 4.0.5
f79b83db 8Release: 1
c6adf9fe 9License: GPL v2
78a895aa 10Group: Applications/Databases/Interfaces
bf484b35
MK
11Source0: http://downloads.sourceforge.net/phpmyadmin/%{name}-%{version}-all-languages.tar.xz
12# Source0-md5: 5cc493908d09df1760c7cdcd1622ebf7
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
3f2471c0 23Requires: php(core) >= 5.2
58fb24fd
ER
24Requires: php(ctype)
25Requires: php(filter)
26Requires: php(json)
27Requires: php(mbstring)
28Requires: php(mcrypt)
29Requires: php(mysql)
30Requires: php(pcre)
31Requires: php(session)
32Requires: php(simplexml)
f935b243 33Requires: webapps
9c9eb38c 34Requires: webserver(access)
bef21c33 35Requires: webserver(alias)
88c63352 36Requires(triggerpostun): sed >= 4.0
95983e51 37Suggests: php-mysqli
7bb50a64 38Suggests: webserver(indexfile)
7e902492 39Suggests: webserver(php)
483a1aa6 40Conflicts: apache-base < 2.4.0-1
89cacb94 41BuildArch: noarch
78a895aa
PG
42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
7e9b99de 44%define _appdir %{_datadir}/%{name}
f935b243
ER
45%define _webapps /etc/webapps
46%define _webapp %{name}
47%define _sysconfdir %{_webapps}/%{_webapp}
78a895aa
PG
48
49%description
50phpMyAdmin can administer a whole MySQL-server (needs a super-user)
51but also a single database. To accomplish the latter you'll need a
52properly set up MySQL-user who can read/write only the desired
53database. It's up to you to look up the appropiate part in the MySQL
54manual. Currently phpMyAdmin can:
1d23e58d 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
ffe964b1
TP
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
78a895aa 68
27fed873
JR
69%description -l pl.UTF-8
70phpMyAdmin potrafi zarządzać całymi bazami MySQL (potrzebne
71uprawnienia superużytkownika) jak i pojedynczymi bazami danych.
72Potrzebny jest użytkownik, który ma prawa zapisu/odczytu tylko tych
73baz, którymi chcemy administrować (więcej informacji w odpowiedniej
74podrę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
78a895aa 85
78a895aa 86%prep
fb6eaade 87%setup -q -n %{name}-%{version}-all-languages
8677f286 88%patch0 -p1
aae97293 89%patch1 -p0
90%patch2 -p0
78a895aa
PG
91
92%install
93rm -rf $RPM_BUILD_ROOT
591b67f6 94install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
f935b243 95
81443609 96install *.php *.css favicon.ico robots.txt $RPM_BUILD_ROOT%{_appdir}
d2811cfc 97cp -a locale themes js libraries $RPM_BUILD_ROOT%{_appdir}
78a895aa 98
52f3e0d7 99install libraries/config.default.php $RPM_BUILD_ROOT%{_sysconfdir}/config.inc.php
f935b243 100ln -sf %{_sysconfdir}/config.inc.php $RPM_BUILD_ROOT%{_appdir}/config.inc.php
aac07012 101
f935b243 102install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
483a1aa6 103install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
c3491de8 104install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
aac07012 105
78a895aa 106%clean
95798666 107rm -rf $RPM_BUILD_ROOT
78a895aa 108
879dcd55 109%triggerin -- apache1 < 1.3.37-3, apache1-base
f935b243 110%webapp_register apache %{_webapp}
aac07012 111
879dcd55 112%triggerun -- apache1 < 1.3.37-3, apache1-base
f935b243
ER
113%webapp_unregister apache %{_webapp}
114
483a1aa6 115%triggerin -- apache-base
f935b243
ER
116%webapp_register httpd %{_webapp}
117
483a1aa6 118%triggerun -- apache-base
f935b243 119%webapp_unregister httpd %{_webapp}
aac07012 120
59d81573
PG
121%triggerin -- lighttpd
122%webapp_register lighttpd %{_webapp}
123
124%triggerun -- lighttpd
125%webapp_unregister lighttpd %{_webapp}
126
78a895aa
PG
127%files
128%defattr(644,root,root,755)
81443609 129%doc ChangeLog README
f935b243
ER
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
59d81573 133%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
f935b243
ER
134%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.php
135%dir %{_appdir}
786331fa 136%{_appdir}/js
f935b243 137%{_appdir}/libraries
591b67f6 138%{_appdir}/locale
786331fa 139%{_appdir}/themes
f935b243 140%{_appdir}/*.css
f935b243 141%{_appdir}/*.php
81443609 142%{_appdir}/favicon.ico
6f66c54e 143%{_appdir}/robots.txt
This page took 0.561656 seconds and 4 git commands to generate.