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 11TOKEN ?= $(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
212
313prepare_builddir: clean
414 mkdir -p build
@@ -14,9 +24,10 @@ deb: prepare_builddir
1424 cd $(BUILDDIR) && cp -a $(WORKDIR)/packaging/debian . && dpkg-buildpackage -b
1525 cp -av build/mamonsu*.deb .
1626
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
1829 rpmbuild -ba --define '_topdir $(BUILDDIR)/packaging/rpm'\
19- $(BUILDDIR)/packaging/rpm/SPECS/mamonsu.spec
30+ $(BUILDDIR)/packaging/rpm/SPECS/$(SPEC)
2031 cp -av $(BUILDDIR)/packaging/rpm/RPMS/noarch/mamonsu*.rpm .
2132
2233pkg: build/prepare build/all
You can’t perform that action at this time.
0 commit comments