summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-07-01 19:11:27 +0200
committerRemi Collet <fedora@famillecollet.com>2012-07-01 19:11:27 +0200
commitdf712aa431e7e7b0ea54b727a5e38d754703e6bd (patch)
tree8fce066545f11d8258e3aadef0c17299abfdbbf7
parent8002f3af82bd9ada9c8fddb202896434d908063d (diff)
phpMyAdmin 3.5.2-rc1
-rw-r--r--Makefile2
-rw-r--r--phpMyAdmin.htaccess10
-rw-r--r--phpMyAdmin.spec46
3 files changed, 31 insertions, 27 deletions
diff --git a/Makefile b/Makefile
index 1e65467..91b0fd5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
SRCDIR := $(shell pwd)
NAME := $(shell basename $(SRCDIR))
-include ../common/Makefile
+include ../../common/Makefile
diff --git a/phpMyAdmin.htaccess b/phpMyAdmin.htaccess
index e2d301f..0b8ae1a 100644
--- a/phpMyAdmin.htaccess
+++ b/phpMyAdmin.htaccess
@@ -11,10 +11,7 @@ Alias /phpmyadmin /usr/share/phpMyAdmin
<Directory /usr/share/phpMyAdmin/>
<IfModule mod_authz_core.c>
# Apache 2.4
- <RequireAny>
- Require ip 127.0.0.1
- Require ip ::1
- </RequireAny>
+ Require local
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
@@ -28,10 +25,7 @@ Alias /phpmyadmin /usr/share/phpMyAdmin
<Directory /usr/share/phpMyAdmin/setup/>
<IfModule mod_authz_core.c>
# Apache 2.4
- <RequireAny>
- Require ip 127.0.0.1
- Require ip ::1
- </RequireAny>
+ Require local
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
diff --git a/phpMyAdmin.spec b/phpMyAdmin.spec
index c53340a..4133498 100644
--- a/phpMyAdmin.spec
+++ b/phpMyAdmin.spec
@@ -1,12 +1,14 @@
+%global prever rc1
+
Name: phpMyAdmin
-Version: 3.5.1
-Release: 2%{?dist}
+Version: 3.5.2
+Release: %{?prever:0.}1%{?prever:.%prever}%{?dist}
Summary: Web based MySQL browser written in php
Group: Applications/Internet
License: GPLv2+
URL: http://www.phpmyadmin.net/
-Source0: http://downloads.sourceforge.net/sourceforge/phpmyadmin/%{name}-%{version}-all-languages.tar.bz2
+Source0: http://downloads.sourceforge.net/sourceforge/phpmyadmin/%{name}-%{version}%{?prever:-%prever}-all-languages.tar.bz2
Source2: phpMyAdmin.htaccess
Source10: http://downloads.sourceforge.net/sourceforge/phpmyadmin/darkblue_orange-2.10.zip
@@ -23,6 +25,7 @@ Requires: php-mysql >= 5.2.0
Requires: php-mbstring >= 5.2.0
Requires: php-gd >= 5.2.0
Requires: php-mcrypt >= 5.2.0
+Requires: php-php-gettext
Provides: phpmyadmin = %{version}-%{release}
@@ -35,7 +38,7 @@ is available in 50 languages
%prep
-%setup -qn phpMyAdmin-%{version}-all-languages
+%setup -qn phpMyAdmin-%{version}%{?prever:-%prever}-all-languages
# Minimal configuration file
sed -e "/'extension'/s@'mysql'@'mysqli'@" \
@@ -49,6 +52,7 @@ sed -e "/'CHANGELOG_FILE'/s@./ChangeLog@%{_datadir}/doc/%{name}-%{version}/Chang
-e "/'LICENSE_FILE'/s@./LICENSE@%{_datadir}/doc/%{name}-%{version}/LICENSE@" \
-e "/'CONFIG_DIR'/s@'./'@'%{_sysconfdir}/%{name}/'@" \
-e "/'SETUP_CONFIG_FILE'/s@./config/config.inc.php@%{_localstatedir}/lib/%{name}/config/config.inc.php@" \
+ -e "/'GETTEXT_INC'/s@./libraries/php-gettext/gettext.inc@%{_datadir}/php/gettext/gettext.inc@" \
-i libraries/vendor_config.php
# For debug
@@ -69,28 +73,30 @@ done
%install
rm -rf %{buildroot}
-%{__mkdir} -p %{buildroot}/%{_datadir}/%{name}
-%{__mkdir} -p %{buildroot}/%{_sysconfdir}/httpd/conf.d/
-%{__mkdir} -p %{buildroot}/%{_sysconfdir}/%{name}
-%{__cp} -ad ./* %{buildroot}/%{_datadir}/%{name}
-%{__cp} %{SOURCE2} %{buildroot}/%{_sysconfdir}/httpd/conf.d/phpMyAdmin.conf
-%{__cp} CONFIG %{buildroot}/%{_sysconfdir}/%{name}/config.inc.php
+mkdir -p %{buildroot}/%{_datadir}/%{name}
+mkdir -p %{buildroot}/%{_sysconfdir}/httpd/conf.d/
+mkdir -p %{buildroot}/%{_sysconfdir}/%{name}
+cp -ad ./* %{buildroot}/%{_datadir}/%{name}
+cp %{SOURCE2} %{buildroot}/%{_sysconfdir}/httpd/conf.d/phpMyAdmin.conf
+cp CONFIG %{buildroot}/%{_sysconfdir}/%{name}/config.inc.php
+
+rm -f %{buildroot}/%{_datadir}/%{name}/*txt
+rm -f %{buildroot}/%{_datadir}/%{name}/[CIRLT]*
+rm -f %{buildroot}/%{_datadir}/%{name}/libraries/.htaccess
+rm -f %{buildroot}/%{_datadir}/%{name}/setup/lib/.htaccess
+rm -f %{buildroot}/%{_datadir}/%{name}/setup/frames/.htaccess
+rm -rf %{buildroot}/%{_datadir}/%{name}/contrib
-%{__rm} -f %{buildroot}/%{_datadir}/%{name}/*txt
-%{__rm} -f %{buildroot}/%{_datadir}/%{name}/[CIRLT]*
-%{__rm} -f %{buildroot}/%{_datadir}/%{name}/libraries/.htaccess
-%{__rm} -f %{buildroot}/%{_datadir}/%{name}/setup/lib/.htaccess
-%{__rm} -f %{buildroot}/%{_datadir}/%{name}/setup/frames/.htaccess
-%{__rm} -rf %{buildroot}/%{_datadir}/%{name}/contrib
+mkdir -p %{buildroot}/%{_localstatedir}/lib/%{name}/{upload,save,config}
-%{__mkdir} -p %{buildroot}/%{_localstatedir}/lib/%{name}/{upload,save,config}
+rm -rf %{buildroot}%{_datadir}/%{pkgname}/libraries/php-gettext
%clean
rm -rf %{buildroot}
-%if %{?fedora}%{!?fedora:99} <= 12
+%if %{?fedora}%{!?fedora:99} <= 16
%pre
echo -e "\nWARNING : Fedora %{fedora} is now EOL :"
echo -e "You should consider upgrading to a supported release.\n"
@@ -115,6 +121,10 @@ sed -i -e "/'blowfish_secret'/s/MUSTBECHANGEDONINSTALL/$RANDOM$RANDOM$RANDOM$RAN
%changelog
+* Sun Jul 01 2012 Remi Collet <rpms@famillecollet.com> 3.5.1-0.1.rc1
+- update to 3.5.2-rc1
+- clean up spec, use system php-gettext
+
* Sat May 05 2012 Remi Collet <rpms@famillecollet.com> 3.5.1-2
- make config compatible httpd 2.2 / 2.4