aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2013-02-08 19:14:37 +0000
committerJeff Morriss <jeff.morriss.ws@gmail.com>2013-02-08 19:14:37 +0000
commit8f819bb5bf07ce1331a7bad03266d6cbda4b717c (patch)
tree75419976c8e500e1704cd094d2bc36bc8d29cb53 /Makefile.am
parentd21f62b73b84086173901da197fe15eaa4e9dcce (diff)
downloadwireshark-8f819bb5bf07ce1331a7bad03266d6cbda4b717c.tar.gz
wireshark-8f819bb5bf07ce1331a7bad03266d6cbda4b717c.tar.bz2
wireshark-8f819bb5bf07ce1331a7bad03266d6cbda4b717c.zip
Also build the source RPM. Clean up after ourselves when done.
svn path=/trunk/; revision=47574
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 701a7abc61..6e7767eadf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1050,12 +1050,13 @@ rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
rpm-package: dist
if test x$(HAVE_RPM) = xyes ; then \
cd $(rpm_topdir) ; \
- mkdir -p BUILD RPMS SOURCES ; \
+ mkdir -p BUILD RPMS SOURCES SRPMS; \
cd SOURCES ; \
ln -s ../../../$(distdir).tar.bz2 ; \
cd .. ; \
- rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/wireshark.spec && \
+ rpmbuild --define "_topdir `cd . && pwd`" --clean -ba SPECS/wireshark.spec && \
echo "Package successfully built in `pwd`/RPMS." ; \
+ rm -f SOURCES/$(distdir).tar.bz2; \
else \
echo "Error: RPM executable and/or source directory not found." ; \
false; \