[tsung/el6: 1/2] Include the example config Patch the shebangs

Christopher Meng cicku at fedoraproject.org
Fri Jul 18 04:23:33 UTC 2014


commit f224fec6dda730dbb2aebacf88222a93926c9b6c
Author: Christopher Meng <i at cicku.me>
Date:   Fri Jul 18 12:18:40 2014 +0800

    Include the example config
    Patch the shebangs

 tsung.spec |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)
---
diff --git a/tsung.spec b/tsung.spec
index a943ee2..1cf469b 100644
--- a/tsung.spec
+++ b/tsung.spec
@@ -4,7 +4,7 @@
 
 Name:           tsung
 Version:        1.5.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A distributed multi-protocol load testing tool
 License:        GPLv2
 URL:            http://tsung.erlang-projects.org/
@@ -31,7 +31,7 @@ It also has support for SSL.
 %setup -q
 # Fix bogus shebangs.
 sed -i 's|/usr/bin/env bash|/bin/bash|' *.sh.in
-sed -i 's| /usr/bin/env python|%{__python2}|' src/tsung-plotter/tsplot.py.in
+sed -i 's|/usr/bin/env python|%{__python2}|' src/tsung-plotter/tsplot.py.in
 sed -i 's|/usr/bin/env perl|%{__perl}|' src/log2tsung.pl.in
 
 %build
@@ -40,20 +40,31 @@ sed -i 's|/usr/bin/env perl|%{__perl}|' src/log2tsung.pl.in
 
 %install
 %make_install
+
+for i in `ls %{buildroot}%{_libdir}/%{name}/bin | grep .pl$ | cut -d"." -f1`
+do
+  ln -sf %{_libdir}/%{name}/bin/$i.pl %{buildroot}%{_bindir}/$i
+done
+
 # Fix versioned/unversioned docdir
 rm -frv %{buildroot}%{_docdir}
+rm -frv examples/*.xml.in
 
 %files
 %doc CHANGES CONTRIBUTORS COPYING README* TODO
-%{_bindir}/%{name}*
-%{_bindir}/tsplot
+%doc examples/
+%{_bindir}/*
+%{_datadir}/%{name}/
 %{_libdir}/erlang/lib/*
 %{_libdir}/%{name}/
-%{_datadir}/%{name}/
 %{_mandir}/man1/%{name}*.1*
 %{_mandir}/man1/tsplot.1*
 
 %changelog
+* Thu Jul 10 2014 Christopher Meng <rpm at cicku.me> - 1.5.1-2
+- Include example config files
+- Better user experience for perl scripts
+
 * Thu Jul 10 2014 Christopher Meng <rpm at cicku.me> - 1.5.1-1
 - Update to 1.5.1
 


More information about the scm-commits mailing list