Add ocid.spec to build rpms
Signed-off-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
5504b68c96
commit
8ba639952a
3 changed files with 87 additions and 2 deletions
14
contrib/rpm/Makefile
Normal file
14
contrib/rpm/Makefile
Normal file
|
@ -0,0 +1,14 @@
|
|||
.PHONY: dist
|
||||
dist: ocid.spec
|
||||
spectool -g ocid.spec
|
||||
|
||||
.PHONY: rpm
|
||||
rpm: dist
|
||||
rpmbuild --define "_sourcedir `pwd`" --define "_specdir `pwd`" \
|
||||
--define "_rpmdir `pwd`" --define "_srcrpmdir `pwd`" -ba ocid.spec
|
||||
|
||||
all: rpm
|
||||
|
||||
clean:
|
||||
rm -f *rpm *gz
|
||||
rm -rf x86_64
|
Loading…
Add table
Add a link
Reference in a new issue