Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-updates-src > by-pkgid > bcbdf16fdaa7f5346f421af5ef1b9a00 > files > 9

phpmyadmin-4.9.5-2.mga7.src.rpm

%define upstream_name phpMyAdmin
%global __requires_exclude_from %{_datadir}/phpmyadmin/libraries/plugins/transformations/TEMPLATE.*|/tests/|phing
%global __requires_exclude CodeSniffer|phar:

Summary:	Handles the administration of MySQL over the web
Name:		phpmyadmin
Version:	4.9.5
Release:	%mkrel 2
License:	GPLv2
Group:		System/Servers
URL:		http://www.phpmyadmin.net/
Source0:	https://files.phpmyadmin.net/%{upstream_name}/%{version}/%{upstream_name}-%{version}-all-languages.tar.xz
Source1:	phpmyadmin-16x16.png
Source2:	phpmyadmin-32x32.png
Source3:	phpmyadmin-48x48.png
Source4:	phpmyadmin.conf
Source5:	phpmyadmin.desktop
Patch0:		phpMyAdmin-4.6.4-default_config.diff
Patch1:		patch14591.patch
Requires:	php-webinterface > 3:7.2.0
Requires:	php-mysqli
Requires:	php-mbstring
Requires:	php-gd
BuildArch:	noarch
Obsoletes:	phpMyAdmin
# used by setup
Recommends:	php-bz2 php-zip php-openssl php-xml
Obsoletes:	phpseclib < 2.0.9-2
BuildRequires:	mercurial

# tries to get rid of dependency generation completly 
%define __requires_exclude_from ^%{_datadir}/.*$
Requires: pear(File/Iterator/Autoload.php) 

%description
phpMyAdmin is intended to handle the administration of MySQL over the web.
Currently it can : create and drop databases, create, copy, drop and alter
tables, delete, edit and add fields, execute any SQL-statement, even
batch-queries, manage keys on fields, load text files into tables, create and
read dumps of tables, export data to CSV value, administer multiple servers
and single databases.

%prep
%autosetup -S hg -n %{upstream_name}-%{version}-all-languages

# Setup vendor config file
sed -e "/'CHANGELOG_FILE'/s@./ChangeLog@%{_datadir}/doc/%{name}/ChangeLog@" \
    -e "/'LICENSE_FILE'/s@./LICENSE@%{_datadir}/doc/%{name}/LICENSE@" \
    -e "/'CONFIG_DIR'/s@'./'@'%{_sysconfdir}/%{name}/'@" \
    -e "/'SETUP_CONFIG_FILE'/s@./config/config.inc.php@%{_localstatedir}/lib/%{name}/config/config.inc.php@" \
    -i libraries/vendor_config.php

%build

%install
export DONT_RELINK=1

install -d %{buildroot}%{_sysconfdir}/%{name}
install -d %{buildroot}%{_datadir}/%{name}

cp -aRf * %{buildroot}%{_datadir}/%{name}/

# cleanup
pushd %{buildroot}%{_datadir}/%{name}
    rm -f CREDITS ChangeLog Documentation.txt INSTALL LICENSE README 
    rm -f README.VENDOR RELEASE-DATE-* TODO
    rm -rf examples
    rm -rf scripts
    rm -rf contrib
    rm -rf doc
    rm -f lang/*.sh libraries/transformations/*.sh
    rm -rf libraries/phpseclib
    rm -rf phpunit.xml.nocoverage
    rm -rf test
    # nuke the patch backup, if any
    rm -f config.sample.inc.php.*
    find -name "\.htaccess" | xargs rm -f
popd

# fix docs
install -d %{buildroot}%{_datadir}/%{name}/doc/html/_static
install -m0644 doc/html/*.html doc/html/*.js %{buildroot}%{_datadir}/%{name}/doc/html/
install -m0644 doc/html/_static/* %{buildroot}%{_datadir}/%{name}/doc/html/_static/

# fix config file location
# keep the "config.inc.php" file name as this is hard coded everywhere.
mv %{buildroot}%{_datadir}/%{name}/config.sample.inc.php \
    %{buildroot}%{_sysconfdir}/%{name}/config.inc.php

chmod 640 %{buildroot}%{_sysconfdir}/%{name}/config.inc.php

install -d %{buildroot}%{_localstatedir}/lib/%{name}/{upload,save,config}

cat > README.urpmi << EOF
The actual configuration file is /etc/phpmyadmin/config.inc.php
The %{_datadir}/%{name}/config.default.inc.php file contains default
values, and is not supposed to be modified.
EOF

# new Icons
install -d %{buildroot}%{_iconsdir}
install -d %{buildroot}%{_miconsdir}
install -d %{buildroot}%{_liconsdir}

install -m0644 %{SOURCE1} %{buildroot}%{_miconsdir}/%{name}.png
install -m0644 %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png
install -m0644 %{SOURCE3} %{buildroot}%{_liconsdir}/%{name}.png

# install menu entry.
# XDG menu
install -d %{buildroot}%{_datadir}/applications
install -m0644 %{SOURCE5} %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop

install -d -m 755 %{buildroot}%{_webappconfdir}
install -m0644 %{SOURCE4} %{buildroot}%{_webappconfdir}/%{name}.conf

# fix borked permissions
find %{buildroot}%{_datadir}/%{name} -type d -exec chmod 755 {} \;
find %{buildroot}%{_datadir}/%{name} -type f -exec chmod 644 {} \;

%post
# generate random secret
secret=%_get_password 46

# blowfish secret
perl -pi \
    -e "s|\\\$cfg\\['blowfish_secret'\\] = ''|\\\$cfg\\['blowfish_secret'\\] = '$secret'|" \
    %{_sysconfdir}/%{name}/config.inc.php

%files
%doc ChangeLog LICENSE README RELEASE-DATE-* README.urpmi examples
%config(noreplace) %{webappconfdir}/%{name}.conf
%dir %{_sysconfdir}/%{name}
%attr(-,root,apache) %config(noreplace) %{_sysconfdir}/%{name}/config.inc.php
%{_datadir}/%{name}
%dir %{_localstatedir}/lib/%{name}/
%dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/upload
%dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/save
%dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/config
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/*.desktop


%changelog
* Wed Sep 09 2020 mokraemer <mokraemer> 4.9.5-2.mga7
+ Revision: 1623830
- rel
- Fix remove php_flag
- new vesion 4.9.5
- new version 4.9.4 (mga#26036)
- new version 4.9.3
- mga#25725, new phpmyadmin 4.9.2

* Tue Jun 04 2019 mokraemer <mokraemer> 4.9.0.1-1.mga7
+ Revision: 1399568
- phpmyadmin 4.9.0.1, security fixes

* Mon Jan 28 2019 mokraemer <mokraemer> 4.8.5-1.mga7
+ Revision: 1361615
- new version 4.8.5

* Sat Dec 15 2018 mokraemer <mokraemer> 4.8.4-1.mga7
+ Revision: 1341523
- new version 4.8.4

* Fri Oct 26 2018 mokraemer <mokraemer> 4.8.3-6.mga7
+ Revision: 1325955
- fix recomends

* Fri Oct 26 2018 mokraemer <mokraemer> 4.8.3-5.mga7
+ Revision: 1325706
- add patch for #14591

* Thu Sep 20 2018 umeabot <umeabot> 4.8.3-4.mga7
+ Revision: 1287893
- Mageia 7 Mass Rebuild

* Sat Aug 25 2018 mokraemer <mokraemer> 4.8.3-3.mga7
+ Revision: 1254416
+ rebuild (emptylog)

* Thu Aug 23 2018 mokraemer <mokraemer> 4.8.3-2.mga7
+ Revision: 1253627
+ rebuild (emptylog)

* Thu Aug 23 2018 mokraemer <mokraemer> 4.8.3-1.mga7
+ Revision: 1253619
- new version 4.8.3

* Sun Jun 24 2018 mokraemer <mokraemer> 4.8.2-1.mga7
+ Revision: 1239361
- new version 4.8.2

* Fri Jun 01 2018 mokraemer <mokraemer> 4.8.1-1.mga7
+ Revision: 1233495
- new version 4.8.1

* Tue May 01 2018 ovitters <ovitters> 4.8.0.1-2.mga7
+ Revision: 1224247
- rebuild for missing signature

* Fri Apr 27 2018 zezinho <zezinho> 4.8.0.1-1.mga7
+ Revision: 1222846
- new version 4.8.0.1

* Fri Feb 23 2018 zezinho <zezinho> 4.7.8-1.mga7
+ Revision: 1204334
- new security fix version 4.7.8

* Sun Dec 24 2017 luigiwalser <luigiwalser> 4.7.7-1.mga7
+ Revision: 1184578
- 4.7.7

* Mon Nov 06 2017 zezinho <zezinho> 4.7.5-1.mga7
+ Revision: 1176287
- new version 4.7.5

* Sat May 27 2017 luigiwalser <luigiwalser> 4.7.1-1.mga6
+ Revision: 1105131
- 4.7.1

* Fri Apr 21 2017 tv <tv> 4.7.0-4.mga6
+ Revision: 1097017
- filter bogus deps (mga#20623)

* Fri Apr 21 2017 zezinho <zezinho> 4.7.0-3.mga6
+ Revision: 1097013
- get rid of dependency generation completly

* Sat Apr 15 2017 luigiwalser <luigiwalser> 4.7.0-2.mga6
+ Revision: 1096580
- obsolete phpseclib since we are using the bundled one again

* Fri Mar 31 2017 zezinho <zezinho> 4.7.0-1.mga6
+ Revision: 1095520
- new version 4.7.0 - remove using phpseclib patch as it now uses an updated version of the lib

* Tue Jan 24 2017 luigiwalser <luigiwalser> 4.6.6-1.mga6
+ Revision: 1083293
- 4.6.6

* Sat Dec 10 2016 ngompa <ngompa> 4.6.5.2-2.mga6
+ Revision: 1074128
- Remove unneeded %%pretrans

* Tue Dec 06 2016 luigiwalser <luigiwalser> 4.6.5.2-1.mga6
+ Revision: 1072819
- 4.6.5.2

* Sat Nov 26 2016 luigiwalser <luigiwalser> 4.6.5.1-1.mga6
+ Revision: 1070353
- 4.6.5.1
- 4.6.5

* Thu Oct 13 2016 daviddavid <daviddavid> 4.6.4-3.mga6
+ Revision: 1060633
- fix desktop file Categories (mga#2449)

* Thu Aug 18 2016 luigiwalser <luigiwalser> 4.6.4-2.mga6
+ Revision: 1046879
- fix vendor config dir (mga#19205)

* Wed Aug 17 2016 luigiwalser <luigiwalser> 4.6.4-1.mga6
+ Revision: 1046594
- 4.6.4 (fixes too many CVEs to list)

* Thu Jun 23 2016 luigiwalser <luigiwalser> 4.6.3-1.mga6
+ Revision: 1037293
- 4.6.3

* Thu May 26 2016 luigiwalser <luigiwalser> 4.6.2-1.mga6
+ Revision: 1018594
- 4.6.2

* Wed Mar 02 2016 luigiwalser <luigiwalser> 4.5.5.1-3.mga6
+ Revision: 983235
- do not package test directory

* Tue Mar 01 2016 luigiwalser <luigiwalser> 4.5.5.1-2.mga6
+ Revision: 981603
- filter autogenerated pear requires

* Tue Mar 01 2016 luigiwalser <luigiwalser> 4.5.5.1-1.mga6
+ Revision: 981178
- 4.5.5.1

* Tue Feb 23 2016 luigiwalser <luigiwalser> 4.5.5-1.mga6
+ Revision: 977367
- 4.5.5

* Fri Jan 29 2016 luigiwalser <luigiwalser> 4.5.4.1-1.mga6
+ Revision: 929004
- 4.5.4.1

* Thu Jan 28 2016 luigiwalser <luigiwalser> 4.5.4-1.mga6
+ Revision: 928369
- 4.5.4

* Sat Dec 26 2015 luigiwalser <luigiwalser> 4.5.3.1-1.mga6
+ Revision: 915128
- 4.5.3.1

* Mon Nov 30 2015 zezinho <zezinho> 4.5.2-1.mga6
+ Revision: 907306
- rediff patches
- new version

* Thu Oct 29 2015 luigiwalser <luigiwalser> 4.4.15.1-1.mga6
+ Revision: 896461
- 4.4.15.1 (fixes CVE-2015-7873)
- restore default config patch

* Wed Sep 09 2015 zezinho <zezinho> 4.4.14.1-1.mga6
+ Revision: 875304
- new version

* Wed Sep 09 2015 luigiwalser <luigiwalser> 4.2.13.3-2.mga6
+ Revision: 875066
- update CVE-2015-6830 to fix regressions from upstream
- rediff and actually apply patch 1
- add upstream patch to fix CVE-2015-6830
- move desktop file contents out of spec to external source file
+ alexl <alexl>
- add GenericName and translations for desktop file

* Thu May 14 2015 luigiwalser <luigiwalser> 4.2.13.3-1.mga5
+ Revision: 822084
- 4.2.13.3

* Thu Mar 05 2015 luigiwalser <luigiwalser> 4.2.13.2-1.mga5
+ Revision: 817844
- 4.2.13.2 (fixes CVE-2015-2206)

* Wed Dec 03 2014 luigiwalser <luigiwalser> 4.2.13.1-1.mga5
+ Revision: 800516
- 4.2.13.1 (fixes CVE-2014-9218 and CVE-2014-9219)

* Sun Nov 30 2014 luigiwalser <luigiwalser> 4.2.13-1.mga5
+ Revision: 800076
- 4.2.13

* Fri Nov 21 2014 luigiwalser <luigiwalser> 4.2.12-1.mga5
+ Revision: 798084
- 4.2.12 (fixes CVE-2014-895[89] and CVE-2014-896[01])

* Tue Oct 21 2014 luigiwalser <luigiwalser> 4.2.10.1-1.mga5
+ Revision: 792389
- 4.2.10.1 (fixes CVE-2014-8326)

* Wed Oct 15 2014 umeabot <umeabot> 4.2.9.1-4.mga5
+ Revision: 744766
- Second Mageia 5 Mass Rebuild

* Sat Oct 04 2014 pterjan <pterjan> 4.2.9.1-3.mga5
+ Revision: 736844
- Exclude broken requires from template files

* Wed Oct 01 2014 tv <tv> 4.2.9.1-2.mga5
+ Revision: 734027
- rebuild for pear deps

* Wed Oct 01 2014 luigiwalser <luigiwalser> 4.2.9.1-1.mga5
+ Revision: 733837
- 4.2.9.1 (fixes CVE-2014-7217)

* Tue Sep 16 2014 umeabot <umeabot> 4.2.8.1-2.mga5
+ Revision: 687568
- Mageia 5 Mass Rebuild
+ luigiwalser <luigiwalser>
- 4.2.8.1
+ tv <tv>
- s/uggests:/Recommends:/

* Mon Sep 01 2014 luigiwalser <luigiwalser> 4.2.8-1.mga5
+ Revision: 670774
- 4.2.8

* Mon Aug 18 2014 luigiwalser <luigiwalser> 4.2.7.1-1.mga5
+ Revision: 665250
- 4.2.7.1 (fixes CVE-2014-5273 and CVE-2014-5274)

* Fri Jul 18 2014 luigiwalser <luigiwalser> 4.2.6-1.mga5
+ Revision: 653664
- 4.2.6 (fixes CVE-2014-495[45] and CVE-2014-498[67])

* Mon Jun 23 2014 luigiwalser <luigiwalser> 4.2.4-1.mga5
+ Revision: 638892
- 4.2.4 (fixes CVE-2014-4348 and CVE-2014-4349)

* Thu Jun 12 2014 oden <oden> 4.2.3-1.mga5
+ Revision: 635778
- 4.2.3

* Mon Feb 24 2014 luigiwalser <luigiwalser> 4.1.8-1.mga5
+ Revision: 596576
- 4.1.8

* Thu Feb 20 2014 oden <oden> 4.1.7-1.mga5
+ Revision: 595085
- 4.1.7 (fixes CVE-2014-1879)

* Mon Oct 21 2013 umeabot <umeabot> 4.0.8-2.mga4
+ Revision: 539550
- Mageia 4 Mass Rebuild

* Mon Oct 07 2013 oden <oden> 4.0.8-1.mga4
+ Revision: 492405
- 4.0.8

* Tue Sep 24 2013 fwang <fwang> 4.0.7-1.mga4
+ Revision: 484673
- new version 4.0.7

* Fri Sep 06 2013 oden <oden> 4.0.6-1.mga4
+ Revision: 475353
- 4.0.6

* Mon Aug 05 2013 fwang <fwang> 4.0.5-1.mga4
+ Revision: 463691
- new version 4.0.5

* Mon Jul 29 2013 oden <oden> 4.0.4.2-1.mga4
+ Revision: 460217
- 4.0.4.2

* Tue Jul 02 2013 zezinho <zezinho> 4.0.4.1-1.mga4
+ Revision: 449783
- new version

* Thu Jun 06 2013 oden <oden> 4.0.3-1.mga4
+ Revision: 438210
- 4.0.3
- more apache 2.2/2.4 compat stuff

* Sat May 25 2013 zezinho <zezinho> 4.0.2-1.mga4
+ Revision: 427059
- version 4.x.x import work of Oden Eriksson #10021

* Thu Apr 25 2013 zezinho <zezinho> 3.5.8.1-1.mga3
+ Revision: 411139
- security update

* Tue Apr 16 2013 zezinho <zezinho> 3.5.8-1.mga3
+ Revision: 410203
- new security fix version 3.5.8

* Sat Apr 13 2013 guillomovitch <guillomovitch> 3.5.7-3.mga3
+ Revision: 409847
- fix URL used in menu entry (#9664)

* Sun Mar 17 2013 guillomovitch <guillomovitch> 3.5.7-2.mga3
+ Revision: 403548
- no need to enforce mod_ssl usage by default, this is a sysadmin decision

* Wed Mar 13 2013 zezinho <zezinho> 3.5.7-1.mga3
+ Revision: 402343
- new bugfix version

* Thu Jan 31 2013 zezinho <zezinho> 3.5.6-1.mga3
+ Revision: 393825
- new version

* Thu Dec 20 2012 oden <oden> 3.5.5-1.mga3
+ Revision: 333360
- 3.5.5

* Wed Dec 19 2012 oden <oden> 3.5.4-2.mga3
+ Revision: 332803
- bump release
- make it backportable
- force ssl

* Sun Nov 18 2012 fwang <fwang> 3.5.4-1.mga3
+ Revision: 319515
- new version 3.5.4

* Tue Oct 16 2012 tmb <tmb> 3.5.3-3.mga3
+ Revision: 306855
- bump rel to preserve upgrade path from mga2

* Thu Oct 11 2012 zezinho <zezinho> 3.5.3-2.mga3
+ Revision: 304716
- bump release to be higher than in 2

* Wed Oct 10 2012 zezinho <zezinho> 3.5.3-1.mga3
+ Revision: 304499
- new version
+ guillomovitch <guillomovitch>
- make webapp configuration file compatible with apache 2.4

* Wed Aug 22 2012 zezinho <zezinho> 3.5.2.2-1.mga3
+ Revision: 283048
- new version
- new version

* Thu Jun 21 2012 zezinho <zezinho> 3.5.1-2.mga3
+ Revision: 262522
- require php-mysqli for now, as it is the recommended upstream

* Fri May 11 2012 zezinho <zezinho> 3.5.1-1.mga2
+ Revision: 235361
- new bugfix release

* Thu Apr 12 2012 zezinho <zezinho> 3.5.0-2.mga2
+ Revision: 230515
- new version

* Thu Mar 29 2012 zezinho <zezinho> 3.4.10.2-1.mga2
+ Revision: 227530
- new version

* Tue Feb 21 2012 zezinho <zezinho> 3.4.10.1-1.mga2
+ Revision: 211462
- new version

* Sun Feb 19 2012 zezinho <zezinho> 3.4.10-1.mga2
+ Revision: 211010
- new version

* Tue Jan 03 2012 zezinho <zezinho> 3.4.9-1.mga2
+ Revision: 189887
- new version

* Mon Dec 05 2011 zezinho <zezinho> 3.4.8-1.mga2
+ Revision: 177084
- new version

* Mon Nov 14 2011 zezinho <zezinho> 3.4.7.1-1.mga2
+ Revision: 167617
- a security release

* Mon Nov 07 2011 zezinho <zezinho> 3.4.7-1.mga2
+ Revision: 164970
- new version

* Thu Oct 20 2011 zezinho <zezinho> 3.4.6-1.mga2
+ Revision: 156863
- new version

* Fri Sep 16 2011 fwang <fwang> 3.4.5-1.mga2
+ Revision: 144152
- new version 3.4.5
- new version 3.4.4

* Sun Jul 03 2011 fwang <fwang> 3.4.3.1-1.mga2
+ Revision: 117607
- new version 3.4.3.1

* Tue Apr 26 2011 wally <wally> 3.3.10-2.mga1
+ Revision: 91807
- fix desktop file name (mga#954)

* Mon Apr 11 2011 dams <dams> 3.3.10-1.mga1
+ Revision: 83210
- update to 3.3.10

* Tue Mar 15 2011 ennael <ennael> 3.3.9.2-2.mga1
+ Revision: 71888
- clean spec file
- imported package phpmyadmin