]>
Commit | Line | Data |
---|---|---|
7daff55c AM |
1 | %bcond_with tests |
2 | ||
3 | %define module WorkBench | |
4 | Summary: Python SVN GUI Tools | |
5 | Name: python-workbench | |
6 | Version: 1.1.6 | |
7 | Release: 1 | |
8 | License: Apache Group License | |
9 | Group: Development/Languages/Python | |
10 | Source0: http://pysvn.tigris.org/files/documents/1233/22212/WorkBench-%{version}.tar.gz | |
11 | # Source0-md5: 47e69a287d78e0bb2e9f7f401e8b78e0 | |
12 | URL: http://pysvn.tigris.org/ | |
13 | BuildRequires: python-devel | |
14 | %pyrequires_eq python | |
15 | Requires: python-pysvn | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | pysvn WorkBench Features: | |
20 | - Easy to learn and use | |
21 | - All subversion client operations in a GUI | |
22 | - Support software development workflow | |
23 | - Builtin GUI diff showing line and character diffs | |
24 | - Ability to diff between revisions in a files history | |
25 | - Runs on Windows and Unix platforms | |
26 | - Implemented in Python, allowing customisation | |
27 | ||
28 | %prep | |
29 | %setup -q -n WorkBench-%{version} | |
30 | ||
31 | %build | |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}} | |
36 | ||
37 | cp -a Source/* $RPM_BUILD_ROOT%{_datadir}/%{name} | |
38 | sed -i -e 's#wb_main.py#%{_datadir}/%{name}/wb_main.py#g' $RPM_BUILD_ROOT%{_datadir}/%{name}/wb.sh | |
39 | ln -s %{_datadir}/%{name}/wb.sh $RPM_BUILD_ROOT%{_bindir}/%{name} | |
40 | ||
41 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
42 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %{_datadir}/%{name} | |
50 | %attr(755,root,root) %{_bindir}/* |