bind osbuild module from dynamically discovered path

This commit is contained in:
Martin Sehnoutka 2019-10-16 15:12:31 +02:00 committed by Lars Karlitski
parent 831459e9e9
commit 27cf84edd5
2 changed files with 14 additions and 5 deletions

View file

@ -10,13 +10,13 @@ sdist:
tarball:
git archive --prefix=osbuild-$(VERSION)/ --format=tar.gz HEAD > $(VERSION).tar.gz
srpm: $(PACKAGE_NAME).spec tarball
srpm: $(PACKAGE_NAME).spec check-working-directory tarball
/usr/bin/rpmbuild -bs \
--define "_sourcedir $(CURDIR)" \
--define "_srcrpmdir $(CURDIR)" \
$(PACKAGE_NAME).spec
rpm: $(PACKAGE_NAME).spec tarball
rpm: $(PACKAGE_NAME).spec check-working-directory tarball
- rm -r "`pwd`/output"
mkdir -p "`pwd`/output"
mkdir -p "`pwd`/rpmbuild"