summaryrefslogtreecommitdiffstats
path: root/phpMyAdmin.spec
blob: fbc8740824f4bab2470297c0818e2c87a2024c11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
# remirepo spec file for phpMyAdmin
# remirepo:3
#
# Copyright (c) 2008-2021 Remi Collet
#
# Fedora spec file for phpMyAdmin
#
# License: MIT
# http://opensource.org/licenses/MIT
#
# Please, preserve the changelog entries
#
%{!?_pkgdocdir: %global _pkgdocdir %{_datadir}/doc/%{name}-%{version}}

# Switch from PHP system libraries to bundled ones
%if 0%{?fedora}
%bcond_without syslib
%else
%bcond_with    syslib
%endif

# remirepo:1
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 8
# nginx 1.6 with nginx-filesystem
%global with_nginx     1
# httpd 2.4 with httpd-filesystem
%global with_httpd     1
# remirepo:4
%else
%global with_nginx     0
%global with_httpd     0
%endif

%global upstream_version 5.1.1
#global upstream_prever  rc2

Name: phpMyAdmin
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
Release: 3%{?dist}
Summary: A web interface for MySQL and MariaDB

# MIT (js/jquery/, js/jqplot, js/codemirror/, js/tracekit/)
# BSD (js/openlayers/)
# GPLv2+ (the rest)
%if %{with syslib}
License: GPLv2+ and MIT and BSD
%else
# BSD:     bacon/bacon-qr-code, dasprid/enum, google/recaptcha, nikic/fast-route,
#          samyoul/u2f-php-server, twig/twig
# MIT:     paragonie/constant_time_encoding, phpmyadmin/twig-i18n-extension,
#          phpseclib/phpseclib, pragmarx/google2fa, pragmarx/google2fa-qrcode,
#          psr/*, symfony/*
# GPLv2+:  phpmyadmin/motranslator, phpmyadmin/shapefile, phpmyadmin/sql-parser
# LGPLv3:  tecnickcom/tcpdf
# MPLv2.0: williamdes/mariadb-mysql-kbs
License: GPLv2+ and MIT and BSD and LGPLv3 and MPLv2.0
%endif
URL: https://www.phpmyadmin.net/
Source0: https://files.phpmyadmin.net/%{name}/%{upstream_version}%{?upstream_prever:-%upstream_prever}/%{name}-%{upstream_version}%{?upstream_prever:-%upstream_prever}-all-languages.tar.xz
Source1: https://files.phpmyadmin.net/%{name}/%{upstream_version}%{?upstream_prever:-%upstream_prever}/%{name}-%{upstream_version}%{?upstream_prever:-%upstream_prever}-all-languages.tar.xz.asc
Source2: phpMyAdmin.htaccess
Source3: phpMyAdmin.nginx
Source4: https://files.phpmyadmin.net/phpmyadmin.keyring
# List name / version / license of bundled libraries
Source5: phpMyAdmin-bundled.php

# Redirect to system certificates
Patch0:  phpMyAdmin-certs.patch

BuildArch: noarch
BuildRequires: gnupg2
%if %{with syslib}
# ensure dependencies are there
BuildRequires: php-symfony4-common               >= 4.4.9
%else
# to run phpMyAdmin-bundled.php
BuildRequires: php-cli
%endif

Requires(post): coreutils sed
Requires:  webserver
%if %{with_nginx}
# remirepo:4
# Temporarily not mandatory to allow nginx for nginx repo
%if 1
Recommends: nginx-filesystem
%else
Requires:   nginx-filesystem
# remirepo:1
%endif
%endif
%if %{with_httpd}
Requires:  httpd-filesystem
Requires:  php(httpd)
Suggests:  httpd
%endif
# From composer.json, "require": {
#        "php": "^7.1.3 || ^8.0",
#        "ext-hash": "*",
#        "ext-iconv": "*",
#        "ext-json": "*",
#        "ext-mysqli": "*",
#        "ext-pcre": "*",
#        "ext-xml": "*",
#        "google/recaptcha": "^1.1",
#        "nikic/fast-route": "^1.3",
#        "phpmyadmin/motranslator": "^5.0",
#        "phpmyadmin/shapefile": "^2.0",
#        "phpmyadmin/sql-parser": "^5.0",
#        "phpmyadmin/twig-i18n-extension": "^3.0",
#        "phpseclib/phpseclib": "^2.0",
#        "symfony/config": "^4.4.9",
#        "symfony/dependency-injection": "^4.4.9",
#        "symfony/expression-language": "^4.4.9",
#        "symfony/polyfill-ctype": "^1.17.0",
#        "symfony/polyfill-mbstring": "^1.17.0",
#        "twig/twig": "^2.9 || ^3",
#        "williamdes/mariadb-mysql-kbs": "^1.2"
Requires:  php(language) >= 7.1.3
Requires:  php-hash
Requires:  php-iconv
Requires:  php-json
Requires:  php-mysqli
Requires:  php-pcre
Requires:  php-xml
%if %{with syslib}
# remirepo:1
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
Requires:  (php-composer(google/recaptcha)             >= 1.1   with php-composer(google/recaptcha)             < 2)
Requires:  (php-composer(nikic/fast-route)             >= 1.3   with php-composer(nikic/fast-route)             < 2)
Requires:  (php-composer(phpmyadmin/motranslator)      >= 5.0   with php-composer(phpmyadmin/motranslator)      < 6)
Requires:  (php-composer(phpmyadmin/shapefile)         >= 2.0   with php-composer(phpmyadmin/shapefile)         < 3)
Requires:  (php-composer(phpmyadmin/sql-parser)        >= 5.0   with php-composer(phpmyadmin/sql-parser)        < 6)
Requires:  (php-composer(phpmyadmin/twig-i18n-extension) >= 3.0 with php-composer(phpmyadmin/twig-i18n-extension) < 4)
Requires:  (php-composer(phpseclib/phpseclib)          >= 2.0.9 with php-composer(phpseclib/phpseclib)          < 3)
Requires:  (php-composer(symfony/config)               >= 4.4.9 with php-composer(symfony/config)               < 5)
Requires:  (php-composer(symfony/dependency-injection) >= 4.4.9 with php-composer(symfony/dependency-injection) < 5)
Requires:  (php-composer(symfony/expression-language)  >= 4.4.9 with php-composer(symfony/expression-language)  < 5)
Requires:  (php-composer(symfony/polyfill-mbstring)    >= 1.17  with php-composer(symfony/polyfill-mbstring)    < 2)
Requires:  (php-composer(twig/twig)                    >= 2.9   with php-composer(twig/twig)                    < 4)
Requires:  (php-composer(williamdes/mariadb-mysql-kbs) >= 1.2   with php-composer(williamdes/mariadb-mysql-kbs) < 2)
# remirepo:15
%else
Requires:  php-google-recaptcha              >= 1.1
Requires:  php-nikic-fast-route              >= 1.3
Requires:  php-phpmyadmin-motranslator5      >= 5.0
Requires:  php-phpmyadmin-shapefile          >= 2.0
Requires:  php-phpmyadmin-sql-parser5
Requires:  php-phpmyadmin-twig-i18n-extension
Requires:  php-phpseclib                     >= 2.0.9
Requires:  php-symfony4-config               >= 4.4.9
Requires:  php-symfony4-dependency-injection >= 4.4.9
Requires:  php-symfony4-expression-language  >= 4.4.9
Requires:  php-symfony-polyfill              >= 1.17
Requires:  php-twig2                         >= 2.9
Requires:  php-williamdes-mariadb-mysql-kbs  >= 1.2
%endif
# Autoloader
Requires:  php-composer(fedora/autoloader)
# From composer.json, "suggest": {
#        "ext-openssl": "Cookie encryption",
#        "ext-curl": "Updates checking",
#        "ext-opcache": "Better performance",
#        "ext-zlib": "For gz import and export",
#        "ext-bz2": "For bzip2 import and export",
#        "ext-zip": "For zip import and export",
#        "ext-gd2": "For image transformations",
#        "ext-mbstring": "For best performance",
#        "tecnickcom/tcpdf": "For PDF support",
#        "pragmarx/google2fa-qrcode": "For 2FA authentication",
#        "samyoul/u2f-php-server": "For FIDO U2F authentication"
#    "conflict": {
#        "phpseclib/phpseclib": "2.0.8",
#        "tecnickcom/tcpdf": "<6.2",
#        "pragmarx/google2fa-qrcode": "<1.0.1",
#        "samyoul/u2f-php-server": "<1.1"
# remirepo:1
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 8
Recommends: php-opcache
Recommends: php-composer(tecnickcom/tcpdf)          >= 6.3
Recommends: php-composer(pragmarx/google2fa-qrcode) >= 1.0.1
Recommends: php-composer(samyoul/u2f-php-server)    >= 1.1
Recommends: php-tcpdf-dejavu-sans-fonts             >= 6.2
# remirepo:6
%else
Requires:   php-tcpdf                               >= 6.4.1
Requires:   php-pragmarx-google2fa-qrcode           >= 1.0.1
Requires:   php-samyoul-u2f-php-server              >= 1.1
Requires:   php-tcpdf-dejavu-sans-fonts             >= 6.2
%endif
%else
Provides:  bundled(php-bacon-bacon-qr-code) = 2.0.3
Provides:  bundled(php-dasprid-enum) = 1.0.3
Provides:  bundled(php-google-recaptcha) = 1.2.4
Provides:  bundled(php-nikic-fast-route) = v1.3.0
Provides:  bundled(php-paragonie-constant-time-encoding) = v2.4.0
Provides:  bundled(php-phpmyadmin-motranslator) = 5.2.0
Provides:  bundled(php-phpmyadmin-shapefile) = 2.1
Provides:  bundled(php-phpmyadmin-sql-parser) = 5.4.2
Provides:  bundled(php-phpmyadmin-twig-i18n-extension) = v3.0.0
Provides:  bundled(php-phpseclib-phpseclib) = 2.0.31
Provides:  bundled(php-pragmarx-google2fa) = 8.0.0
Provides:  bundled(php-pragmarx-google2fa-qrcode) = v1.0.3
Provides:  bundled(php-psr-cache) = 1.0.1
Provides:  bundled(php-psr-container) = 1.0.0
Provides:  bundled(php-psr-log) = 1.1.4
Provides:  bundled(php-samyoul-u2f-php-server) = v1.1.4
Provides:  bundled(php-symfony-cache) = v4.4.25
Provides:  bundled(php-symfony-cache-contracts) = v1.1.10
Provides:  bundled(php-symfony-config) = v4.4.25
Provides:  bundled(php-symfony-dependency-injection) = v4.4.25
Provides:  bundled(php-symfony-expression-language) = v4.4.25
Provides:  bundled(php-symfony-filesystem) = v4.4.25
Provides:  bundled(php-symfony-polyfill-ctype) = v1.23.0
Provides:  bundled(php-symfony-polyfill-mbstring) = v1.23.0
Provides:  bundled(php-symfony-polyfill-php81) = v1.23.0
Provides:  bundled(php-symfony-service-contracts) = v1.1.9
Provides:  bundled(php-symfony-var-exporter) = v4.4.25
Provides:  bundled(php-tecnickcom-tcpdf) = 6.4.1
Provides:  bundled(php-twig-twig) = v2.13.1
Provides:  bundled(php-williamdes-mariadb-mysql-kbs) = 1.2.12
Requires:  php-dom
Requires:  php-intl
Requires:  php-posix
# php-tidy required by tcpdf is not used (fixHTMLCode)
%endif
Requires:  php-ctype
Requires:  php-openssl
Requires:  php-curl
Requires:  php-zlib
Requires:  php-bz2
Requires:  php-zip
Requires:  php-gd
Requires:  php-mbstring
# From phpcompatinfo reports for 4.8.0
#   notice: recode is optional (iconv or mbstring are preferred / used first)
Requires:  php-date
Requires:  php-filter
Requires:  php-libxml
Requires:  php-session
Requires:  php-simplexml
Requires:  php-spl
Requires:  php-xmlwriter
# System certificates
Requires:  ca-certificates

# Bundled JS library
Provides:  bundled(js-codemirror)
Provides:  bundled(js-jqplot) = 1.0.9
Provides:  bundled(js-jquery) = 3.2.1
Provides:  bundled(js-openlayers)
Provides:  bundled(js-tracekit)

Provides:  php-composer(phpmyadmin/phpmyadmin) = %{version}
# remirepo:4
# Update from other 3rd party
Obsoletes: phpMyAdmin50 <= %{version}
Obsoletes: phpMyAdmin49 <= %{version}
Obsoletes: phpmyadmin   <  %{version}
# Allow lowercase in install command
Provides:  phpmyadmin   =  %{version}-%{release}


%description
phpMyAdmin is a tool written in PHP intended to handle the administration of
MySQL over the Web. Currently it can create and drop databases,
create/drop/alter tables, delete/edit/add fields, execute any SQL statement,
manage keys on fields, manage privileges,export data into various formats and
is available in 50 languages


%prep
%{?gpgverify:%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE1}' --data='%{SOURCE0}'}

%setup -qn phpMyAdmin-%{upstream_version}%{?upstream_prever:-%upstream_prever}-all-languages
%patch0 -p1

# Minimal configuration file
sed -e "/'blowfish_secret'/s@''@'MUSTBECHANGEDONINSTALL'@"  \
    -e "/'UploadDir'/s@''@'%{_localstatedir}/lib/%{name}/upload'@"  \
    -e "/'SaveDir'/s@''@'%{_localstatedir}/lib/%{name}/save'@" \
    config.sample.inc.php >CONFIG

# Setup vendor config file
sed -e "/'CHANGELOG_FILE'/s@ROOT_PATH@'%{_pkgdocdir}/'@" \
    -e "/'LICENSE_FILE'/s@ROOT_PATH@'%{_pkgdocdir}/'@" \
    -e "/'CONFIG_DIR'/s@ROOT_PATH@'%{_sysconfdir}/%{name}/'@" \
%if 0%{?_licensedir:1}
    -e '/LICENSE_FILE/s:%_defaultdocdir:%_defaultlicensedir:' \
%endif
    -e "/VERSION_SUFFIX/s/''/'-%{release}'/" \
    -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
grep '^define' libraries/vendor_config.php

%if %{with syslib}
# Generate autoloader
rm -rf vendor/*
cat << 'EOF' | tee vendor/autoload.php
<?php
/* Autoloader for phpMyAdmin and its dependencies */

require_once '%{_datadir}/php/Fedora/Autoloader/autoload.php';
\Fedora\Autoloader\Autoload::addPsr4('PhpMyAdmin\\',        dirname(__DIR__) . '/libraries/classes');
\Fedora\Autoloader\Dependencies::required([
    '%{_datadir}/php/FastRoute/autoload.php',
    '%{_datadir}/php/PhpMyAdmin/MoTranslator5/autoload.php', /* before sqlparser which may allow other version */
    '%{_datadir}/php/PhpMyAdmin/SqlParser5/autoload.php',
    '%{_datadir}/php/PhpMyAdmin/ShapeFile/autoload.php',
    '%{_datadir}/php/phpseclib/autoload.php',
    '%{_datadir}/php/ReCaptcha/autoload.php',
    [
        '%{_datadir}/php/Twig3/autoload.php',
        '%{_datadir}/php/Twig2/autoload.php',
    ],
    '%{_datadir}/php/PhpMyAdmin/Twig/Extensions/autoload.php',
    '%{_datadir}/php/Symfony4/Component/Config/autoload.php',
    '%{_datadir}/php/Symfony4/Component/DependencyInjection/autoload.php',
    '%{_datadir}/php/Symfony4/Component/ExpressionLanguage/autoload.php',
    '%{_datadir}/php/Symfony/Polyfill/autoload.php',
    '%{_datadir}/php/Williamdes/MariaDBMySQLKBS/autoload.php',
]);
\Fedora\Autoloader\Dependencies::optional([
    '%{_datadir}/php/tcpdf/autoload.php',
    '%{_datadir}/php/PragmaRX/Google2FAQRCode/autoload.php',
    '%{_datadir}/php/Samyoul/U2F/U2FServer/autoload.php',
]);
EOF
%else
php %{SOURCE5} vendor/composer/installed.json
%endif


%build
# Nothing to do


%install
mkdir -p %{buildroot}/%{_datadir}/%{name}
cp -ad ./* %{buildroot}/%{_datadir}/%{name}
install -Dpm 0640 CONFIG %{buildroot}/%{_sysconfdir}/%{name}/config.inc.php
# Apache
install -Dpm 0644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/httpd/conf.d/phpMyAdmin.conf
# Nginx
%if %{with_nginx}
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]*
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     %{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
#rm -r %%{buildroot}%%{_datadir}/%{name}/js/openlayers/src

# Bundled certificates
rm -r %{buildroot}%{_datadir}/%{name}/libraries/certs

# documentation
rm -rf    %{buildroot}%{_datadir}/%{name}/examples/
rm -rf    %{buildroot}%{_datadir}/%{name}/doc/
mkdir -p  %{buildroot}%{_datadir}/%{name}/doc/
ln -s %{_pkgdocdir}/html  %{buildroot}%{_datadir}/%{name}/doc/html

mv -f %{buildroot}%{_datadir}/%{name}/js/vendor/jquery/MIT-LICENSE.txt LICENSE-jquery
mv -f %{buildroot}%{_datadir}/%{name}/js/vendor/codemirror/LICENSE LICENSE-codemirror


%pretrans
# allow dir to link upgrade
if  [ -d %{_datadir}/%{name}/doc/html ]; then
  rm -rf %{_datadir}/%{name}/doc/html
fi

%post
# generate a 32 chars secret key for this install
SECRET=$(printf "%04x%04x%04x%04x%04x%04x%04x%04x" $RANDOM $RANDOM $RANDOM $RANDOM $RANDOM $RANDOM $RANDOM $RANDOM)
sed -e "/'blowfish_secret'/s/MUSTBECHANGEDONINSTALL/$SECRET/" \
    -i %{_sysconfdir}/%{name}/config.inc.php


%files
%{!?_licensedir:%global license %%doc}
%license LICENSE*
%doc ChangeLog README CONTRIBUTING.md config.sample.inc.php
%doc doc/html/
%doc examples/
%doc composer.json
%{_datadir}/%{name}
%attr(0750,root,apache) %dir %{_sysconfdir}/%{name}
%config(noreplace) %attr(0640,root,apache) %{_sysconfdir}/%{name}/config.inc.php
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
%if %{with_nginx}
%config(noreplace) %{_sysconfdir}/nginx/default.d/%{name}.conf
%endif
%dir %{_localstatedir}/lib/%{name}/
%dir %attr(0750,apache,apache) %{_localstatedir}/lib/%{name}/upload
%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
* Fri Dec 10 2021 Remi Collet <remi@remirepo.net> - 5.1.1-3
- add flag to use all PHP bundled libraries instead of system ones

* Fri Jun  4 2021 Remi Collet <remi@remirepo.net> - 5.1.1-1
- update to 5.1.1 (2021-06-04, bugfix release)

* Wed May  5 2021 Remi Collet <remi@remirepo.net> - 5.1.0-3
- add VERSION_SUFFIX in vendor_config.php

* Thu Apr  1 2021 Remi Collet <remi@remirepo.net> - 5.1.0-2
- fix autoloader for pragmarx/google2fa-qrcode

* Wed Feb 24 2021 Remi Collet <remi@remirepo.net> - 5.1.0-1
- update to 5.1.0 (2021-02-24, new features release)

* 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
- raise dependency on phpmyadmin/motranslator 5.0
- raise dependency on phpmyadmin/twig-i18n-extension 3.0
- raise dependency on Symfony 4.4.9

* Fri Oct 16 2020 Remi Collet <remi@remirepo.net> - 5.0.4-1
- update to 5.0.4 (2020-10-15, bug fix release)

* Sat Oct 10 2020 Remi Collet <remi@remirepo.net> - 5.0.3-1
- update to 5.0.3 (2020-10-10, security release)
- raise dependency on twig 2.9 and allow v3
- allow phpmyadmin/twig-i18n-extension v3

* Sat Apr  4 2020 Remi Collet <remi@remirepo.net> 5.0.2-3
- temporarily make nginx-filesystem optional to
  allow installation with nginx from nginx repository

* Tue Mar 24 2020 Remi Collet <remi@remirepo.net> 5.0.2-2
- cleanup httpd configuration

* Sat Mar 21 2020 Remi Collet <remi@remirepo.net> 5.0.2-1
- update to 5.0.2 (2020-03-21, security release)
- use phpmyadmin/twig-i18n-extension instead of twig/extensions

* Sun Jan 19 2020 Remi Collet <remi@remirepo.net> 5.0.1-2
- add missing depependency on williamdes/mariadb-mysql-kbs

* Wed Jan  8 2020 Remi Collet <remi@remirepo.net> 5.0.1-1
- update to 5.0.1 (2020-01-08, security release)

* Fri Dec 27 2019 Remi Collet <remi@remirepo.net> 5.0.0-1
- update to 5.0.0 (2019-12-26, new features release)

* Sat Nov 23 2019 Remi Collet <remi@remirepo.net> - 5.0.0~rc1-2
- update to 5.0.0rc1

* Fri Sep 13 2019 Remi Collet <remi@remirepo.net> - 5.0.0~alpha1-2
- temporary allow Symfony 4.1 on old EL

* Thu Sep 12 2019 Remi Collet <remi@remirepo.net> - 5.0.0~alpha1-1
- update to 5.0.0alpha1
- raise dependency on PHP 7.1.3
- raise dependency on phpmyadmin/sql-parser 5.0
- raise dependency on twig 2.1
- add dependency on pragmarx/google2fa-qrcode
- drop dependency on pragmarx/google2fa and bacon/bacon-qr-code
- drop dependency on psr/container

* Mon Sep  2 2019 Remi Collet <remi@remirepo.net> - 4.9.0.1-2
- make optional depencencies mandatory on EL <= 7
  see https://superuser.com/questions/1472237

* Tue Jun  4 2019 Remi Collet <remi@remirepo.net> - 4.9.0.1-1
- update to 4.9.0.1 (2019-06-04, important security fixes)
- raise dependency on phpmyadmin/sql-parser version 4.3.2

* Tue Jan 29 2019 Remi Collet <remi@remirepo.net> - 4.8.5-1
- update to 4.8.5 (2019-01-26, security fix)

* Tue Dec 11 2018 Remi Collet <remi@remirepo.net> - 4.8.4-1
- update to 4.8.4 (2018-12-11, security fix)

* Wed Aug 22 2018 Remi Collet <remi@remirepo.net> - 4.8.3-1
- update to 4.8.3 (2018-08-22, security fix)

* Fri Jun 22 2018 Remi Collet <remi@remirepo.net> - 4.8.2-1
- update to 4.8.2 (2018-06-21, important security fix)

* Fri May 25 2018 Remi Collet <remi@remirepo.net> - 4.8.1-1
- update to 4.8.1 (2018-05-25, bug fix release)

* Thu Apr 19 2018 Remi Collet <remi@remirepo.net> - 4.8.0.1-1
- update to 4.8.0.1 (2018-04-19, security release)

* Wed Apr 11 2018 Remi Collet <remi@remirepo.net> 4.8.0-2
- add dependency on symfony/polyfill-mbstring for PHP < 7.2

* Mon Apr  9 2018 Remi Collet <remi@remirepo.net> 4.8.0-1
- update to 4.8.0 (2018-04-07, new features release)

* Tue Mar 27 2018 Remi Collet <remi@remirepo.net> 4.8.0~rc1-1
- update to 4.8.0-rc1

* Wed Mar  7 2018 Remi Collet <remi@remirepo.net> 4.8.0~alpha1-3
- add optional dependency on pragmarx/google2fa, review #1552442
- add optional dependency on samyoul/u2f-php-server, review #1552450

* Thu Mar  1 2018 Remi Collet <remi@remirepo.net> 4.8.0~alpha1-2
- update to 4.8.0-alpha1
- add dependency on psr/container
- add dependency on twig/twig
- add dependency on twig/extensions
- add dependency on symfony/expression-language
- add optional dependency on bacon/bacon-qr-code
- dependency on tecnickcom/tcpdf is now optional

* Wed Feb 21 2018 Remi Collet <remi@remirepo.net> 4.7.8-1
- update to 4.7.8 (2018-02-20, security release)
- raise dependency on phpmyadmin/motranslator version 4.0
- use range dependencies on F27+

* Sat Dec 23 2017 Remi Collet <remi@remirepo.net> 4.7.7-1
- update to 4.7.7 (2017-12-23, security release)
- raise dependency on phpmyadmin/motranslator version 3.4

* Fri Dec  1 2017 Remi Collet <remi@remirepo.net> 4.7.6-1
- update to 4.7.6 (2017-12-01, regular maintenance release)
- raise dependency on phpseclib/phpseclib 2.0.9

* Mon Oct 23 2017 Remi Collet <remi@remirepo.net> 4.7.5-1
- update to 4.7.5 (2017-10-23, regular maintenance release)
- raise dependency on phpmyadmin/sql-parser version 4.2.3

* Thu Aug 24 2017 Remi Collet <remi@remirepo.net> 4.7.4-1
- update to 4.7.4 (2017-07-24, regular maintenance release)
- raise dependency on phpmyadmin/sql-parser version 4.1.10

* Tue Aug  1 2017 Remi Collet <remi@remirepo.net> 4.7.3-1
- update to 4.7.3 (2017-07-20, regular maintenance release)

* Fri Jun 30 2017 Remi Collet <remi@remirepo.net> 4.7.2-1
- update to 4.7.2 (2017-06-29, regular maintenance release)
- raise dependency on phpmyadmin/sql-parser version 4.1.7
- always use system certificates

* Sat May 27 2017 Remi Collet <remi@remirepo.net> 4.7.1-1
- update to 4.7.1 (2017-05-26, regular maintenance release)

* Wed Mar 29 2017 Remi Collet <remi@remirepo.net> 4.7.0-1
- update to 4.7.0 (2017-03-29, features release)

* Thu Mar  9 2017 Remi Collet <remi@remirepo.net> 4.7.0-0.2.rc1
- update to 4.7.0-rc1
- raise dependency on phpmyadmin/sql-parser version 4.1.2

* Fri Jan 27 2017 Remi Collet <remi@remirepo.net> 4.7.0-0.1.beta1
- update to 4.7.0-beta1
- raise dependency on phpmyadmin/sql-parser version 4.1
- add dependency on phpmyadmin/motranslator
- add dependency on phpmyadmin/shapefile
- add dependency on google/recaptcha
- use fedora autoloader instead of composer one

* Tue Jan 24 2017 Remi Collet <remi@remirepo.net> 4.6.6-1
- update to 4.6.6 (2017-01-23, bug and security fixes)

* Mon Jan 23 2017 Remi Collet <remi@remirepo.net> 4.6.5.2-2
- ensure phpmyadmin/sql-parser v3 is used

* Tue Dec  6 2016 Remi Collet <remi@remirepo.net> 4.6.5.2-1
- update to 4.6.5.2 (2016-12-06, bug fixes)

* Mon Nov 28 2016 Remi Collet <remi@remirepo.net> 4.6.5.1-2
- drop unneeded patch

* Sat Nov 26 2016 Remi Collet <remi@remirepo.net> 4.6.5.1-1
- update to 4.6.5.1 (2016-11-26, bug fixes)
- add patch to fix broken links on home page,
  open https://github.com/phpmyadmin/phpmyadmin/pull/12741

* Fri Nov 25 2016 Remi Collet <remi@remirepo.net> 4.6.5-1
- update to 4.6.5 (2016-11-25, security and bug fixes)
- bump dependency on sql-parser 3.4.13

* Wed Aug 31 2016 Remi Collet <remi@remirepo.net> 4.6.4-1
- update to 4.6.4 (2016-08-17, security and bug fixes)

* Tue Jul 26 2016 Remi Collet <remi@remirepo.net> 4.6.4-1
- bump dependency on sql-parser 3.4.4

* Thu Jun 23 2016 Remi Collet <remi@remirepo.net> 4.6.3-1
- update to 4.6.3 (2016-06-23, security and maintenance release)

* Thu May 26 2016 Remi Collet <remi@remirepo.net> 4.6.2-1
- update to 4.6.2 (2016-05-25, maintenance release)

* Tue May  3 2016 Remi Collet <remi@remirepo.net> 4.6.1-1
- update to 4.6.1 (2016-05-03, maintenance release)

* Tue Mar 22 2016 Remi Collet <remi@remirepo.net> 4.6.0-1
- update to 4.6.0 (2016-03-22, features release)

* Thu Mar  3 2016 Remi Collet <remi@remirepo.net> 4.6.0-0.1.rc2
- update to 4.6.0-rc2

* Tue Mar  1 2016 Remi Collet <remi@remirepo.net> 4.5.5.1-1
- update to 4.5.5.1 (2016-02-29, security and bugfix)
- raise dependency on udan11/sql-parser >= 3.4.0

* Tue Feb 23 2016 Remi Collet <remi@remirepo.net> 4.5.5-1
- update to 4.5.5 (2016-02-22, bugfix)
- raise dependency on udan11/sql-parser >= 3.3.1

* Fri Jan 29 2016 Remi Collet <remi@remirepo.net> 4.5.4.1-1
- update to 4.5.4.1 (2016-01-29, bugfix)

* Thu Jan 28 2016 Remi Collet <remi@remirepo.net> 4.5.4-1
- update to 4.5.4 (2016-01-28, security and bugfix)

* Sat Dec 26 2015 Remi Collet <remi@remirepo.net> 4.5.3.1-1
- update to 4.5.3.1 (2015-12-25, security)
- raise dependency on udan11/sql-parser >= 3.0.8

* Wed Nov 25 2015 Remi Collet <remi@remirepo.net> 4.5.2-1
- update to 4.5.2 (2015-11-23, bugfix)
- raise dependency on udan11/sql-parser >= 3.0.5

* Fri Sep 25 2015 Remi Collet <remi@remirepo.net> 4.5.1-1
- update to 4.5.1 (2015-10-23, bugfix)
- raise dependency on udan11/sql-parser >= 3.0.3

* Fri Sep 25 2015 Remi Collet <remi@remirepo.net> 4.5.0.2-1
- update to 4.5.0.2 (2015-09-25, regression fix)

* Thu Sep 24 2015 Remi Collet <remi@remirepo.net> 4.5.0.1-1
- update to 4.5.0.1 (2015-09-24, regression fix)

* Wed Sep 23 2015 Remi Collet <remi@remirepo.net> 4.5.0-1
- update to 4.5.0 (2015-09-23, features release)
- raise php minimal version to 5.5

* Sun Sep 20 2015 Remi Collet <remi@remirepo.net> 4.4.15-1
- update to 4.4.15 (2015-09-20, last bugfix release)

* Mon Sep 14 2015 Remi Collet <remi@remirepo.net> 4.5.0-0.1.rc1
- update to 4.5.0-rc1

* Wed Sep  9 2015 Remi Collet <remi@remirepo.net> 4.4.14.1-1
- update to 4.4.14.1 (2015-09-08, security)
- fix PMASA-2015-4

* Sun Sep  6 2015 Remi Collet <remi@remirepo.net> 4.4.14-2
- switch to phpseclib v2 for PHP 7
  see https://github.com/phpmyadmin/phpmyadmin/issues/11387

* Fri Aug 21 2015 Remi Collet <remi@remirepo.net> 4.4.14-1
- update to 4.4.14 (2015-08-20, bugfix)

* Sat Aug  8 2015 Remi Collet <remi@remirepo.net> 4.4.13.1-1
- update to 4.4.13.1 (2015-08-08, bugfix)

* Fri Aug  7 2015 Remi Collet <remi@remirepo.net> 4.4.13-1
- update to 4.4.13 (2015-08-07, bugfix)

* Tue Jul 21 2015 Remi Collet <remi@remirepo.net> 4.4.12-1
- update to 4.4.12 (2015-07-20, bugfix)
- fix sources URL

* Mon Jul  6 2015 Remi Collet <remi@remirepo.net> 4.4.11-1
- update to 4.4.11 (2015-07-06, bugfix)

* Wed Jun 17 2015 Remi Collet <remi@remirepo.net> 4.4.10-1
- update to 4.4.10 (2015-06-17, bugfix)

* Thu Jun  4 2015 Remi Collet <rpms@famillecollet.com> 4.4.9-1
- update to 4.4.9 (2015-06-04, bugfix)

* Thu May 28 2015 Remi Collet <rpms@famillecollet.com> 4.4.8-1
- update to 4.4.8 (2015-05-28, bugfix)

* Sat May 16 2015 Remi Collet <rpms@famillecollet.com> 4.4.7-1
- update to 4.4.7 (2015-05-16, bugfix)

* Wed May 13 2015 Remi Collet <rpms@famillecollet.com> 4.4.6.1-1
- update to 4.4.6.1 (2015-05-13, security)
- fix for PMASA-2015-2 and PMASA-2015-3

* Thu May  7 2015 Remi Collet <rpms@famillecollet.com> 4.4.6-1
- update to 4.4.6 (2015-05-07, bugfix)

* Tue May  5 2015 Remi Collet <rpms@famillecollet.com> 4.4.5-1
- update to 4.4.5 (2015-05-05, bugfix)

* Sun Apr 26 2015 Remi Collet <rpms@famillecollet.com> 4.4.4-1
- update to 4.4.4 (2015-04-26, bugfix)

* Mon Apr 20 2015 Remi Collet <rpms@famillecollet.com> 4.4.3-1
- update to 4.4.3 (2015-04-20, bugfix)

* Mon Apr 13 2015 Remi Collet <rpms@famillecollet.com> 4.4.2-1
- update to 4.4.2 (2015-04-13, bugfix)

* Wed Apr  8 2015 Remi Collet <rpms@famillecollet.com> 4.4.1.1-1
- update to 4.4.1.1 (2015-04-08, urgent fix)

* Tue Apr  7 2015 Remi Collet <rpms@famillecollet.com> 4.4.1-1
- update to 4.4.1 (2015-04-07, bugfix)

* Thu Apr  2 2015 Remi Collet <rpms@famillecollet.com> 4.4.0-1
- update to 4.4.0 (2015-04-01, new features)

* Sun Mar 29 2015 Remi Collet <rpms@famillecollet.com> 4.3.13
- update to 4.3.13 (2015-03-29, bugfix)

* Thu Mar 26 2015 Remi Collet <rpms@famillecollet.com> 4.4.0-0.1.rc1
- update to 4.4.0-rc1
- move examples into package documentation

* Sun Mar 15 2015 Remi Collet <rpms@famillecollet.com> 4.3.12
- update to 4.3.12 (2015-03-14, bugfix)

* Thu Mar  5 2015 Remi Collet <rpms@famillecollet.com> 4.3.11.1-1
- update to 4.3.11.1 (2015-03-04, security)

* Tue Mar  3 2015 Remi Collet <rpms@famillecollet.com> 4.3.11-1
- update to 4.3.11 (2015-03-02, bugfix)

* Fri Feb 20 2015 Remi Collet <rpms@famillecollet.com> 4.3.10-1
- update to 4.3.10 (Fri, 20 Feb 2015, bugfix)

* Tue Feb 10 2015 Remi Collet <rpms@famillecollet.com> 4.3.9-1
- update to 4.3.9 (Thu, 5 Feb 2015, bugfix)

* Sat Jan 24 2015 Remi Collet <rpms@famillecollet.com> 4.3.8-1
- update to 4.3.8 (Sat, 24 Jan 2015, bugfix)

* Thu Jan 15 2015 Remi Collet <rpms@famillecollet.com> 4.3.7-1
- update to 4.3.7 (Wed, 15 Jan 2015, bugfix)

* Thu Jan  8 2015 Remi Collet <rpms@famillecollet.com> 4.3.6-1
- update to 4.3.6 (Wed, 7 Jan 2015, bugfix)

* Mon Jan  5 2015 Remi Collet <rpms@famillecollet.com> 4.3.5-1
- update to 4.3.5 (Mon, 5 Jan 2015, bugfix)

* Mon Dec 29 2014 Remi Collet <rpms@famillecollet.com> 4.3.4-1
- update to 4.3.4 (Mon, 29 Dec 2014, bugfix)

* Sun Dec 21 2014 Remi Collet <rpms@famillecollet.com> 4.3.3-1
- update to 4.3.3 (Sun, 21 Dec 2014, bugfix)

* Fri Dec 12 2014 Remi Collet <rpms@famillecollet.com> 4.3.2-1
- update to 4.3.2 (Fri, 12 Dec 2014, bugfix)

* Mon Dec  8 2014 Remi Collet <rpms@famillecollet.com> 4.3.1-1
- update to 4.3.1 (Mon, 8 Dec 2014, bugfix)

* Fri Dec  5 2014 Remi Collet <rpms@famillecollet.com> 4.3.0-1
- update to 4.3.0 (Fri, 5 Dec 2014, new features)

* Wed Dec  3 2014 Remi Collet <rpms@famillecollet.com> 4.3.0-0.2.rc2
- update to 4.3.0-rc2

* Wed Dec  3 2014 Remi Collet <rpms@famillecollet.com> 4.2.13.1-1
- update to 4.2.13 (Wed, 3 Dec 2014, security)

* Tue Dec  2 2014 Remi Collet <rpms@famillecollet.com> 4.3.0-0.1.rc1
- update to 4.3.0-rc1
- examples are now required at runtime

* Sun Nov 30 2014 Remi Collet <rpms@famillecollet.com> 4.2.13-1
- update to 4.2.13 (Sun, 30 Nov 2014, bugfix)

* Thu Nov 20 2014 Remi Collet <rpms@famillecollet.com> 4.2.12-1
- update to 4.2.12 (Thu, 20 Nov 2014, bugfix and security)

* Fri Oct 31 2014 Remi Collet <rpms@famillecollet.com> 4.2.11-1
- update to 4.2.11 (Fri, 31 Oct 2014, bugfix)

* Tue Oct 21 2014 Remi Collet <rpms@famillecollet.com> 4.2.10.1-1
- update to 4.2.10.1 (Tue, 21 Oct 2014, bugfix)
- fix for PMASA-2014-12
- drop dependency on php-gmp

* Sat Oct 11 2014 Remi Collet <rpms@famillecollet.com> 4.2.10-1
- update to 4.2.10 (Sat, 11 Oct 2014, bugfix)

* Sat Oct  4 2014 Remi Collet <rpms@famillecollet.com> 4.2.9.1-2
- provide nginx configuration (Fedora >= 21)

* Wed Oct  1 2014 Remi Collet <rpms@famillecollet.com> 4.2.9.1-1
- update to 4.2.9.1 (Wed, 1 Oct 2014, security)
- fix for PMASA-2014-11

* Sat Sep 20 2014 Remi Collet <rpms@famillecollet.com> 4.2.9-1
- update to 4.2.9 (Sat, 20 Sep 2014, bugfix)

* Sat Sep 13 2014 Remi Collet <rpms@famillecollet.com> 4.2.8.1-1
- update to 4.2.8.1 (Sat, 13 Sep 2014, security)
- fix for PMASA-2014-10

* Sun Aug 31 2014 Remi Collet <rpms@famillecollet.com> 4.2.8-1
- update to 4.2.8 (Sun, 31 Aug 2014, bugfix)

* Mon Aug 18 2014 Remi Collet <rpms@famillecollet.com> 4.2.7.1-2
- restrict access to /etc/phpMyAdmin and /var/lib/phpMyAdmin

* Sun Aug 17 2014 Remi Collet <rpms@famillecollet.com> 4.2.7.1-1
- update to 4.2.7.1 (Sun, 17 Aug 2014, security)
- fix for PMASA-2014-8 and PMASA-2014-9

* Thu Jul 31 2014 Remi Collet <rpms@famillecollet.com> 4.2.7-1
- update to 4.2.7 (Thu, 31 Jul 2014, bugfix)

* Thu Jul 31 2014 Remi Collet <rpms@famillecollet.com> 4.2.6-3
- move documentation in /usr/share/doc
- move License in /usr/share/licenses

* Fri Jul 18 2014 Remi Collet <rpms@famillecollet.com> 4.2.6-2
- fix links on home page

* Fri Jul 18 2014 Remi Collet <rpms@famillecollet.com> 4.2.6-1
- update to 4.2.6 (Thu, 17 Jul 2014, security)
- fix for PMASA-2014-4 to PMASA-2014-7

* Tue Jul  8 2014 Remi Collet <rpms@famillecollet.com> 4.2.5-2
- apply upstream patch to use system phpseclib
- add dependency on php-phpseclib-crypt-aes

* Thu Jun 26 2014 Remi Collet <rpms@famillecollet.com> 4.2.5-1
- update to 4.2.5 (Thu, 26 Jun 2014, bugfix)

* Sun Jun 22 2014 Remi Collet <rpms@famillecollet.com> 4.2.4-1
- update to 4.2.4 (Fri, 20 Jun 2014, security)
- fix for PMASA-2014-2 and PMASA-2014-3

* Tue Jun 10 2014 Remi Collet <rpms@famillecollet.com> 4.2.3-1
- update to 4.2.3 (Sun, 08 June 2014, bugfix)

* Thu May 22 2014 Remi Collet <rpms@famillecollet.com> 4.2.2-1
- update to 4.2.2 (Tue, 20 May 2014, bugfix)

* Tue May 13 2014 Remi Collet <rpms@famillecollet.com> 4.2.1-1
- update to 4.2.1 (Tue, 13 May 2014, bugfix)

* Thu May  8 2014 Remi Collet <rpms@famillecollet.com> 4.2.0-1
- update to 4.2.0 (Thu, 08 May 2014)

* Mon Apr 28 2014 Remi Collet <rpms@famillecollet.com> 4.1.14-1
- update to 4.1.14 (Sat, 26 Apr 2014, bugfix)

* Sun Apr 13 2014 Remi Collet <rpms@famillecollet.com> 4.1.13-1
- update to 4.1.13 (Sun, 13 Apr 2014, bugfix)

* Thu Mar 27 2014 Remi Collet <rpms@famillecollet.com> 4.1.12-1
- update to 4.1.12 (Thu, 27 Mar 2014, bugfix)

* Sun Mar 23 2014 Remi Collet <rpms@famillecollet.com> 4.1.11-1
- update to 4.1.11 (Sat, 22 Mar 2014, bugfix)

* Sat Mar 22 2014 Remi Collet <rpms@famillecollet.com> 4.1.10-1
- update to 4.1.10 (Sat, 22 Mar 2014, bugfix)

* Fri Mar  7 2014 Remi Collet <rpms@famillecollet.com> 4.1.9-1
- update to 4.1.9 (Thu, 06 Mar 2014, bugfix)

* Sat Feb 22 2014 Remi Collet <rpms@famillecollet.com> 4.1.8-1
- update to 4.1.8 (Sat, 22 Feb 2014, bugfix)

* Tue Feb 11 2014 Remi Collet <rpms@famillecollet.com> 4.1.7-1
- update to 4.1.7 (Sun, 09 Feb 2014, bugfix)

* Sun Jan 26 2014 Remi Collet <rpms@famillecollet.com> 4.1.6-1
- update to 4.1.6 (Sun, 26 Jan 2014, bugfix)

* Fri Jan 17 2014 Remi Collet <rpms@famillecollet.com> 4.1.5-1
- update to 4.1.5 (Fri, 17 Jan 2014, bugfix)

* Sat Jan 11 2014 Remi Collet <rpms@famillecollet.com> 4.1.4-2
- fix for f20 and unversioned docdir

* Tue Jan  7 2014 Remi Collet <rpms@famillecollet.com> 4.1.4-1
- update to 4.1.4 (Tue, 07 Jan 2014, bugfix)

* Tue Dec 31 2013 Remi Collet <rpms@famillecollet.com> 4.1.3-1
- update to 4.1.3 (Tue, 31 Dec 2013, bugfix)

* Mon Dec 23 2013 Remi Collet <rpms@famillecollet.com> 4.1.2-1
- update to 4.1.2 (Mon, 23 Dec 2013, bugfix)

* Tue Dec 17 2013 Remi Collet <rpms@famillecollet.com> 4.1.1-1
- update to 4.1.1 (bugfix)

* Thu Dec 12 2013 Remi Collet <rpms@famillecollet.com> 4.1.0-1
- update to 4.1.0 final

* Thu Dec 12 2013 Ville Skyttä <ville.skytta@iki.fi> - 3.5.8.2-2
- Fix paths to changelog and license when doc dir is unversioned (#994036).
- Fix source URL, use xz compressed tarball.

* Sat Dec  7 2013 Remi Collet <rpms@famillecollet.com> 4.1.0-0.3.rc3
- update to 4.1.0-rc3

* Wed Dec  4 2013 Remi Collet <rpms@famillecollet.com> 4.1.0-0.2.rc2
- update to 4.1.0-rc2

* Wed Dec  4 2013 Remi Collet <rpms@famillecollet.com> 4.0.10-1
- update to 4.0.10 (bugfix)

* Sat Nov 23 2013 Remi Collet <rpms@famillecollet.com> 4.1.0-0.1.rc1
- update to 4.1.0-rc1

* Tue Nov  5 2013 Remi Collet <rpms@famillecollet.com> 4.0.9-1
- update to 4.0.9 (bugfix)

* Sun Oct  6 2013 Remi Collet <rpms@famillecollet.com> 4.0.8-1
- update to 4.0.8 (bugfix)

* Mon Sep 23 2013 Remi Collet <rpms@famillecollet.com> 4.0.7-1
- update to 4.0.7 (bugfix)

* Sun Sep  8 2013 Remi Collet <rpms@famillecollet.com> 4.0.6-1
- update to 4.0.6

* Tue Aug 27 2013 Remi Collet <rpms@famillecollet.com> 4.0.6-0.1.rc1
- update to 4.0.6-rc1

* Mon Aug  5 2013 Remi Collet <rpms@famillecollet.com> 4.0.5-1
- update to 4.0.5, security fixes for PMASA-2013-10

* Sun Jul 28 2013 Remi Collet <rpms@famillecollet.com> 4.0.4.2-1
- update to 4.0.4.2
  security fixes for PMASA-2013-8, PMASA-2013-9, PMASA-2013-11,
  PMASA-2013-12, PMASA-2013-13, PMASA-2013-14, PMASA-2013-15

* Mon Jul  1 2013 Remi Collet <rpms@famillecollet.com> 4.0.4.1-1
- update to 4.0.4.1 (security: PMASA-2013-7)

* Mon Jun 17 2013 Remi Collet <rpms@famillecollet.com> 4.0.4-1
- update to 4.0.4

* Wed Jun  5 2013 Remi Collet <rpms@famillecollet.com> 4.0.3-1
- update to 4.0.3

* Sat May 25 2013 Remi Collet <rpms@famillecollet.com> 4.0.2-1
- update to 4.0.2

* Sat May 18 2013 Remi Collet <rpms@famillecollet.com> 4.0.1-2
- only requires php-tcpdf-dejavu-sans-fonts

* Wed May 15 2013 Remi Collet <rpms@famillecollet.com> 4.0.1-1
- update to 4.0.1

* Mon May 13 2013 Remi Collet <rpms@famillecollet.com> 4.0.0-3
- upstream fixes for tcpdf 6.0

* Thu May  9 2013 Remi Collet <rpms@famillecollet.com> 4.0.0-2
- use system tcpdf library

* Fri May  3 2013 Remi Collet <rpms@famillecollet.com> 4.0.0-1
- update to 4.0.0 finale

* Sun Apr 28 2013 Remi Collet <rpms@famillecollet.com> 4.0.0-0.5.rc4
- 4.0.0-rc4

* Wed Apr 24 2013 Remi Collet <rpms@famillecollet.com> 4.0.0-0.4.rc3
- 4.0.0-rc3

* Tue Apr 16 2013 Remi Collet <rpms@famillecollet.com> 4.0.0-0.3.rc2
- 4.0.0-rc2

* Thu Apr  4 2013 Remi Collet <rpms@famillecollet.com> 4.0.0-0.2.rc1
- 4.0.0-rc1

* Wed Mar 27 2013 Remi Collet <rpms@famillecollet.com> 4.0.0-0.1.beta3
- 4.0.0-beta3
- remove all additional themes

* Fri Feb 15 2013 Remi Collet <rpms@famillecollet.com> 3.5.7-1
- Upstream released 3.5.7 (bugfix)
- patch for http://sourceforge.net/p/phpmyadmin/bugs/3828/
  MariaDB reported as MySQL

* Mon Jan 28 2013 Remi Collet <rpms@famillecollet.com> 3.5.6-1
- Upstream released 3.5.6 (bugfix)
- add theme metro 1.0

* Thu Dec 20 2012 Remi Collet <rpms@famillecollet.com> 3.5.5-1
- Upstream released 3.5.5 (bugfix)
- add theme cleanstrap 1.0

* Fri Nov 16 2012 Remi Collet <rpms@famillecollet.com> 3.5.4-1
- Upstream released 3.5.4 (bugfix)

* Fri Nov 16 2012 Remi Collet <rpms@famillecollet.com> 3.5.3-2
- update theme Darkblue/orange to 2.11
- add theme blueorange 1.0b

* Tue Oct  9 2012 Remi Collet <rpms@famillecollet.com> 3.5.3-1
- Upstream released 3.5.2.3 (security)
  fix PMASA-2012-6 and PMASA-2012-7

* Mon Sep  3 2012 Remi Collet <rpms@famillecollet.com> 3.5.2.2-1.1
- Obsoletes phpMyAdmin3

* Sun Aug 12 2012 Remi Collet <rpms@famillecollet.com> 3.5.2.2-1
- Upstream released 3.5.2.2 (security)
  fix PMASA-2012-4

* Fri Aug 03 2012 Remi Collet <rpms@famillecollet.com> 3.5.2.1-1
- Upstream released 3.5.2.1 (security)
  fix PMASA-2012-3

* Sun Jul 08 2012 Remi Collet <rpms@famillecollet.com> 3.5.2-1
- Upstream released 3.5.2 (bugfix release)

* Sun Jul 01 2012 Remi Collet <rpms@famillecollet.com> 3.5.2-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

* Fri May 04 2012 Remi Collet <rpms@famillecollet.com> 3.5.1-1
- Upstream released 3.5.1 (bugfix release)

* Tue Apr 10 2012 Remi Collet <rpms@famillecollet.com> 3.5.0-1
- Upstream released 3.5.0

* Wed Mar 28 2012 Remi Collet <rpms@famillecollet.com> 3.4.10.2-1
- Upstream released 3.4.10.2 (security)
  fix PMASA-2012-2

* Sat Feb 18 2012 Remi Collet <rpms@famillecollet.com> 3.4.10.1-1
- Upstream released 3.4.10.1 (security)
  fix PMASA-2012-1

* Tue Feb 14 2012 Remi Collet <rpms@famillecollet.com> 3.4.10-1
- Upstream released 3.4.10 (bugfix)

* Wed Dec 21 2011 Remi Collet <rpms@famillecollet.com> 3.4.9-1
- Upstream released 3.4.9 (bugfix and minor security)
  Fix PMASA-2011-19 and PMASA-2011-20

* Thu Dec 01 2011 Remi Collet <rpms@famillecollet.com> 3.4.8-1
- Upstream released 3.4.8 (security)
  Fix PMASA-2011-18
- remove patch merged upstream

* Sun Nov 13 2011 Remi Collet <rpms@famillecollet.com> 3.4.7.1-2
- add patch to avoid notice with php 5.4

* Sat Nov 12 2011 Remi Collet <rpms@famillecollet.com> 3.4.7.1-1
- Upstream released 3.4.7.1 (security)
  Fix PMASA-2011-17

* Sun Oct 23 2011 Remi Collet <rpms@famillecollet.com> 3.4.7-1
- Upstream released 3.4.7 (bugfix)
- add Paradice 3.4 theme

* Sun Oct 16 2011 Remi Collet <rpms@famillecollet.com> 3.4.6-1
- Upstream released 3.4.6 (security)
  Fix PMASA-2011-15 and PMASA-2011-16

* Wed Sep 14 2011 Remi Collet <rpms@famillecollet.com> 3.4.5-1
- Upstream released 3.4.5 (security)
  http://www.phpmyadmin.net/home_page/security/PMASA-2011-14.php

* Wed Aug 24 2011 Remi Collet <rpms@famillecollet.com> 3.4.4-1
- Upstream released 3.4.4 (security)
  http://www.phpmyadmin.net/home_page/security/PMASA-2011-13.php

* Sat Jul 23 2011 Remi Collet <rpms@famillecollet.com> 3.4.3.2-1
- Upstream released 3.4.3.2 (security)
  http://www.phpmyadmin.net/home_page/security/PMASA-2011-12.php
  http://www.phpmyadmin.net/home_page/security/PMASA-2011-9.php

* Sun Jul  3 2011 Remi Collet <rpms@famillecollet.com> 3.4.3.1-1
- Upstream released 3.4.3.1 (security)
  http://www.phpmyadmin.net/home_page/security/PMASA-2011-8.php
  http://www.phpmyadmin.net/home_page/security/PMASA-2011-5.php

* Mon Jun 27 2011 Remi Collet <rpms@famillecollet.com> 3.4.3-1
- Upstream released 3.4.3

* Fri Jun 10 2011 Remi Collet <rpms@famillecollet.com> 3.4.2-1
- Upstream released 3.4.2

* Thu May 26 2011 Remi Collet <rpms@famillecollet.com> 3.4.1-1
- Upstream released 3.4.1
  http://www.phpmyadmin.net/home_page/security/PMASA-2011-3.php
  http://www.phpmyadmin.net/home_page/security/PMASA-2011-4.php

* Wed May 11 2011 Remi Collet <rpms@famillecollet.com> 3.4.0-1
- Upstream released 3.4.0
- remove 3.3 themes and add 3.4 ones

* Sat Mar 19 2011 Remi Collet <rpms@famillecollet.com> 3.3.10-1
- Upstream released 3.3.10

* Fri Feb 11 2011 Remi Collet <rpms@famillecollet.com> 3.3.9.2-1
- Upstream released 3.3.9.2
  http://www.phpmyadmin.net/home_page/security/PMASA-2011-2.php

* Tue Feb 08 2011 Remi Collet <rpms@famillecollet.com> 3.3.9.1-1
- Upstream released 3.3.9.1
  http://www.phpmyadmin.net/home_page/security/PMASA-2011-1.php

* Sat Feb 05 2011 Remi Collet <rpms@famillecollet.com> 3.3.9-2
- upstream patches for CVE-2010-4480 and CVE-2010-4481

* Mon Jan 03 2011 Remi Collet <rpms@famillecollet.com> 3.3.9-1
- Upstream released 3.3.9
- update pmamhomme to 1.0b
- don't requires php (to allow nginx or lighttpd instead of apache)

* Mon Oct 25 2010 Remi Collet <rpms@famillecollet.com> 3.3.8.1-1
- Upstream released 3.3.8.1
- add pmamhomme 1.0 theme

* Mon Oct 25 2010 Remi Collet <rpms@famillecollet.com> 3.3.8-1
- Upstream released 3.3.8

* Tue Sep 07 2010 Remi Collet <rpms@famillecollet.com> 3.3.7-1
- Upstream released 3.3.7

* Sun Aug 29 2010 Remi Collet <rpms@famillecollet.com> 3.3.6-1
- Upstream released 3.3.6

* Fri Aug 20 2010 Remi Collet <rpms@famillecollet.com> 3.3.5.1-1
- Upstream released 3.3.5.1

* Mon Jul 26 2010 Remi Collet <rpms@famillecollet.com> 3.3.5-1
- Upstream released 3.3.5

* Tue Jun 29 2010 Remi Collet <rpms@famillecollet.com> 3.3.4-1
- Upstream released 3.3.4
- add Paradice 3.0b theme

* Mon May 10 2010 Remi Collet <rpms@famillecollet.com> 3.3.3-1.###.remi
- Upstream released 3.3.3
- clean old changelog entry (version < 3.0.0)

* Thu Mar 18 2010 Remi Collet <rpms@famillecollet.com> 3.3.1-1.###.remi
- Upstream released 3.3.1

* Mon Mar 08 2010 Remi Collet <rpms@famillecollet.com> 3.3.0-1.###.remi
- Upstream released 3.3.0
- remove obsolete 3.2 themes (clearview3, crimson_gray, grid, hillside, paradice)
- add new 3.3 themes (smooth_yellow, arctic_ocean)
- add some required extensions (gd, mcrypt)
- add upload, save, config dir in /var/lib/phpMyAdmin
- use vendor_config.php
- swicth to mysqli

* Sun Jan 10 2010 Remi Collet <rpms@famillecollet.com> 3.2.5-1.###.remi
- Upstream released 3.2.5 (bug fixes)
- build for EOL fedora and EL

* Wed Dec 02 2009 Remi Collet <rpms@famillecollet.com> 3.2.4-1.###.remi
- Upstream released 3.2.4 (bug fixes)
- build for EOL fedora and EL

* Fri Oct 30 2009 Remi Collet <rpms@famillecollet.com> 3.2.3-1.###.remi
- Upstream released 3.2.3 (bug fixes)
- build for EOL fedora and EL

* Tue Oct 13 2009 Remi Collet <rpms@famillecollet.com> 3.2.2.1-1.###.remi
- Upstream released 3.2.2.1 (security fix)
- build for EOL fedora and EL

* Sun Sep 13 2009 Remi Collet <rpms@famillecollet.com> 3.2.2-1.###.remi
- Upstream released 3.2.2 (bug fixes)
- build for EOL fedora and EL

* Tue Jun 30 2009 Remi Collet <rpms@famillecollet.com> 3.2.1-1.###.remi
- Upstream released 3.2.1 (bug fixes and a new language: Uzbek)
- build for EOL fedora and EL

* Tue Jun 30 2009 Remi Collet <rpms@famillecollet.com> 3.2.0.1-1.###.remi
- Upstream released 3.2.0.1 (security release)
- build for EOL fedora and EL

* Mon Jun 15 2009 Remi Collet <rpms@famillecollet.com> 3.2.0-1.###.remi
- Upstream released 3.2.0
- build for EOL fedora and EL
- add theme clearview3-3.1.zip
- add theme crimson_gray-3.1-3.2.zip
- add theme grid-2.11d.zip
- add theme hillside-3.0.zip
- add theme paradice-3.0a.zip

* Fri May 15 2009 Remi Collet <rpms@famillecollet.com> 3.1.5-1.###.remi
- Upstream released 3.1.5
- build for EOL fedora and EL

* Sat Apr 25 2009 Remi Collet <rpms@famillecollet.com> 3.1.4-1.###.remi
- Upstream released 3.1.4
- build for EOL fedora and EL

* Tue Apr 14 2009 Remi Collet <rpms@famillecollet.com> 3.1.3.2-1.###.remi
- Upstream released 3.1.3.1
- build for EOL fedora and EL

* Wed Mar 25 2009 Remi Collet <rpms@famillecollet.com> 3.1.3.1-1.###.remi
- build for EOL fedora and EL

* Wed Mar 25 2009 Robert Scheck <robert@fedoraproject.org> 3.1.3.1-1
- Upstream released 3.1.3.1 (#492066)

* Sun Mar 01 2009 Remi Collet <rpms@famillecollet.com> 3.1.3-1.###.remi
- Upstream released 3.1.3
- build for EOL fedora and EL

* Tue Jan 20 2009 Remi Collet <rpms@famillecollet.com> 3.1.2-1.###.remi
- rebuild for EOL fedora and EL

* Tue Jan 20 2009 Robert Scheck <robert@fedoraproject.org> 3.1.2-1
- Upstream released 3.1.2

* Fri Dec 12 2008 Remi Collet <rpms@famillecollet.com> 3.1.1-1.###.remi
- rebuild for EOL fedora and EL

* Thu Dec 11 2008 Robert Scheck <robert@fedoraproject.org> 3.1.1-1
- Upstream released 3.1.1 (#475954)

* Sat Nov 29 2008 Remi Collet <rpms@famillecollet.com> 3.1.0-1.###.remi
- rebuild for EOL fedora and EL

* Sat Nov 29 2008 Robert Scheck <robert@fedoraproject.org> 3.1.0-1
- Upstream released 3.1.0
- Replaced LocationMatch with Directory directive (#469451)

* Fri Oct 31 2008 Remi Collet <rpms@famillecollet.com> 3.0.1.1-1.###.remi
- rebuild for EOL fedora and EL

* Thu Oct 30 2008 Robert Scheck <robert@fedoraproject.org> 3.0.1.1-1
- Upstream released 3.0.1.1 (#468974)

* Thu Oct 23 2008 Remi Collet <rpms@famillecollet.com> 3.0.1-1.###.remi
- rebuild for EOL fedora

* Wed Oct 22 2008 Robert Scheck <robert@fedoraproject.org> 3.0.1-1
- Upstream released 3.0.1

* Sun Oct 19 2008 Robert Scheck <robert@fedoraproject.org> 3.0.0-1
- Upstream released 3.0.0

* Sun Oct 12 2008 Remi Collet <rpms@famillecollet.com> 3.0.0-1.fc#.remi
- update to 3.0.0
- update requires for php 5.2.0