-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.koji
26 lines (20 loc) · 979 Bytes
/
Makefile.koji
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
PACKAGE=acron
SPECFILE = $(PACKAGE).spec
VERSION=$(shell grep -s '^Version' $(SPECFILE) | sed -e 's/Version: *//')
PKGNAME=$(PACKAGE)-$(VERSION)
TARFILE=python3-$(PKGNAME).tgz
OWNER=acron-devs
DIST ?= $(shell rpm --eval %{dist})
all: sources
sources:
sed -e "s/version=.*/version=\'${VERSION}\',/" python/setup.py > python/setup.py.new
mv python/setup.py.new python/setup.py
tar -czf $(TARFILE) ./etc ./man ./python ./selinux ./usr ./var COPYING COPYRIGHT LICENSE
scratch:
koji build acron7 --nowait --scratch git+ssh://[email protected]:7999/$(OWNER)/$(PACKAGE).git#$(shell git rev-parse HEAD)
build:
koji build acron7 --nowait git+ssh://[email protected]:7999/$(OWNER)/$(PACKAGE).git#$(shell git rev-parse HEAD)
rpm: sources
rpmbuild --define 'dist $(DIST)' --define "_topdir $(PWD)/build" --define "_sourcedir ${PWD}" -ba $(SPECFILE)
srpm: sources
rpmbuild --define 'dist $(DIST)' --define "_topdir $(PWD)/build" --define "_sourcedir ${PWD}" -bs $(SPECFILE)