File pre_checkin.sh of Package kodi (Revision 1b37ece5090b11d32c7b9665d9bee632)
Currently displaying revision 1b37ece5090b11d32c7b9665d9bee632 , Show latest
44
1
2
3
name=kodi
4
# Please edit kodi.spec and kodi.changes only. *-noX.* files are generated from kodi.* files with this pre_checkin.sh script
5
ARCH_RESTRICTIONS="%arm aarch64" # Not used for now
6
ARCH_RESTRICTIONS="does-not-build"
7
sed -e "s/%bcond_without kodi_with_X11/%bcond_with kodi_with_X11/g
8
s/^ExclusiveArch:.*/ExclusiveArch: $ARCH_RESTRICTIONS/g
9
s/^Name:.*$name/&-noX/" $name.spec > $name-noX.spec
10
cp $name.changes $name-noX.changes
11
12
# Kodi platforms
13
armv6_platforms="raspberry-pi"
14
armv7_platforms="raspberry-pi2"
15
# Generate kodi(-noX)-platformXXX
16
17
# armv6 boards
18
for BOARDNAME in $armv6_platforms; do
19
ARCH_RESTRICTIONS="armv6l armv6hl" # Not used for now
20
ARCH_RESTRICTIONS="does-not-build"
21
# Enable platform build for the given platform (only noX version)
22
sed -e "s/%bcond_without kodi_with_X11/%bcond_with kodi_with_X11/g
23
s/^ExclusiveArch:.*/ExclusiveArch: $ARCH_RESTRICTIONS/g
24
s/^%define kodi_platform .*/%define kodi_platform $BOARDNAME/g
25
s/%define kodi_player none/%define kodi_player omxplayer/g
26
s/^Name:.*$name/&-noX-$BOARDNAME/" $name.spec > $name-noX-$BOARDNAME.spec
27
cp $name.changes $name-noX-$BOARDNAME.changes
28
done
29
30
for BOARDNAME in $armv7_platforms; do
31
ARCH_RESTRICTIONS="armv7l armv7hl" # Not used for now
32
ARCH_RESTRICTIONS="does-not-build"
33
# Enable platform build for the given platform (only noX version)
34
sed -e "s/%bcond_without kodi_with_X11/%bcond_with kodi_with_X11/g
35
s/^ExclusiveArch:.*/ExclusiveArch: $ARCH_RESTRICTIONS/g
36
s/^%define kodi_platform .*/%define kodi_platform $BOARDNAME/g
37
s/%define kodi_player none/%define kodi_player omxplayer/g
38
s/^Name:.*$name/&-noX-$BOARDNAME/" $name.spec > $name-noX-$BOARDNAME.spec
39
cp $name.changes $name-noX-$BOARDNAME.changes
40
done
41
42
# Disable format_spec_file for now since it changes header
43
# osc service localrun format_spec_file
44