File tree Expand file tree Collapse file tree 4 files changed +810
-2
lines changed Expand file tree Collapse file tree 4 files changed +810
-2
lines changed Original file line number Diff line number Diff line change 1
1
TOKEN ?= $(PACKAGECLOUD_TOKEN)
2
+ # Check for SUSE and alt linux which need specific spec file
3
+ ifeq "$(wildcard /etc/SuSE-rel*)" ""
4
+ ifeq "$(wildcard /etc/altlinux-rel*)" ""
5
+ SPEC=mamonsu.spec
6
+ else
7
+ SPEC=mamonsu.alt.spec
8
+ endif
9
+ else
10
+ SPEC=mamonsu.suse.spec
11
+ endif
2
12
3
13
prepare_builddir: clean
4
14
mkdir -p build
@@ -14,9 +24,10 @@ deb: prepare_builddir
14
24
cd $(BUILDDIR) && cp -a $(WORKDIR)/packaging/debian . && dpkg-buildpackage -b
15
25
cp -av build/mamonsu*.deb .
16
26
17
- rpm: prepare_builddir
27
+ rpm: prepare_builddir $(BUILDDIR)/packaging/rpm/SPECS/$(SPEC)
28
+ mkdir -p $(BUILDDIR)/packaging/rpm/RPMS $(BUILDDIR)/packaging/rpm/BUILD $(BUILDDIR)/packaging/rpm/SRPMS
18
29
rpmbuild -ba --define '_topdir $(BUILDDIR)/packaging/rpm'\
19
- $(BUILDDIR)/packaging/rpm/SPECS/mamonsu.spec
30
+ $(BUILDDIR)/packaging/rpm/SPECS/$(SPEC)
20
31
cp -av $(BUILDDIR)/packaging/rpm/RPMS/noarch/mamonsu*.rpm .
21
32
22
33
pkg: build/prepare build/all
You can’t perform that action at this time.
0 commit comments