From 595235e61a48c1ee24bdaee8af72ab7caf18bab6 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 21 Mar 2007 02:08:18 +0000 Subject: Renamed cpp-0-9 to cpp git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@520706 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/rpm/Makefile.am | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 cpp/rpm/Makefile.am (limited to 'cpp/rpm') diff --git a/cpp/rpm/Makefile.am b/cpp/rpm/Makefile.am new file mode 100644 index 0000000000..363a444f4f --- /dev/null +++ b/cpp/rpm/Makefile.am @@ -0,0 +1,27 @@ +# +# Build RPMs from the distribution tarball. +# + +# TODO aconway 2006-12-21: use autoconf macros for version, base name etc. + +SPEC=${top_srcdir}/qpidc.spec +RPMOPTS=--define "_sourcedir ${abs_top_srcdir}" --define "_topdir ${abs_builddir}" + +clean-local: + -rm -rf BUILD RPMS SOURCES SPECS SRPMS + +.PHONY: rpm srpm dist + +# Build source and binary RPMs. +rpm: dist + rpmbuild $(RPMOPTS) $(RPMEXTRAOPTS) -ba $(SPEC) + rpmlint RPMS/*/*.rpm + +# Build source RPM only. +srpm: dist + rpmbuild $(RPMOPTS) -bs $(SPEC) + +# Build source distribution and create required subdirs. +dist: + cd .. && $(MAKE) $(AM_MAKEFLAGS) dist + mkdir -p BUILD RPMS SOURCES SPECS SRPMS -- cgit v1.2.1