17
17
# 2021/05/15
18
18
# don't add gnome-shell-extension-appindicator to dependencies,
19
19
# it pulls in half of Gnome desktop, non gnome users would hate me.
20
+ # 2023-12-13
21
+ # Force a Minium libqt5pas of 1.2.15, this will need constant attention.
22
+ # Add a qt5 amd64 rpm
20
23
# ====================================================
21
24
22
25
PROD=tomboy-ng
@@ -30,11 +33,14 @@ function DoAlien () {
30
33
ARCH=" $1 "
31
34
rm -Rf " $RDIR "
32
35
# Note, debs have a dash after initial version number, RPM an underscore
33
- if [ " $1 " = amd64Qt ]; then
36
+ if [ " $1 " = amd64Qt5 ]; then
34
37
# FILENAME="tomboy-ngQt_0.24b-0_amd64.deb"
35
38
ARCH=x86_64
36
39
fi
37
- if [ " $1 " = amd64 ]; then
40
+ if [ " $1 " = amd64Qt6 ]; then
41
+ ARCH=x86_64
42
+ fi
43
+ if [ " $1 " = amd64 ]; then # the gtk2 version
38
44
ARCH=x86_64
39
45
fi
40
46
if [ " $1 " = i386 ]; then
@@ -43,7 +49,7 @@ function DoAlien () {
43
49
44
50
echo " --- RDIR=$RDIR and building for $1 using $FILENAME ---------"
45
51
alien -r -g -v -k " $FILENAME "
46
- # Alien inserts requests the package create / and /usr/bin and
52
+ # Alien requests the package create / and /usr/bin and
47
53
# the os does not apprieciate that, not surprisingly.
48
54
# This removes the %dir /
49
55
sed -i " s/^Release:.*/Release: $PACKVER /" " $RDIR " /" $RDIR " -" $PACKVER " .spec
@@ -59,11 +65,15 @@ function DoAlien () {
59
65
60
66
sed -i ' 10i Packager: David Bannon <tomboy-ng@bannons.id.au>' " $RDIR " /" $RDIR " -" $PACKVER " .spec
61
67
sed -i ' 11i URL: https://githup.com/tomboy/tomboy-ng' " $RDIR " /" $RDIR " -" $PACKVER " .spec
62
-
68
+ echo " ------------ Setting Minium libqt5pas to 1.2.15 ---------------------------
69
+ sed -i '12i Requires: libqt5pas >= 1.2.15' " $RDIR " /" $RDIR " -" $PACKVER " .spec
63
70
gunzip " $RDIR " /usr/share/man/man1/tomboy-ng.1.gz
64
71
bzip2 " $RDIR " /usr/share/man/man1/tomboy-ng.1
65
72
sed -i " s/tomboy-ng.1.gz/tomboy-ng.1.bz2/" " $RDIR " /" $RDIR " -" $PACKVER " .spec
66
73
74
+
75
+ cp " $RDIR " /" $RDIR " -" $PACKVER " .spec " $1 " .spec
76
+
67
77
echo " %changelog" >> " $RDIR " /" $RDIR " -" $PACKVER " .spec
68
78
CHDATE=` date +" %a %b %d %Y" `
69
79
CHDATE=" * $CHDATE David Bannon < tomboy-ng@bannons.id.au> $VERS " -" $PACKVER "
@@ -83,15 +93,19 @@ function DoAlien () {
83
93
cp " $RDIR " -" $PACKVER " .spec ../../" $RDIR " -" $PACKVER " .spec-" $1 "
84
94
rpmbuild --target " $ARCH " --buildroot " $PWD " -bb " $RDIR " -" $PACKVER " .spec
85
95
cd ..
86
- # if its a Qt one, rename it so it does not get overwritten subsquently
87
- if [ " $1 " = amd64Qt ]; then
88
- mv " $RDIR " -" $PACKVER " ." $ARCH " .rpm " $PROD " Qt-" $VERS " -" $PACKVER " ." $ARCH " .rpm
96
+ # if its a Qt5 one, rename it so it does not get overwritten subsquently
97
+ if [ " $1 " = amd64Qt5 ]; then
98
+ mv " $RDIR " -" $PACKVER " ." $ARCH " .rpm " $PROD " Qt5-" $VERS " -" $PACKVER " ." $ARCH " .rpm
99
+ fi
100
+ if [ " $1 " = amd64Qt6 ]; then
101
+ mv " $RDIR " -" $PACKVER " ." $ARCH " .rpm " $PROD " Qt6-" $VERS " -" $PACKVER " ." $ARCH " .rpm
89
102
fi
90
103
}
91
104
92
105
rm -f tom*.rpm
93
106
# Must do the " non std" ones first, else have overwrite problems
94
- DoAlien " amd64Qt"
107
+ DoAlien " amd64Qt5"
108
+ DoAlien " amd64Qt6"
95
109
DoAlien " i386"
96
110
DoAlien " amd64"
97
111
chown " $SUDO_USER " *.rpm
0 commit comments