forked from rmind/liblpm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MD-1716: customisations for RHEL/CentOS 8
- Loading branch information
Mark Cranny
committed
Apr 22, 2020
1 parent
4119bb7
commit 1e2d365
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |