summaryrefslogtreecommitdiffstats
path: root/phpMyAdmin.spec
diff options
context:
space:
mode:
Diffstat (limited to 'phpMyAdmin.spec')
-rw-r--r--phpMyAdmin.spec18
1 files changed, 14 insertions, 4 deletions
diff --git a/phpMyAdmin.spec b/phpMyAdmin.spec
index 15a97dc..49bed25 100644
--- a/phpMyAdmin.spec
+++ b/phpMyAdmin.spec
@@ -1,7 +1,7 @@
# remirepo spec file for phpMyAdmin
# remirepo:3
#
-# Copyright (c) 2008-2020 Remi Collet
+# Copyright (c) 2008-2021 Remi Collet
#
# Fedora spec file for phpMyAdmin
#
@@ -24,7 +24,7 @@
%endif
%global upstream_version 5.1.0
-%global upstream_prever rc1
+%global upstream_prever rc2
Name: phpMyAdmin
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
@@ -224,6 +224,7 @@ sed -e "/'CHANGELOG_FILE'/s@ROOT_PATH@'%{_pkgdocdir}/'@" \
%endif
-e '/AUTOLOAD_FILE/s@./vendor@%{_datadir}/%{name}/vendor@' \
-e "/TEMP_DIR/s@ROOT.*tmp'@'%{_localstatedir}/lib/%{name}/temp'@" \
+ -e "/CACHE_DIR/s@ROOT.*cache'@'%{_localstatedir}/lib/%{name}/cache'@" \
-i libraries/vendor_config.php
# For debug
@@ -278,6 +279,8 @@ install -Dpm 0644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/httpd/conf.d/phpMyAdmin
install -Dpm 0644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/nginx/default.d/phpMyAdmin.conf
%endif
+mkdir -p %{buildroot}/%{_localstatedir}/lib/%{name}/{upload,save,config,temp}
+
rm -f %{buildroot}/%{_datadir}/%{name}/config.sample.inc.php
rm -f %{buildroot}/%{_datadir}/%{name}/*txt
rm -f %{buildroot}/%{_datadir}/%{name}/[CDLR]*
@@ -287,6 +290,7 @@ rm -f %{buildroot}/%{_datadir}/%{name}/setup/frames/.htaccess
rm -rf %{buildroot}%{_datadir}/%{name}/contrib
rm %{buildroot}%{_datadir}/%{name}/composer.*
rm -rf %{buildroot}%{_datadir}/%{name}/tmp/
+mv %{buildroot}%{_datadir}/%{name}/libraries/cache %{buildroot}/%{_localstatedir}/lib/%{name}/cache
# JS libraries sources
#rm -r %{buildroot}%{_datadir}/%{name}/js/jquery/src
@@ -301,8 +305,6 @@ rm -rf %{buildroot}%{_datadir}/%{name}/doc/
mkdir -p %{buildroot}%{_datadir}/%{name}/doc/
ln -s %{_pkgdocdir}/html %{buildroot}%{_datadir}/%{name}/doc/html
-mkdir -p %{buildroot}/%{_localstatedir}/lib/%{name}/{upload,save,config,temp}
-
mv -f %{buildroot}%{_datadir}/%{name}/js/vendor/jquery/MIT-LICENSE.txt LICENSE-jquery
mv -f %{buildroot}%{_datadir}/%{name}/js/vendor/codemirror/LICENSE LICENSE-codemirror
@@ -339,9 +341,17 @@ sed -e "/'blowfish_secret'/s/MUSTBECHANGEDONINSTALL/$SECRET/" \
%dir %attr(0750,apache,apache) %{_localstatedir}/lib/%{name}/save
%dir %attr(0750,apache,apache) %{_localstatedir}/lib/%{name}/config
%dir %attr(0750,apache,apache) %{_localstatedir}/lib/%{name}/temp
+%dir %attr(0750,apache,apache) %{_localstatedir}/lib/%{name}/cache
+ %attr(0640,apache,apache) %{_localstatedir}/lib/%{name}/cache/*
%changelog
+* Wed Feb 10 2021 Remi Collet <remi@remirepo.net> - 5.1.0~rc2-1
+- update to 5.1.0-rc2
+
+* Mon Dec 21 2020 Remi Collet <remi@remirepo.net> - 5.1.0~rc1-2
+- set CACHE_DIR
+
* Mon Dec 21 2020 Remi Collet <remi@remirepo.net> - 5.1.0~rc1-1
- update to 5.1.0-rc1
- add dependency on nikic/fast-route