SHA256
1
0
forked from pool/phpMyAdmin

Accepting request 484361 from home:ecsos:server

update to 4.7.0

OBS-URL: https://build.opensuse.org/request/show/484361
OBS-URL: https://build.opensuse.org/package/show/server:php:applications/phpMyAdmin?expand=0&rev=280
This commit is contained in:
2017-04-01 21:31:29 +00:00
committed by Git OBS Bridge
parent 0d037a5394
commit 2978cb8075
8 changed files with 257 additions and 181 deletions

View File

@@ -29,7 +29,7 @@
%define ap_grp nogroup
%endif
Name: phpMyAdmin
Version: 4.6.6
Version: 4.7.0
Release: 0
Summary: Administration of MySQL over the web
License: GPL-2.0+
@@ -44,8 +44,6 @@ Source4: %{name}.http.inc
Source100: %{name}-rpmlintrc
# Fix-SuSE: provide useful default config
Patch0: %{name}-config.patch
# Fix-SUSE: auto config for pma storage
Patch1: %{name}-pma.patch
BuildRequires: apache2-devel
BuildRequires: python-devel
BuildRequires: xz
@@ -115,7 +113,6 @@ Currently phpMyAdmin can:
# wrong-file-end-of-line-encoding
perl -p -i -e 's|\r\n|\n|' examples/config.manyhosts.inc.php
%patch0
%patch1
# rpmlint: fix incorrect-fsf-address
find . -type f | xargs sed -i -e 's:59 Temple Place\, Suite 330\, Boston\, MA 02111-1307 USA:51 Franklin Street\, Fifth Floor\, Boston\, MA 02110-1301 USA:g'
@@ -130,7 +127,7 @@ find . -type f -name '.buildinfo' -exec rm {} \;
%install
#%%{__install} -d -m0750 $RPM_BUILD_ROOT%%{_sysconfdir}/%%{name}
install -d -m0755 %{buildroot}%{ap_docroot}/%{name}
cp -dR *.css *.php *.ico js libraries locale themes templates \
cp -dR *.css *.php *.ico js libraries locale themes templates vendor \
%{buildroot}%{ap_docroot}/%{name}
# install config to config dir
install -D -m0640 %{buildroot}%{ap_docroot}/%{name}/config.sample.inc.php \
@@ -158,12 +155,6 @@ sed -i -e "s,@ap_docroot@,%{ap_docroot},g" -e "s,@name@,%{name},g" \
%fdupes %{buildroot}%{ap_docroot}/%{name}/themes
%endif
# Fix python-bytecode-inconsistent-mtime
rm -rf doc/_ext/configext.pyc
pushd doc/_ext
%py_compile ./
popd
%post
# on `rpm -ivh` PARAM is 1
# on `rpm -Uvh` PARAM is 2