Skip to content

Commit 44e95ab

Browse files
committed
Version 6.9.7
1 parent e6f9f23 commit 44e95ab

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+360
-205
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ JavaScript pop-ups and slideshow for [Redmine](https://github.com/redmine/redmin
66

77
For more information, go to https://www.luigifab.fr/apijs and https://www.luigifab.fr/redmine/apijs (IPv6 is required) and https://www.redmine.org/plugins/apijs.
88

9-
- Current version: 6.9.6 (01/01/2024)
10-
- Compatibility: Redmine 1.4 / 2.x / 3.x / 4.x / 5.x, Python 3.3+
9+
- Current version: 6.9.7 (04/04/2025)
10+
- Compatibility: Redmine 1.4 / 2.x / 3.x / 4.x / 5.x / 6.x, Python 3.3+
1111
- Client compatibility: Firefox 36+, Chrome 32+, Opera 19+, Edge 16+, Safari 9+
1212
- License: GNU GPL 2.0+
1313

debian/changelog

Lines changed: 0 additions & 5 deletions
This file was deleted.

debian/deb.sh

Lines changed: 0 additions & 101 deletions
This file was deleted.

debian/lintian

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pkgname=redmine-plugin-apijs
2-
pkgver=6.9.6
2+
pkgver=6.9.7
33
pkgrel=1
44
pkgdesc="Plugin for Redmine to display a gallery from attachments"
55
arch=('any')
@@ -8,7 +8,7 @@ license=('GPL2' 'MIT' 'OFL')
88
depends=('redmine' 'python-pillow' 'scour' 'perl-image-exiftool')
99
optdepends=('ffmpegthumbnailer: for video thumbnail support')
1010
source=("https://github.com/luigifab/redmine-apijs/archive/v${pkgver}/redmine-apijs-${pkgver}.tar.gz")
11-
md5sums=("...")
11+
sha256sums=("...")
1212

1313
prepare() {
1414
mv "redmine-apijs-$pkgver" "$pkgname-$pkgver"
@@ -19,15 +19,14 @@ prepare() {
1919
package() {
2020
cd "$pkgname-$pkgver"
2121

22-
# the entire source code is GPL-2.0-or-later, except lib/useragentparser.rb which is MIT and assets/fonts/apijs/fontello.woff(2) which is OFL-1.1
23-
install -dm 0755 "$pkgdir/usr/share/webapps/redmine/lib/plugins/redmine_apijs/"
24-
cp -a src/* "$pkgdir/usr/share/webapps/redmine/lib/plugins/redmine_apijs/"
25-
chmod -R o= "$pkgdir/usr/share/webapps/redmine/lib/plugins/redmine_apijs/"
26-
chmod +x "$pkgdir/usr/share/webapps/redmine/lib/plugins/redmine_apijs/lib/image.py"
22+
# the entire source code is GPL-2.0-or-later, except lib/useragentparser.rb which is MIT,
23+
# and assets/fonts/apijs/fontello.woff(2) which is OFL-1.1
24+
install -dm 755 "$pkgdir/usr/share/webapps/redmine/lib/plugins/redmine_apijs/"
25+
cp -a src/* "$pkgdir/usr/share/webapps/redmine/lib/plugins/redmine_apijs/"
26+
chmod -R o= "$pkgdir/usr/share/webapps/redmine/lib/plugins/redmine_apijs/"
27+
chmod +x "$pkgdir/usr/share/webapps/redmine/lib/plugins/redmine_apijs/lib/image.py"
2728

28-
mkdir -p "$pkgdir/usr/share/doc/$pkgname/"
29-
install -pm 644 README.md "$pkgdir/usr/share/doc/$pkgname/"
30-
31-
mkdir -p "$pkgdir/usr/share/licenses/$pkgname/"
32-
install -pm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/"
29+
install -Dpm 644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
30+
#install -Dpm 644 MIT "$pkgdir/usr/share/licenses/$pkgname/MIT"
31+
#install -Dpm 644 OFL "$pkgdir/usr/share/licenses/$pkgname/OFL"
3332
}

scripts/debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
redmine-plugin-apijs (6.9.7-1) experimental; urgency=low
2+
3+
* Initial Debian package release (Closes: #959426)
4+
5+
-- Fabrice Creuzot <[email protected]> Fri, 04 Apr 2025 20:00:00 +0000

debian/control renamed to scripts/debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Priority: optional
44
Maintainer: Fabrice Creuzot <[email protected]>
55
Build-Depends: debhelper-compat (= 13)
66
Rules-Requires-Root: no
7-
Standards-Version: 4.6.2
7+
Standards-Version: 4.7.1
88
Homepage: https://github.com/luigifab/redmine-apijs
99
Vcs-Browser: https://github.com/luigifab/redmine-apijs
1010
Vcs-Git: https://github.com/luigifab/redmine-apijs.git

debian/copyright renamed to scripts/debian/copyright

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Source: https://github.com/luigifab/redmine-apijs
33
Upstream-Contact: Fabrice Creuzot <[email protected]>
44

55
Files: *
6-
Copyright: 2008-2024 Fabrice Creuzot (luigifab) <[email protected]>
6+
Copyright: 2008-2025 Fabrice Creuzot (luigifab) <[email protected]>
77
License: GPL-2+
88

99
Files: */assets/fonts/apijs/fontello.woff */assets/fonts/apijs/fontello.woff2
@@ -14,8 +14,8 @@ License: SIL-1.1
1414

1515
Files: */lib/useragentparser.rb
1616
Copyright:
17-
2013-2023 Jesse G. Donat <[email protected]>
18-
2019-2023 Fabrice Creuzot (luigifab) <[email protected]>
17+
2013-2024 Jesse G. Donat <[email protected]>
18+
2019-2025 Fabrice Creuzot (luigifab) <[email protected]>
1919
License: Expat
2020

2121
License: GPL-2+

scripts/debian/deb.sh

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
#!/bin/bash
2+
# Debian: sudo apt install dpkg-dev devscripts dh-make
3+
4+
5+
cd "$(dirname "$0")"
6+
version="6.9.7"
7+
8+
9+
mkdir builder
10+
rm -rf builder/*
11+
12+
# copy to a tmp directory
13+
if [ true ]; then
14+
cd builder
15+
wget https://github.com/luigifab/redmine-apijs/archive/v$version/redmine-apijs-$version.tar.gz
16+
tar xzf redmine-apijs-$version.tar.gz
17+
cd ..
18+
else
19+
temp=redmine-apijs-$version
20+
mkdir /tmp/$temp
21+
cp -r ../../* /tmp/$temp/
22+
rm -rf /tmp/$temp/scripts/*/builder/
23+
24+
mv /tmp/$temp builder/
25+
cp /usr/share/common-licenses/GPL*2 builder/$temp/LICENSE
26+
27+
cd builder/
28+
tar czf $temp.tar.gz $temp
29+
cd ..
30+
fi
31+
32+
33+
# create packages for Debian and Ubuntu
34+
for serie in experimental plucky oracular noble jammy focal bionic xenial trusty; do
35+
36+
printf "\n\n#################################################################### $serie ##\n\n"
37+
if [ $serie = "experimental" ]; then
38+
# copy for Ubuntu
39+
cp -a builder/redmine-apijs-$version/ builder/redmine-apijs-$version+src/
40+
cd builder/redmine-apijs-$version/
41+
elif [ $serie = "unstable" ]; then
42+
rm -rf builder/redmine-apijs-$version/
43+
cp -a builder/redmine-apijs-$version+src/ builder/redmine-apijs-$version/
44+
cd builder/redmine-apijs-$version/
45+
else
46+
cp -a builder/redmine-apijs-$version+src/ builder/redmine-apijs+$serie-$version/
47+
cd builder/redmine-apijs+$serie-$version/
48+
fi
49+
50+
dh_make -s -y -f ../redmine-apijs-$version.tar.gz -p redmine-plugin-apijs
51+
52+
rm -rf debian/*/*ex debian/*ex debian/*EX debian/README* debian/*doc*
53+
cp scripts/debian/* debian/
54+
rm -f debian/deb.sh
55+
mv debian/metadata debian/upstream/metadata
56+
mv debian/lintian debian/redmine-plugin-apijs.lintian-overrides
57+
58+
59+
if [ $serie = "experimental" ]; then
60+
mv debian/control.debian debian/control
61+
mv debian/changelog.debian debian/changelog
62+
echo "=========================== buildpackage ($serie) =="
63+
dpkg-buildpackage -us -uc
64+
else
65+
# debhelper: experimental:13 focal/mx19/mx21:12 bionic:9 xenial:9 trusty:9
66+
if [ $serie = "unstable" ]; then
67+
mv debian/control.debian debian/control
68+
69+
elif [ $serie = "mx19" ] || [ $serie = "mx21" ]; then
70+
mv debian/control.mx debian/control
71+
sed -i 's/debhelper-compat (= 13)/debhelper-compat (= 12)/g' debian/control
72+
elif [ $serie = "focal" ]; then
73+
mv debian/control.ubuntu debian/control
74+
sed -i 's/debhelper-compat (= 13)/debhelper-compat (= 12)/g' debian/control
75+
elif [ $serie = "bionic" ]; then
76+
mv debian/control.ubuntu debian/control
77+
78+
sed -i 's/debhelper-compat (= 13)/debhelper-compat (= 9)/g' debian/control
79+
elif [ $serie = "xenial" ]; then
80+
mv debian/control.ubuntu debian/control
81+
82+
sed -i 's/debhelper-compat (= 13)/debhelper (>= 9)/g' debian/control
83+
sed -i ':a;N;$!ba;s/Rules-Requires-Root: no\n//g' debian/control
84+
echo 9 > debian/compat
85+
elif [ $serie = "trusty" ]; then
86+
mv debian/control.ubuntu debian/control
87+
88+
89+
sed -i 's/debhelper-compat (= 13)/debhelper (>= 9)/g' debian/control
90+
sed -i ':a;N;$!ba;s/Rules-Requires-Root: no\n//g' debian/control
91+
echo 9 > debian/compat
92+
else
93+
mv debian/control.ubuntu debian/control
94+
fi
95+
if [ $serie = "mx23" ] || [ $serie = "mx21" ] || [ $serie = "mx19" ]; then
96+
mv debian/changelog.mx debian/changelog
97+
sed -i 's/-1) /-1~'$serie'+1) /' debian/changelog
98+
elif [ $serie = "unstable" ]; then
99+
mv debian/changelog.debian debian/changelog
100+
else
101+
mv debian/changelog.ubuntu debian/changelog
102+
sed -i 's/experimental/'$serie'/g' debian/changelog
103+
sed -i 's/-1) /-1+'$serie') /' debian/changelog
104+
fi
105+
rm -f debian/*.mx debian/*.debian
106+
echo "=========================== buildpackage ($serie) =="
107+
dpkg-buildpackage -us -uc -ui -d -S
108+
fi
109+
echo "=========================== debsign ($serie) =="
110+
cd ..
111+
112+
if [ $serie = "experimental" ]; then
113+
debsign redmine-plugin-apijs_$version*.changes
114+
echo "=========================== lintian ($serie) =="
115+
lintian -EviIL +pedantic redmine-plugin-apijs*$version*.deb
116+
elif [ $serie = "unstable" ]; then
117+
debsign redmine-plugin-apijs*$version-*_source.changes
118+
else
119+
debsign redmine-plugin-apijs*$version*$serie*source.changes
120+
fi
121+
cd ..
122+
done
123+
124+
printf "\n\n"
125+
ls -dlth "$PWD/"builder/*.deb "$PWD/"builder/*.changes
126+
printf "\n"
127+
rm -rf builder/*/
File renamed without changes.

0 commit comments

Comments
 (0)