-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
65 lines (53 loc) · 2.1 KB
/
Makefile
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
VERSION=41.1
RELEASE=1
.ONESHELL: # Applies to every targets in the file!
default: update release-free release-nonfree
realone: clean-before-update default
clean-before-update:
rm -rf etc/mock/*cfg
update:
mkdir -p etc/mock
./round.sh
./el-round.sh
release-free :
# make links to short names of settings names in el
# we may change the links to rhel, centos, alma, rocky or even centos-stream
cd ./etc/mock/
ln -srf alma+epel-8-aarch64.cfg epel-8-aarch64.cfg
ln -srf alma+epel-8-ppc64le.cfg epel-8-ppc64le.cfg
ln -srf alma+epel-8-x86_64.cfg epel-8-x86_64.cfg
# no epel-next+rpmfusion-8 available
#ln -srf centos-stream+epel-next-8-aarch64.cfg epel-next-8-aarch64.cfg
#ln -srf centos-stream+epel-next-8-ppc64le.cfg epel-next-8-ppc64le.cfg
#ln -srf centos-stream+epel-next-8-x86_64.cfg epel-next-8-x86_64.cfg
ln -srf centos-stream+epel-9-aarch64.cfg epel-9-aarch64.cfg
ln -srf centos-stream+epel-9-ppc64le.cfg epel-9-ppc64le.cfg
ln -srf centos-stream+epel-9-s390x.cfg epel-9-s390x.cfg
ln -srf centos-stream+epel-9-x86_64.cfg epel-9-x86_64.cfg
ln -srf centos-stream+epel-next-9-aarch64.cfg epel-next-9-aarch64.cfg
ln -srf centos-stream+epel-next-9-ppc64le.cfg epel-next-9-ppc64le.cfg
ln -srf centos-stream+epel-next-9-s390x.cfg epel-next-9-s390x.cfg
ln -srf centos-stream+epel-next-9-x86_64.cfg epel-next-9-x86_64.cfg
cd -
sed -e"s|@VERSION@|${VERSION}|; s|@RELEASE@|${RELEASE}|"\
< mock-rpmfusion-free.spec.in \
> mock-rpmfusion-free.spec
cat CHANGELOG >> mock-rpmfusion-free.spec
tar cjf mock-rpmfusion-free-$(VERSION).tar.bz2 \
etc/mock/epel-8-*.cfg \
etc/mock/epel-9-*.cfg \
etc/mock/epel-next-9-*.cfg \
etc/mock/*rpmfusion_free*.cfg \
etc/mock/templates/rpmfusion_free*.tpl \
mock-rpmfusion-free.spec
release-nonfree :
sed -e"s|@VERSION@|${VERSION}|; s|@RELEASE@|${RELEASE}|"\
< mock-rpmfusion-nonfree.spec.in \
> mock-rpmfusion-nonfree.spec
cat CHANGELOG >> mock-rpmfusion-nonfree.spec
tar cjf mock-rpmfusion-nonfree-$(VERSION).tar.bz2 \
etc/mock/*rpmfusion_nonfree*.cfg \
etc/mock/templates/rpmfusion_nonfree*.tpl \
mock-rpmfusion-nonfree.spec
clean :
rm -rf *.spec *.tar.bz2 *~