[libvirt] [libvirt-snmp][PATCH 2/3] Makefile: Introduce srpm target

Michal Privoznik mprivozn at redhat.com
Wed Sep 5 08:55:39 UTC 2018


Just like we have 'rpm' we might have 'srpm'.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 Makefile.am | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 9ac6fc2..6ce91ed 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,14 +1,18 @@
 SUBDIRS=src/ docs/
 
 EXTRA_DIST = \
-	libvirt-snmp.spec libvirt-snmp.spec.in \
+	$(PACKAGE).spec \
+	$(PACKAGE).spec.in \
 	autobuild.sh \
 	autogen.sh \
 	AUTHORS.in \
 	$(NULL)
 
 rpm: clean
-		@(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz)
+	@(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.xz)
+
+srpm: clean
+	@(unset CDPATH ; $(MAKE) dist && rpmbuild -ts $(distdir).tar.xz)
 
 dist-hook: gen-ChangeLog gen-AUTHORS
 
-- 
2.16.4




More information about the libvir-list mailing list