-diff -ur phpMyAdmin-5.0.2-all-languages.orig/libraries/config.default.php phpMyAdmin-5.0.2-all-languages/libraries/config.default.php
---- phpMyAdmin-5.0.2-all-languages.orig/libraries/config.default.php 2020-03-21 05:17:40.000000000 +0100
-+++ phpMyAdmin-5.0.2-all-languages/libraries/config.default.php 2020-08-06 21:01:31.057763731 +0200
-@@ -1,18 +1,6 @@
+diff -ur phpMyAdmin-5.1.1-all-languages.orig/libraries/config.default.php phpMyAdmin-5.1.1-all-languages/libraries/config.default.php
+--- phpMyAdmin-5.1.1-all-languages.orig/libraries/config.default.php 2021-11-25 02:55:24.392642991 +0100
++++ phpMyAdmin-5.1.1-all-languages/libraries/config.default.php 2021-11-25 02:56:22.546780860 +0100
+@@ -1,18 +1,5 @@
<?php
- /* vim: set expandtab sw=4 ts=4 sts=4: */
/**
- * <code>
- * N N OOO !! DDDD OOO N N OOO TTTTT EEEE DDDD I TTTTT !!
- *
- * phpMyAdmin default configuration, you can copy values from here to your
- * config.inc.php
- *
+- *
* All directives are explained in the documentation
- *
-@@ -880,14 +868,14 @@
+ */
+
+@@ -938,14 +925,14 @@
*
* @global integer $cfg['MaxNavigationItems']
*/
/**
* the separator to sub-tree the select-based light menu tree
-@@ -946,14 +934,14 @@
+@@ -1004,14 +991,14 @@
*
* @global integer $cfg['NumRecentTables']
*/
/**
* display a JavaScript table filter in the navigation panel
-@@ -1219,7 +1207,7 @@
+@@ -1277,7 +1264,7 @@
*
* @global string $cfg['GridEditing']
*/
/**
* Options > Relational display
-@@ -1369,7 +1357,7 @@
+@@ -1426,7 +1413,7 @@
*
* @global boolean $cfg['ActionLinksMode']
*/
/**
* How many columns should be used for table display of a database?
-@@ -1419,7 +1407,7 @@
+@@ -1476,7 +1463,7 @@
* Whether to display image or text or both image and text in table row
* action segment. Value can be either of ``image``, ``text`` or ``both``.
*/
-diff -ur phpMyAdmin-5.0.2-all-languages.orig/libraries/vendor_config.php phpMyAdmin-5.0.2-all-languages/libraries/vendor_config.php
---- phpMyAdmin-5.0.2-all-languages.orig/libraries/vendor_config.php 2020-03-21 05:17:40.000000000 +0100
-+++ phpMyAdmin-5.0.2-all-languages/libraries/vendor_config.php 2020-08-06 21:02:56.026195041 +0200
+diff -ur phpMyAdmin-5.1.1-all-languages.orig/libraries/vendor_config.php phpMyAdmin-5.1.1-all-languages/libraries/vendor_config.php
+--- phpMyAdmin-5.1.1-all-languages.orig/libraries/vendor_config.php 2021-11-25 02:58:03.022019006 +0100
++++ phpMyAdmin-5.1.1-all-languages/libraries/vendor_config.php 2021-11-25 02:58:11.591039316 +0100
@@ -68,7 +68,7 @@
/**
* Default value for check for version upgrades.
+++ /dev/null
-diff -ur phpMyAdmin-5.0.2-all-languages.orig/vendor/paragonie/random_compat/build-phar.sh phpMyAdmin-5.0.2-all-languages/vendor/paragonie/random_compat/build-phar.sh
---- phpMyAdmin-5.0.2-all-languages.orig/vendor/paragonie/random_compat/build-phar.sh 2020-03-21 05:17:40.000000000 +0100
-+++ phpMyAdmin-5.0.2-all-languages/vendor/paragonie/random_compat/build-phar.sh 2020-08-16 18:20:12.786866887 +0200
-@@ -1,4 +1,4 @@
--#!/usr/bin/env bash
-+#!/bin/bash
-
- basedir=$( dirname $( readlink -f ${BASH_SOURCE[0]} ) )
-
-diff -ur phpMyAdmin-5.0.2-all-languages.orig/vendor/phpmyadmin/sql-parser/bin/highlight-query phpMyAdmin-5.0.2-all-languages/vendor/phpmyadmin/sql-parser/bin/highlight-query
---- phpMyAdmin-5.0.2-all-languages.orig/vendor/phpmyadmin/sql-parser/bin/highlight-query 2020-03-21 05:17:39.000000000 +0100
-+++ phpMyAdmin-5.0.2-all-languages/vendor/phpmyadmin/sql-parser/bin/highlight-query 2020-08-16 18:20:23.032866887 +0200
-@@ -1,4 +1,4 @@
--#!/usr/bin/env php
-+#!/usr/bin/php
- <?php
- declare(strict_types=1);
-
-diff -ur phpMyAdmin-5.0.2-all-languages.orig/vendor/phpmyadmin/sql-parser/bin/lint-query phpMyAdmin-5.0.2-all-languages/vendor/phpmyadmin/sql-parser/bin/lint-query
---- phpMyAdmin-5.0.2-all-languages.orig/vendor/phpmyadmin/sql-parser/bin/lint-query 2020-03-21 05:17:39.000000000 +0100
-+++ phpMyAdmin-5.0.2-all-languages/vendor/phpmyadmin/sql-parser/bin/lint-query 2020-08-16 18:20:31.658866887 +0200
-@@ -1,4 +1,4 @@
--#!/usr/bin/env php
-+#!/usr/bin/php
- <?php
- declare(strict_types=1);
-
-diff -ur phpMyAdmin-5.0.2-all-languages.orig/vendor/phpmyadmin/sql-parser/bin/tokenize-query phpMyAdmin-5.0.2-all-languages/vendor/phpmyadmin/sql-parser/bin/tokenize-query
---- phpMyAdmin-5.0.2-all-languages.orig/vendor/phpmyadmin/sql-parser/bin/tokenize-query 2020-03-21 05:17:39.000000000 +0100
-+++ phpMyAdmin-5.0.2-all-languages/vendor/phpmyadmin/sql-parser/bin/tokenize-query 2020-08-16 18:20:27.313866887 +0200
-@@ -1,4 +1,4 @@
--#!/usr/bin/env php
-+#!/usr/bin/php
- <?php
- declare(strict_types=1);
-
Summary: phpMyAdmin - web-based MySQL administration
Summary(pl.UTF-8): phpMyAdmin - administracja bazami MySQL przez WWW
Name: phpMyAdmin
-Version: 5.0.2
-Release: 3
+Version: 5.1.1
+Release: 1
License: GPL v2
Group: Applications/Databases/Interfaces
Source0: https://files.phpmyadmin.net/%{name}/%{version}/%{name}-%{version}-all-languages.tar.xz
-# Source0-md5: 442eb85912d3a2ad2fc0b9d6c21b1527
+# Source0-md5: e73377b11b7d38fa3f3014f2799c5252
Source1: %{name}-apache.conf
Source2: %{name}-lighttpd.conf
Patch0: %{name}-config.patch
Patch1: %{name}-disable-version-check.patch
-Patch2: %{name}-env.patch
URL: http://www.phpmyadmin.net/
BuildRequires: rpmbuild(macros) >= 1.268
BuildRequires: tar >= 1:1.22
%setup -q -n %{name}-%{version}-all-languages
%patch0 -p1
%patch1 -p1
-%patch2 -p1
# cleanup backups after patching
find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}/tmp}
-cp -p *.php *.css *.json *.lock *.yml favicon.ico robots.txt $RPM_BUILD_ROOT%{_appdir}
+cp -p *.php *.css *.json *.lock favicon.ico robots.txt $RPM_BUILD_ROOT%{_appdir}
cp -a js libraries locale sql templates themes vendor $RPM_BUILD_ROOT%{_appdir}
cp -p libraries/config.default.php $RPM_BUILD_ROOT%{_sysconfdir}/config.inc.php
%{_appdir}/*.php
%{_appdir}/*.json
%{_appdir}/*.lock
-%{_appdir}/*.yml
%{_appdir}/favicon.ico
%{_appdir}/robots.txt