Skip to content

Commit

Permalink
MD-1716: customisations for RHEL/CentOS 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Cranny committed Apr 22, 2020
1 parent 4119bb7 commit 1e2d365
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pkg/Makefile.bidi
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
PROJ= liblpm

all: rpm

prepare: specmunge
mkdir -p SOURCES && tar czpvf SOURCES/$(PROJ).tar.gz ../src

rpm: prepare
rpmbuild -ba -v --define "_topdir ${PWD}" SPECS/$(PROJ).spec

clean:
rm -rf BUILD BUILDROOT RPMS SOURCES SRPMS

specmunge:
git checkout SPECS/$(PROJ).spec
sed -i -e "/%define version/c\%define version $$(cat version.txt)" -e '/BuildRequires:.*make/a BuildRequires: libasan\nBuildRequires: libubsan' SPECS/$(PROJ).spec

.PHONY: all rpm clean specmunge

0 comments on commit 1e2d365

Please sign in to comment.