summaryrefslogtreecommitdiff
path: root/cpp/rpm
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-03-21 02:08:18 +0000
committerAlan Conway <aconway@apache.org>2007-03-21 02:08:18 +0000
commit595235e61a48c1ee24bdaee8af72ab7caf18bab6 (patch)
tree3e6193a2ffe5789291ec8577924f1cabe6933618 /cpp/rpm
parent371d76b7e0f8358d5296722f2f2c0e28181a3935 (diff)
downloadqpid-python-595235e61a48c1ee24bdaee8af72ab7caf18bab6.tar.gz
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
Diffstat (limited to 'cpp/rpm')
-rw-r--r--cpp/rpm/Makefile.am27
1 files changed, 27 insertions, 0 deletions
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