-# TODO
-# - http://www.gentoo.org/security/en/glsa/glsa-200504-30.xml
Summary: phpMyAdmin - web-based MySQL administration
Summary(pl): phpMyAdmin - administracja bazami MySQL przez WWW
Name: phpMyAdmin
-Version: 2.6.2
-#%define _pl rc1
-Release: 2
+Version: 2.7.0
+%define _pl pl1
+#Release: 1
+Release: 2.%{_pl}.1
License: GPL v2
Group: Applications/Databases/Interfaces
-#Source0: http://dl.sourceforge.net/phpmyadmin/%{name}-%{version}-%{_pl}.tar.bz2
-Source0: http://dl.sourceforge.net/phpmyadmin/%{name}-%{version}.tar.bz2
-# Source0-md5: 7fc8cf4e7f9a84d725b159176e0621e1
+Source0: http://dl.sourceforge.net/phpmyadmin/%{name}-%{version}-%{_pl}.tar.bz2
+# Source0-md5: 39bfebd35f9a2de03504812df173f27d
+#Source0: http://dl.sourceforge.net/phpmyadmin/%{name}-%{version}.tar.bz2
Source1: %{name}.conf
Patch0: %{name}-config.patch
URL: http://www.phpmyadmin.net/
-#Requires: mysql
Requires(postun): perl-base
+Requires: php
Requires: php-mysql
Requires: php-pcre
-Requires: php
Requires: webserver
+#Suggests: php-mbstring
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
- tworzyƦ i czytaƦ zrzuty tabel
%prep
-%setup -q
+#%setup -q
+%setup -q -n %{name}-%{version}-%{_pl}
%patch -p1
%install
$RPM_BUILD_ROOT{%{_sysconfdir},/etc/httpd}
install *.php *.html *.css $RPM_BUILD_ROOT%{_myadmindir}
-#install images/*.{gif,png} $RPM_BUILD_ROOT%{_myadmindir}/images
install lang/*.php $RPM_BUILD_ROOT%{_myadmindir}/lang
-cp -rf themes $RPM_BUILD_ROOT%{_myadmindir}/
+cp -rf themes $RPM_BUILD_ROOT%{_myadmindir}
install css/* $RPM_BUILD_ROOT%{_myadmindir}/css
install libraries/*.{js,php} $RPM_BUILD_ROOT%{_myadmindir}/libraries
install libraries/auth/*.php $RPM_BUILD_ROOT%{_myadmindir}/libraries/auth
cp -rf scripts $RPM_BUILD_ROOT%{_myadmindir}
-install config.inc.php $RPM_BUILD_ROOT%{_sysconfdir}
+install config.default.php $RPM_BUILD_ROOT%{_sysconfdir}/config.inc.php
ln -sf %{_sysconfdir}/config.inc.php $RPM_BUILD_ROOT%{_myadmindir}/config.inc.php
install %{SOURCE1} $RPM_BUILD_ROOT/etc/httpd/%{name}.conf