X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=phpMyAdmin.spec;h=5ef62439a0b3418b6f1aac732d66389c7a7a691f;hb=e051a27c4718b5aa828b757c0a08fe8341334768;hp=ad8835cdb98653d88ee19619af2792934f295e3e;hpb=7bb50a644b3cea0278ac488aa6733556a63e9c83;p=packages%2FphpMyAdmin.git diff --git a/phpMyAdmin.spec b/phpMyAdmin.spec index ad8835c..5ef6243 100644 --- a/phpMyAdmin.spec +++ b/phpMyAdmin.spec @@ -1,30 +1,43 @@ # TODO # - add codepress (http://codepress.org/index.php) patch +# - use system jquery (js/jquery), tcpdf (libraries/tcpdf) and php-gettext (libraries/gettext) Summary: phpMyAdmin - web-based MySQL administration Summary(pl.UTF-8): phpMyAdmin - administracja bazami MySQL przez WWW Name: phpMyAdmin -Version: 2.11.6 -Release: 3 +Version: 4.0.6 +Release: 1 License: GPL v2 Group: Applications/Databases/Interfaces -Source0: http://dl.sourceforge.net/phpmyadmin/%{name}-%{version}-all-languages.tar.bz2 -# Source0-md5: 0477a97e80e12c97fef671365db910a5 -Source1: %{name}.conf +Source0: http://downloads.sourceforge.net/phpmyadmin/%{name}-%{version}-all-languages.tar.xz +# Source0-md5: 646795297032cc9d53fe9bee261919e5 +Source1: %{name}-apache.conf Source2: %{name}-lighttpd.conf +Source3: %{name}-httpd.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 +Requires: php(core) >= 5.2 Requires: php(ctype) +Requires: php(filter) +Requires: php(json) Requires: php(mbstring) Requires: php(mcrypt) Requires: php(mysql) Requires: php(pcre) +Requires: php(session) +Requires: php(simplexml) Requires: webapps Requires: webserver(access) Requires: webserver(alias) -Requires: webserver(php) +Requires(triggerpostun): sed >= 4.0 +Suggests: php-mysqli Suggests: webserver(indexfile) +Suggests: webserver(php) +Conflicts: apache-base < 2.4.0-1 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -73,38 +86,23 @@ podręcznika MySQL). Aktualnie phpMyAdmin potrafi: %prep %setup -q -n %{name}-%{version}-all-languages %patch0 -p1 +%patch1 -p0 +%patch2 -p0 %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}/{js,lang,libraries/{auth,dbg,dbi,engines,export,tcpdf/font,import,transformations}}} - -install *.php *.html *.css $RPM_BUILD_ROOT%{_appdir} -install lang/*.php $RPM_BUILD_ROOT%{_appdir}/lang -cp -rf pmd $RPM_BUILD_ROOT%{_appdir} -cp -rf themes $RPM_BUILD_ROOT%{_appdir} -install js/* $RPM_BUILD_ROOT%{_appdir}/js -install libraries/*.php $RPM_BUILD_ROOT%{_appdir}/libraries -install libraries/auth/*.php $RPM_BUILD_ROOT%{_appdir}/libraries/auth -install libraries/dbg/*.php $RPM_BUILD_ROOT%{_appdir}/libraries/dbg -install libraries/dbi/*.php $RPM_BUILD_ROOT%{_appdir}/libraries/dbi -install libraries/engines/*.php $RPM_BUILD_ROOT%{_appdir}/libraries/engines -install libraries/export/*.php $RPM_BUILD_ROOT%{_appdir}/libraries/export -install libraries/import/*.php $RPM_BUILD_ROOT%{_appdir}/libraries/import -install libraries/tcpdf/*.php $RPM_BUILD_ROOT%{_appdir}/libraries/tcpdf -install libraries/tcpdf/font/*.{php,z} $RPM_BUILD_ROOT%{_appdir}/libraries/tcpdf/font -install libraries/transformations/*.php $RPM_BUILD_ROOT%{_appdir}/libraries/transformations +install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}} + +install *.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 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 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf -cp -f libraries/tcpdf/README{,-tcpdf} -cp -f libraries/import/README{,-import} -cp -f libraries/transformations/README{,-transformations} - %clean rm -rf $RPM_BUILD_ROOT @@ -114,10 +112,10 @@ rm -rf $RPM_BUILD_ROOT %triggerun -- apache1 < 1.3.37-3, apache1-base %webapp_unregister apache %{_webapp} -%triggerin -- apache < 2.2.0, apache-base +%triggerin -- apache-base %webapp_register httpd %{_webapp} -%triggerun -- apache < 2.2.0, apache-base +%triggerun -- apache-base %webapp_unregister httpd %{_webapp} %triggerin -- lighttpd @@ -126,19 +124,9 @@ rm -rf $RPM_BUILD_ROOT %triggerun -- lighttpd %webapp_unregister lighttpd %{_webapp} -%post -if [ "$1" = 1 ]; then -%banner -e %{name} <