Skip to content

Commit 5e2c05e

Browse files
committed
force qt5 RPM to depend on 2.15 libqt5pas, my Qt6 rpm, rev ver
1 parent 92597fe commit 5e2c05e

File tree

3 files changed

+30
-16
lines changed

3 files changed

+30
-16
lines changed

package/mk_rpm.sh

+22-8
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
# 2021/05/15
1818
# don't add gnome-shell-extension-appindicator to dependencies,
1919
# 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
2023
# ====================================================
2124

2225
PROD=tomboy-ng
@@ -30,11 +33,14 @@ function DoAlien () {
3033
ARCH="$1"
3134
rm -Rf "$RDIR"
3235
# Note, debs have a dash after initial version number, RPM an underscore
33-
if [ "$1" = amd64Qt ]; then
36+
if [ "$1" = amd64Qt5 ]; then
3437
# FILENAME="tomboy-ngQt_0.24b-0_amd64.deb"
3538
ARCH=x86_64
3639
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
3844
ARCH=x86_64
3945
fi
4046
if [ "$1" = i386 ]; then
@@ -43,7 +49,7 @@ function DoAlien () {
4349

4450
echo "--- RDIR=$RDIR and building for $1 using $FILENAME ---------"
4551
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
4753
# the os does not apprieciate that, not surprisingly.
4854
# This removes the %dir /
4955
sed -i "s/^Release:.*/Release: $PACKVER/" "$RDIR"/"$RDIR"-"$PACKVER".spec
@@ -59,11 +65,15 @@ function DoAlien () {
5965

6066
sed -i '10i Packager: David Bannon <tomboy-ng@bannons.id.au>' "$RDIR"/"$RDIR"-"$PACKVER".spec
6167
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
6370
gunzip "$RDIR"/usr/share/man/man1/tomboy-ng.1.gz
6471
bzip2 "$RDIR"/usr/share/man/man1/tomboy-ng.1
6572
sed -i "s/tomboy-ng.1.gz/tomboy-ng.1.bz2/" "$RDIR"/"$RDIR"-"$PACKVER".spec
6673
74+
75+
cp "$RDIR"/"$RDIR"-"$PACKVER".spec "$1".spec
76+
6777
echo "%changelog" >> "$RDIR"/"$RDIR"-"$PACKVER".spec
6878
CHDATE=`date +"%a %b %d %Y"`
6979
CHDATE="* $CHDATE David Bannon <tomboy-ng@bannons.id.au> $VERS"-"$PACKVER"
@@ -83,15 +93,19 @@ function DoAlien () {
8393
cp "$RDIR"-"$PACKVER".spec ../../"$RDIR"-"$PACKVER".spec-"$1"
8494
rpmbuild --target "$ARCH" --buildroot "$PWD" -bb "$RDIR"-"$PACKVER".spec
8595
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
89102
fi
90103
}
91104
92105
rm -f tom*.rpm
93106
# Must do the "non std" ones first, else have overwrite problems
94-
DoAlien "amd64Qt"
107+
DoAlien "amd64Qt5"
108+
DoAlien "amd64Qt6"
95109
DoAlien "i386"
96110
DoAlien "amd64"
97111
chown "$SUDO_USER" *.rpm

package/package.bash

+7-7
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function ModeParamArch () { # expects to be called like ARCH=$(ModeParamArch R
8181
echo "i386"
8282
;;
8383
ReleaseQT5)
84-
echo "amd64Qt"
84+
echo "amd64Qt5"
8585
;;
8686
ReleaseRasPi)
8787
echo "armhf"
@@ -90,11 +90,11 @@ function ModeParamArch () { # expects to be called like ARCH=$(ModeParamArch R
9090
echo "arm64"
9191
;;
9292
ReleaseQT6)
93-
echo "amd64Qt6"
94-
;;
95-
ReleaseLin32Qt5)
96-
echo "i386Qt5"
97-
;;
93+
echo "amd64Qt6"
94+
;;
95+
ReleaseLin32Qt5)
96+
echo "i386Qt5"
97+
;;
9898
esac
9999
}
100100

@@ -233,7 +233,7 @@ function DebianPackage () {
233233
"ReleaseQT6")
234234
# echo "++++++++++ Setting QT6 +++++++++"
235235
CTRL_ARCH="amd64"
236-
CTRL_DEPENDS="libqt6pas6, libc6 (>= 2.34), wmctrl, libnotify-bin, libqt6pas6 (>= 6.2.7)"
236+
CTRL_DEPENDS="libc6 (>= 2.34), wmctrl, libnotify-bin, libqt6pas6 (>= 6.2.7)"
237237
CTRL_RELEASE="Qt6 release."
238238
# we must force qt6 app to use qt6ct because of a bug in qt6.tsavedialog, no, not using Laz300
239239
# note ugly syntax, qt6 strips it off (and anything after it) before app sees it.

package/version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.36h
1+
0.36i

0 commit comments

Comments
 (0)