mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
Build: add make srpms target
https://fedorahosted.org/freeipa/ticket/6418 Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
This commit is contained in:
parent
a691b7d183
commit
0023fb5924
10
Makefile.am
10
Makefile.am
@ -38,7 +38,7 @@ clean-local:
|
||||
|
||||
# convenience targets for RPM build
|
||||
.PHONY: rpmroot rpmdistdir version-update _dist-version-bakein _rpms-prep \
|
||||
rpms _rpms-body
|
||||
rpms _rpms-body srpms _srpms-body
|
||||
RPMBUILD ?= $(abs_builddir)/rpmbuild
|
||||
TARBALL = $(PACKAGE)-$(VERSION).tar.gz
|
||||
rpmroot:
|
||||
@ -94,6 +94,14 @@ _rpms-body: _rpms-prep
|
||||
cp $(RPMBUILD)/SRPMS/*$$(cat $(top_builddir)/.version)*.src.rpm $(top_builddir)/dist/srpms/
|
||||
rm -f rm -f $(top_builddir)/.version
|
||||
|
||||
srpms: $(VERSION_UPDATE_TARGET)
|
||||
$(MAKE) _srpms-body
|
||||
|
||||
_srpms-body: _rpms-prep
|
||||
rpmbuild --define "_topdir $(RPMBUILD)" -bs $(top_builddir)/$(PACKAGE).spec
|
||||
cp $(RPMBUILD)/SRPMS/*$$(cat $(top_builddir)/.version)*.src.rpm $(top_builddir)/dist/srpms/
|
||||
rm -f rm -f $(top_builddir)/.version
|
||||
|
||||
.PHONY: lint
|
||||
if WITH_POLINT
|
||||
POLINT_TARGET = polint
|
||||
|
Loading…
Reference in New Issue
Block a user