[packages/pysvn-workbench] add run wrapper
glen
glen at pld-linux.org
Wed Mar 30 07:10:38 CEST 2016
commit 484ffdb8160607d296b45d98fd3cbff332500a31
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Mar 30 08:09:26 2016 +0300
add run wrapper
pysvn-workbench.spec | 11 ++++++++---
wb.sh | 5 +++++
2 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/pysvn-workbench.spec b/pysvn-workbench.spec
index a404c11..ee3077e 100644
--- a/pysvn-workbench.spec
+++ b/pysvn-workbench.spec
@@ -6,11 +6,12 @@ Summary: Python SVN GUI Tools
Summary(pl.UTF-8): Graficzne narzędzia w Pythonie do SVN
Name: pysvn-workbench
Version: 1.7.0
-Release: 0.3
+Release: 0.4
License: Apache
Group: Development/Languages/Python
Source0: http://pysvn.barrys-emacs.org/source_kits/WorkBench-%{version}.tar.gz
# Source0-md5: aed0cc35a87c6dd287ad6a1a2fcf5b06
+Source1: wb.sh
URL: http://pysvn.tigris.org/
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
@@ -58,8 +59,12 @@ rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+rm $RPM_BUILD_ROOT%{_bindir}/%{name}
+install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}
+
%py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
%py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
+%py_postclean %{_datadir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -74,6 +79,6 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/pysvn-workbench
%dir %{_datadir}/%{name}
-%{_datadir}/%{name}/*.py*
-%{_desktopdir}/pysvn-workbench.desktop
+%{_datadir}/%{name}/*.py[co]
%{_datadir}/%{name}/wb.png
+%{_desktopdir}/pysvn-workbench.desktop
diff --git a/wb.sh b/wb.sh
new file mode 100755
index 0000000..2446d25
--- /dev/null
+++ b/wb.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+export PYSVN_WORKBENCH_STDOUT_LOG=$(tty)
+
+PYTHON=${PYTHON:-python}
+exec ${PYTHON} /usr/share/pysvn-workbench/wb_main.pyc "$@"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pysvn-workbench.git/commitdiff/fe5ba83c7906e749954a9e4467f74c87b6d37b14
More information about the pld-cvs-commit
mailing list