X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=phpMyAdmin.spec;h=d4c86d216feb1c015d8e2dc2459f3cccf69d198f;hb=37684297b10b5e490afabad25ec57b4ab1f9e74b;hp=d41768c6e71e1ea3728fd14c084e05ae24592e19;hpb=58fb24fd1755a3037472f9722358a51b00978e5a;p=packages%2FphpMyAdmin.git diff --git a/phpMyAdmin.spec b/phpMyAdmin.spec index d41768c..d4c86d2 100644 --- a/phpMyAdmin.spec +++ b/phpMyAdmin.spec @@ -4,20 +4,24 @@ Summary: phpMyAdmin - web-based MySQL administration Summary(pl.UTF-8): phpMyAdmin - administracja bazami MySQL przez WWW Name: phpMyAdmin -Version: 3.5.2 -Release: 2 +Version: 4.4.12 +Release: 1 License: GPL v2 Group: Applications/Databases/Interfaces -Source0: http://downloads.sourceforge.net/phpmyadmin/%{name}-%{version}-all-languages.tar.bz2 -# Source0-md5: 1e56ff858ed10dcd4affd4df1e92daff -Source1: %{name}.conf +Source0: https://files.phpmyadmin.net/phpMyAdmin/%{version}/%{name}-%{version}-all-languages.tar.xz +# Source0-md5: 61647a8ab0f47bf99ed3c79103237017 +Source1: apache.conf Source2: %{name}-lighttpd.conf Patch0: %{name}-config.patch Patch1: %{name}-ServerSelectDisplayName.patch Patch2: %{name}-ServerSelectDisplayName-config.patch URL: http://www.phpmyadmin.net/ BuildRequires: rpmbuild(macros) >= 1.268 -Requires(triggerpostun): sed >= 4.0 +BuildRequires: tar >= 1:1.22 +BuildRequires: xz +# phpMyAdmin doesn't support mysql < 5.5 and won't work with php < 5.3 +Requires: mysql-libs >= 5.5 +Requires: php(core) >= 5.3 Requires: php(ctype) Requires: php(filter) Requires: php(json) @@ -27,11 +31,11 @@ Requires: php(mysql) Requires: php(pcre) Requires: php(session) Requires: php(simplexml) -Requires: php-common >= 4:5.2 Requires: webapps Requires: webserver(access) Requires: webserver(alias) -Suggests: php-mysqli +Requires(triggerpostun): sed >= 4.0 +Suggests: php(mysqli) Suggests: webserver(indexfile) Suggests: webserver(php) BuildArch: noarch @@ -54,13 +58,13 @@ manual. Currently phpMyAdmin can: - execute any SQL-statement, even batch-queries - manage keys on fields - load text files into tables -- create (*) and read dumps of tables -- export (*) and import data to CSV values +- create and read dumps of tables +- export and import data to CSV values - administer multiple servers and single databases - check referencial integrity - create complex queries automatically connecting required tables - create PDF graphics of your database layout -- communicate in more than 50 different languages +- communicate in more than 72 different languages %description -l pl.UTF-8 phpMyAdmin potrafi zarządzać całymi bazami MySQL (potrzebne @@ -74,7 +78,7 @@ podręcznika MySQL). Aktualnie phpMyAdmin potrafi: - wykonywać dowolne zapytania SQL - zarządzać kluczami na rekordach - wczytywać tekst z plików do tabel -- obsługiwać ponad 20 języków +- obsługiwać ponad 72 języków - zarządzać wieloma serwerami i pojedynczymi bazami danych - eksportować i importować dane do wartości CSV - tworzyć i czytać zrzuty tabel @@ -85,22 +89,22 @@ podręcznika MySQL). Aktualnie phpMyAdmin potrafi: %patch1 -p0 %patch2 -p0 +# cleanup backups after patching +find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f + %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}} -install *.php *.html *.css robots.txt $RPM_BUILD_ROOT%{_appdir} +cp -p *.php *.css favicon.ico robots.txt $RPM_BUILD_ROOT%{_appdir} cp -a locale themes js libraries $RPM_BUILD_ROOT%{_appdir} -install libraries/config.default.php $RPM_BUILD_ROOT%{_sysconfdir}/config.inc.php +cp -p libraries/config.default.php $RPM_BUILD_ROOT%{_sysconfdir}/config.inc.php ln -sf %{_sysconfdir}/config.inc.php $RPM_BUILD_ROOT%{_appdir}/config.inc.php -install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf -install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf -install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf - -cp -f libraries/import/README{,-import} -cp -f libraries/transformations/README{,-transformations} +cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf +cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf +cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf %clean rm -rf $RPM_BUILD_ROOT @@ -125,7 +129,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc Documentation.* ChangeLog README README.VENDOR libraries/import/README-import libraries/transformations/README-transformations libraries/transformations/TEMPLATE* libraries/transformations/*.sh +%doc ChangeLog README examples %dir %attr(750,root,http) %{_sysconfdir} %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf @@ -137,6 +141,6 @@ rm -rf $RPM_BUILD_ROOT %{_appdir}/locale %{_appdir}/themes %{_appdir}/*.css -%{_appdir}/*.html %{_appdir}/*.php +%{_appdir}/favicon.ico %{_appdir}/robots.txt