-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.el7
839 lines (770 loc) · 45 KB
/
Makefile.el7
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
#==============================================================#
# File : Makefile
# Desc : pgsty/pgsql-rpm repo shortcuts
# Ctime : 2024-07-28
# Mtime : 2024-08-10
# Path : Makefile
# Author : Ruohang Feng ([email protected])
# License : AGPLv3
#==============================================================#
###############################################################
# 1. Info #
###############################################################
default:
@echo "make <package_name>"
###############################################################
# 2. Deps #
###############################################################
deps: scws scws-install pg_filedump
#---------------------------------------------#
# scws (deps of zhparser)
#---------------------------------------------#
scws:
rm -rf ~/rpmbuild/RPMS/x86_64/scws*.rpm /tmp/pigsty-rpm/RPMS/scws*.rpm
QA_RPATHS=2 rpmbuild -ba ~/rpmbuild/SPECS/scws.spec
# scws is required when building zhparser
scws-install:
sudo yum remove -y scws || /bin/true
sudo rpm -ivh ~/rpmbuild/RPMS/x86_64/scws-1.2.3-1PIGSTY.el*.x86_64.rpm
#---------------------------------------------#
# pg_filedump (lz4-devel libzstd-devel)
#---------------------------------------------#
pg_filedump:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_filedump*.rpm;
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_filedump.spec
###############################################################
# 3. C/C++ Extensions #
###############################################################
batch1: zhparser hunspell pg_roaringbitmap pgjwt pg_sqlog pg_hashids postgres_shacrypt permuteseq vault pointcloud imgsmlr pg_similarity hydra age15 md5hash
#---------------------------------------------#
# zhparser (depend on scws)
#---------------------------------------------#
zhparser:
rm -rf ~/rpmbuild/RPMS/x86_64/zhparser*.rpm;
QA_RPATHS=2 rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/zhparser.spec
QA_RPATHS=2 rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/zhparser.spec
QA_RPATHS=2 rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/zhparser.spec
QA_RPATHS=2 rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/zhparser.spec
#---------------------------------------------#
# hunspell
#---------------------------------------------#
hunspell: hunspell_cs_cz hunspell_de_de hunspell_en_us hunspell_fr hunspell_ne_np hunspell_nl_nl hunspell_nn_no hunspell_pt_pt hunspell_ru_ru hunspell_ru_ru_aot
hunspell_cs_cz:
rm -rf ~/rpmbuild/RPMS/x86_64/hunspell_cs_cz*.rpm;
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/hunspell_cs_cz.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/hunspell_cs_cz.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/hunspell_cs_cz.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/hunspell_cs_cz.spec
hunspell_de_de:
rm -rf ~/rpmbuild/RPMS/x86_64/hunspell_de_de*.rpm;
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/hunspell_de_de.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/hunspell_de_de.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/hunspell_de_de.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/hunspell_de_de.spec
hunspell_en_us:
rm -rf ~/rpmbuild/RPMS/x86_64/hunspell_en_us*.rpm;
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/hunspell_en_us.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/hunspell_en_us.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/hunspell_en_us.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/hunspell_en_us.spec
hunspell_fr:
rm -rf ~/rpmbuild/RPMS/x86_64/hunspell_fr*.rpm;
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/hunspell_fr.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/hunspell_fr.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/hunspell_fr.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/hunspell_fr.spec
hunspell_ne_np:
rm -rf ~/rpmbuild/RPMS/x86_64/hunspell_ne_np*.rpm;
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/hunspell_ne_np.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/hunspell_ne_np.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/hunspell_ne_np.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/hunspell_ne_np.spec
hunspell_nl_nl:
rm -rf ~/rpmbuild/RPMS/x86_64/hunspell_nl_nl*.rpm;
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/hunspell_nl_nl.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/hunspell_nl_nl.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/hunspell_nl_nl.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/hunspell_nl_nl.spec
hunspell_nn_no:
rm -rf ~/rpmbuild/RPMS/x86_64/hunspell_nn_no*.rpm;
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/hunspell_nn_no.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/hunspell_nn_no.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/hunspell_nn_no.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/hunspell_nn_no.spec
hunspell_pt_pt:
rm -rf ~/rpmbuild/RPMS/x86_64/hunspell_pt_pt*.rpm;
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/hunspell_pt_pt.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/hunspell_pt_pt.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/hunspell_pt_pt.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/hunspell_pt_pt.spec
hunspell_ru_ru:
rm -rf ~/rpmbuild/RPMS/x86_64/hunspell_ru_ru*.rpm;
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/hunspell_ru_ru.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/hunspell_ru_ru.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/hunspell_ru_ru.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/hunspell_ru_ru.spec
hunspell_ru_ru_aot:
rm -rf ~/rpmbuild/RPMS/x86_64/hunspell_ru_ru_aot*.rpm;
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/hunspell_ru_ru_aot.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/hunspell_ru_ru_aot.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/hunspell_ru_ru_aot.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/hunspell_ru_ru_aot.spec
###############################################################
# Common Extensions #
###############################################################
#---------------------------------------------#
# pg_roaringbitmap
#---------------------------------------------#
pg_roaringbitmap:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_roaringbitmap*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_roaringbitmap.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_roaringbitmap.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_roaringbitmap.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_roaringbitmap.spec
#---------------------------------------------#
# pgjwt
#---------------------------------------------#
pgjwt:
rm -rf ~/rpmbuild/RPMS/x86_64/pgjwt*.rpm;
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pgjwt.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pgjwt.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pgjwt.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pgjwt.spec
#---------------------------------------------#
# pg_sqlog
#---------------------------------------------#
pg_sqlog:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_sqlog*.rpm;
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_sqlog.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_sqlog.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_sqlog.spec
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_sqlog.spec
#---------------------------------------------#
# pg_hashids
#---------------------------------------------#
pg_hashids:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_hashids*.rpm;
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_hashids.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_hashids.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_hashids.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_hashids.spec
#---------------------------------------------#
# postgres_shacrypt
#---------------------------------------------#
postgres_shacrypt:
rm -rf ~/rpmbuild/RPMS/x86_64/postgres_shacrypt*.rpm;
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/postgres_shacrypt.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/postgres_shacrypt.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/postgres_shacrypt.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/postgres_shacrypt.spec
#---------------------------------------------#
# permuteseq
#---------------------------------------------#
permuteseq:
rm -rf ~/rpmbuild/RPMS/x86_64/permuteseq*.rpm;
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/permuteseq.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/permuteseq.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/permuteseq.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/permuteseq.spec
#---------------------------------------------#
# vault
#---------------------------------------------#
vault:
rm -rf ~/rpmbuild/RPMS/x86_64/vault*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/vault.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/vault.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/vault.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/vault.spec
#---------------------------------------------#
# imgsmlr
#---------------------------------------------#
imgsmlr:
rm -rf ~/rpmbuild/RPMS/x86_64/imgsmlr*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/imgsmlr.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/imgsmlr.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/imgsmlr.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/imgsmlr.spec
#---------------------------------------------#
# pg_similarity
#---------------------------------------------#
pg_similarity:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_similarity*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_similarity.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_similarity.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_similarity.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_similarity.spec
#---------------------------------------------#
# hydra (lz4-devel libzstd-devel)
#---------------------------------------------#
hydra:
rm -rf ~/rpmbuild/RPMS/x86_64/hydra*.rpm;
PATH=/usr/pgsql-13/bin:/usr/bin/:$PATH rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/hydra.spec
PATH=/usr/pgsql-14/bin:/usr/bin/:$PATH rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/hydra.spec
PATH=/usr/pgsql-15/bin:/usr/bin/:$PATH rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/hydra.spec
#---------------------------------------------#
# apache-age (dnf install perl perl-FindBin)
# yum install gcc glibc glib-common readline readline-devel zlib zlib-devel flex bison
#---------------------------------------------#
age15:
rm -rf ~/rpmbuild/RPMS/x86_64/age*.rpm;
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/age15.spec
#---------------------------------------------#
# md5hash
#---------------------------------------------#
md5hash:
rm -rf ~/rpmbuild/RPMS/x86_64/md5hash*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/md5hash.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/md5hash.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/md5hash.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/md5hash.spec
###############################################################
# The 2nd Batch #
###############################################################
batch2: preprepare first_last_agg pgpcre icu_ext asn1oid numeral pg_rational \
q3c pgsphere pgfaceting mimeo table_log pg_snakeoil pgextwlist toastinfo # pg_rrule
#---------------------------------------------#
# preprepare
#---------------------------------------------#
preprepare:
rm -rf ~/rpmbuild/RPMS/x86_64/preprepare*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/preprepare.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/preprepare.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/preprepare.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/preprepare.spec
#---------------------------------------------#
# first_last_agg
#---------------------------------------------#
first_last_agg:
rm -rf ~/rpmbuild/RPMS/x86_64/first_last_agg*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/first_last_agg.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/first_last_agg.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/first_last_agg.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/first_last_agg.spec
#---------------------------------------------#
# pgpcre
#---------------------------------------------#
pgpcre:
rm -rf ~/rpmbuild/RPMS/x86_64/pgpcre*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pgpcre.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pgpcre.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pgpcre.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pgpcre.spec
#---------------------------------------------#
# icu_ext
#---------------------------------------------#
icu_ext:
rm -rf ~/rpmbuild/RPMS/x86_64/icu_ext*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/icu_ext.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/icu_ext.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/icu_ext.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/icu_ext.spec
#---------------------------------------------#
# asn1oid
#---------------------------------------------#
asn1oid:
rm -rf ~/rpmbuild/RPMS/x86_64/asn1oid*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/asn1oid.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/asn1oid.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/asn1oid.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/asn1oid.spec
#---------------------------------------------#
# numeral
#---------------------------------------------#
numeral:
rm -rf ~/rpmbuild/RPMS/x86_64/numeral*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/numeral.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/numeral.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/numeral.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/numeral.spec
#---------------------------------------------#
# pg_rational
#---------------------------------------------#
pg_rational:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_rational*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_rational.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_rational.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_rational.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_rational.spec
#---------------------------------------------#
# q3c
#---------------------------------------------#
q3c:
rm -rf ~/rpmbuild/RPMS/x86_64/q3c*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/q3c.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/q3c.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/q3c.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/q3c.spec
#---------------------------------------------#
# pgsphere
#---------------------------------------------#
pgsphere:
rm -rf ~/rpmbuild/RPMS/x86_64/pgsphere*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pgsphere.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pgsphere.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pgsphere.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pgsphere.spec
#---------------------------------------------#
# pgfaceting
#---------------------------------------------#
pgfaceting:
rm -rf ~/rpmbuild/RPMS/x86_64/pgfaceting*.rpm;
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pgfaceting.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pgfaceting.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pgfaceting.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pgfaceting.spec
#---------------------------------------------#
# mimeo
#---------------------------------------------#
mimeo:
rm -rf ~/rpmbuild/RPMS/x86_64/mimeo*.rpm;
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/mimeo.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/mimeo.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/mimeo.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/mimeo.spec
#---------------------------------------------#
# table_log
#---------------------------------------------#
table_log:
rm -rf ~/rpmbuild/RPMS/x86_64/table_log*.rpm;
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/table_log.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/table_log.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/table_log.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/table_log.spec
#---------------------------------------------#
# pg_snakeoil
#---------------------------------------------#
pg_snakeoil:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_snakeoil*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_snakeoil.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_snakeoil.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_snakeoil.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_snakeoil.spec
#---------------------------------------------#
# pgextwlist
#---------------------------------------------#
pgextwlist:
rm -rf ~/rpmbuild/RPMS/x86_64/pgextwlist*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pgextwlist.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pgextwlist.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pgextwlist.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pgextwlist.spec
#---------------------------------------------#
# toastinfo
#---------------------------------------------#
toastinfo:
rm -rf ~/rpmbuild/RPMS/x86_64/toastinfo*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/toastinfo.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/toastinfo.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/toastinfo.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/toastinfo.spec
###############################################################
# The 3rd Batch #
###############################################################
# the third batch is missing packages in PGDG repo (with un-aligned versions)
###############################################################
# The 4th Batch #
###############################################################
batch4: pg_orphaned pgcozy decoder_raw pg_failover_slots log_fdw index_advisor pg_financial pg_savior \
aggs_for_vecs pg_base36 pg_base62 pg_envvar pg_html5_email_address lower_quantile pg_timeit quantile pg_random \
session_variable smlar sslutils pg_mon chkpass pg_currency pg_emailaddr pg_uri cryptint floatvec pg_auditor noset redis_fdw
pg_orphaned:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_orphaned*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_orphaned.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_orphaned.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_orphaned.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_orphaned.spec
pgcozy:
rm -rf ~/rpmbuild/RPMS/x86_64/pgcozy*.rpm
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pgcozy.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pgcozy.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pgcozy.spec
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pgcozy.spec
decoder_raw:
rm -rf ~/rpmbuild/RPMS/x86_64/decoder_raw*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/decoder_raw.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/decoder_raw.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/decoder_raw.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/decoder_raw.spec
pg_failover_slots:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_failover_slots*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_failover_slots.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_failover_slots.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_failover_slots.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_failover_slots.spec
log_fdw:
rm -rf ~/rpmbuild/RPMS/x86_64/log_fdw*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/log_fdw.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/log_fdw.spec
index_advisor:
rm -rf ~/rpmbuild/RPMS/x86_64/index_advisor*.rpm
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/index_advisor.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/index_advisor.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/index_advisor.spec
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/index_advisor.spec
pg_financial:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_financial*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_financial.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_financial.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_financial.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_financial.spec
pg_savior:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_savior*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_savior.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_savior.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_savior.spec
aggs_for_vecs:
rm -rf ~/rpmbuild/RPMS/x86_64/aggs_for_vecs*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/aggs_for_vecs.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/aggs_for_vecs.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/aggs_for_vecs.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/aggs_for_vecs.spec
pg_base36:
rm -rf ~/rpmbuild/RPMS/x86_64/base36*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_base36.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_base36.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_base36.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_base36.spec
pg_base62:
rm -rf ~/rpmbuild/RPMS/x86_64/base62*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_base62.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_base62.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_base62.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_base62.spec
pg_envvar:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_envvar*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_envvar.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_envvar.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_envvar.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_envvar.spec
pg_html5_email_address:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_html5_email_address*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_html5_email_address.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_html5_email_address.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_html5_email_address.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_html5_email_address.spec
lower_quantile:
rm -rf ~/rpmbuild/RPMS/x86_64/lower_quantile*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/lower_quantile.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/lower_quantile.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/lower_quantile.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/lower_quantile.spec
pg_timeit:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_timeit*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_timeit.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_timeit.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_timeit.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_timeit.spec
quantile:
rm -rf ~/rpmbuild/RPMS/x86_64/quantile*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/quantile.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/quantile.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/quantile.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/quantile.spec
pg_random:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_random*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_random.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_random.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_random.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_random.spec
session_variable:
rm -rf ~/rpmbuild/RPMS/x86_64/session_variable*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/session_variable.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/session_variable.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/session_variable.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/session_variable.spec
smlar:
rm -rf ~/rpmbuild/RPMS/x86_64/smlar*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/smlar.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/smlar.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/smlar.spec
sslutils:
rm -rf ~/rpmbuild/RPMS/x86_64/sslutils*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/sslutils.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/sslutils.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/sslutils.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/sslutils.spec
pg_mon:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_mon*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_mon.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_mon.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_mon.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_mon.spec
chkpass:
rm -rf ~/rpmbuild/RPMS/x86_64/chkpass*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/chkpass.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/chkpass.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/chkpass.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/chkpass.spec
pg_currency:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_currency*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_currency.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_currency.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_currency.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_currency.spec
pg_emailaddr:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_emailaddr*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_emailaddr.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_emailaddr.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_emailaddr.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_emailaddr.spec
pg_uri:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_uri*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_uri.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_uri.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_uri.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_uri.spec
cryptint:
rm -rf ~/rpmbuild/RPMS/x86_64/cryptint*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/cryptint.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/cryptint.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/cryptint.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/cryptint.spec
floatvec:
rm -rf ~/rpmbuild/RPMS/x86_64/floatvec*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/floatvec.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/floatvec.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/floatvec.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/floatvec.spec
pg_auditor:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_auditor*.rpm
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_auditor.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_auditor.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_auditor.spec
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_auditor.spec
noset:
rm -rf ~/rpmbuild/RPMS/x86_64/noset*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/noset.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/noset.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/noset.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/noset.spec
redis_fdw:
rm -rf ~/rpmbuild/RPMS/x86_64/redis_fdw*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/redis_fdw.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/redis_fdw.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/redis_fdw.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/redis_fdw.spec
###############################################################
# 5th Batch Extension #
###############################################################
batch5: aggs_for_arrays pgqr pg_zstd url_encode pg_geohash pg_meta \
pg_arraymath pagevis pg_ecdsa pg_cheat_funcs acl pg_crash pg_math
sequential_uuids pgnodemx pg_protobuf pg_country pg_fio aws_s3 firebird_fdw
# pg_redis_pubsub kafka_fdw pg_hashlib
aggs_for_arrays:
rm -rf ~/rpmbuild/RPMS/x86_64/aggs_for_arrays*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/aggs_for_arrays.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/aggs_for_arrays.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/aggs_for_arrays.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/aggs_for_arrays.spec
pgqr:
rm -rf ~/rpmbuild/RPMS/x86_64/pgqr*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pgqr.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pgqr.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pgqr.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pgqr.spec
pg_zstd:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_zstd*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_zstd.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_zstd.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_zstd.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_zstd.spec
url_encode:
rm -rf ~/rpmbuild/RPMS/x86_64/url_encode*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/url_encode.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/url_encode.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/url_encode.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/url_encode.spec
pg_geohash:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_geohash*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_geohash.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_geohash.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_geohash.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_geohash.spec
pg_meta:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_meta*.rpm
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_meta.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_meta.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_meta.spec
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_meta.spec
pg_redis_pubsub:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_redis_pubsub*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_redis_pubsub.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_redis_pubsub.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_redis_pubsub.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_redis_pubsub.spec
pg_arraymath:
rm -rf ~/rpmbuild/RPMS/x86_64/array_math*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_arraymath.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_arraymath.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_arraymath.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_arraymath.spec
pagevis:
rm -rf ~/rpmbuild/RPMS/x86_64/pagevis*.rpm
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pagevis.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pagevis.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pagevis.spec
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pagevis.spec
pg_ecdsa:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_ecdsa*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_ecdsa.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_ecdsa.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_ecdsa.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_ecdsa.spec
pg_cheat_funcs:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_cheat_funcs*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_cheat_funcs.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_cheat_funcs.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_cheat_funcs.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_cheat_funcs.spec
acl:
rm -rf ~/rpmbuild/RPMS/x86_64/acl*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/acl.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/acl.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/acl.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/acl.spec
pg_crash:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_crash*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_crash.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_crash.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_crash.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_crash.spec
pg_math:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_math*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_math.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_math.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_math.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_math.spec
firebird_fdw:
rm -rf ~/rpmbuild/RPMS/x86_64/firebird_fdw*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/firebird_fdw.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/firebird_fdw.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/firebird_fdw.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/firebird_fdw.spec
sequential_uuids:
rm -rf ~/rpmbuild/RPMS/x86_64/sequential_uuids*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/sequential_uuids.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/sequential_uuids.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/sequential_uuids.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/sequential_uuids.spec
kafka_fdw:
rm -rf ~/rpmbuild/RPMS/x86_64/kafka_fdw*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/kafka_fdw.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/kafka_fdw.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/kafka_fdw.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/kafka_fdw.spec
pgnodemx:
rm -rf ~/rpmbuild/RPMS/x86_64/pgnodemx*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pgnodemx.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pgnodemx.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pgnodemx.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pgnodemx.spec
pg_hashlib:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_hashlib*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_hashlib.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_hashlib.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_hashlib.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_hashlib.spec
pg_protobuf:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_protobuf*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_protobuf.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_protobuf.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_protobuf.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_protobuf.spec
pg_country:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_country*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_country.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_country.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_country.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_country.spec
pg_fio:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_fio*.rpm
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_fio.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_fio.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_fio.spec
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_fio.spec
aws_s3:
rm -rf ~/rpmbuild/RPMS/x86_64/aws_s3*.rpm
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/aws_s3.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/aws_s3.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/aws_s3.spec
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/aws_s3.spec
###############################################################
# 4. Legacy #
###############################################################
# only make legacy pkg for el7, el8/el9 has PGDG included version
legacy: pg_tle pg_bigm pgsql_http pgsql_gzip pg_dirtyread pointcloud
#---------------------------------------------#
# pg_tle (deps: krb5-devel) rename to v1.4.0
#---------------------------------------------#
pg_tle:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_tle*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_tle.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_tle.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_tle.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_tle.spec
#---------------------------------------------#
# pg_bigm (included in PGDG, obsolete)
#---------------------------------------------#
pg_bigm:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_bigm*.rpm;
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_bigm.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_bigm.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_bigm.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_bigm.spec
#---------------------------------------------#
# pgsql_http (included in PGDG, obsolete)
#---------------------------------------------#
pgsql_http:
rm -rf ~/rpmbuild/RPMS/x86_64/pgsql_http*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pgsql_http.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pgsql_http.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pgsql_http.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pgsql_http.spec
#---------------------------------------------#
# pgsql_gzip (included in PGDG, obsolete)
#---------------------------------------------#
pgsql_gzip:
rm -rf ~/rpmbuild/RPMS/x86_64/pgsql_gzip*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pgsql_gzip.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pgsql_gzip.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pgsql_gzip.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pgsql_gzip.spec
#---------------------------------------------#
# pg_dirtyread (included in PGDG, obsolete)
#---------------------------------------------#
pg_dirtyread:
rm -rf ~/rpmbuild/RPMS/x86_64/pg_dirtyread*.rpm;
rpmbuild --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pg_dirtyread.spec
rpmbuild --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pg_dirtyread.spec
rpmbuild --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pg_dirtyread.spec
rpmbuild --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_dirtyread.spec
#---------------------------------------------#
# pointcloud (included in PGDG, obsolete)
#---------------------------------------------#
pointcloud:
rm -rf ~/rpmbuild/RPMS/x86_64/pointcloud*.rpm;
rpmbuild --without debuginfo --define "pgmajorversion 12" -ba ~/rpmbuild/SPECS/pointcloud.spec
rpmbuild --without debuginfo --define "pgmajorversion 13" -ba ~/rpmbuild/SPECS/pointcloud.spec
rpmbuild --without debuginfo --define "pgmajorversion 14" -ba ~/rpmbuild/SPECS/pointcloud.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pointcloud.spec
###############################################################
# RPM & SRPM #
###############################################################
ls-rpm:
ls -alh ~/rpmbuild/RPMS/x86_64/
ls-srpm:
ls -alh ~/rpmbuild/SRPMS/
rm-rpm:
rm -rf ~/rpmbuild/RPMS/*
rm-srpm:
rm -rf ~/rpmbuild/SRPMS/*
###############################################################
# Inventory #
###############################################################
.PHONY: default deps common debian \
prepare scws scws-install \
zhparser hunspell hunspell_cs_cz hunspell_de_de hunspell_en_us hunspell_fr hunspell_ne_np hunspell_nl_nl hunspell_nn_no hunspell_pt_pt hunspell_ru_ru hunspell_ru_ru_aot \
first_last_agg pgpcre icu_ext asn1oid numeral pg_rational q3c pgsphere pg_rrule pgfaceting mimeo tablelog pg_snakeoil pgextwlist toastinfo \
pg_roaringbitmap pgjwt pg_sqlog pg_proctab pg_hashids postgres_shacrypt permuteseq vault pointcloud imgsmlr pg_similarity hydra age15 md5hash \
legacy pg_tle pg_bigm pgsql_http pgsql_gzip pg_dirtyread pointcloud \
ls-rpm ls-srpm rm-rpm rm-srpm