]>
Commit | Line | Data |
---|---|---|
39bee6bc AF |
1 | # TODO: |
2 | # - include examples in package | |
3 | # | |
4 | %define module subvertpy | |
5 | # | |
6 | Summary: A Pythonic binding for subversion | |
7 | Summary(pl.UTF-8): Pythonowe wiązanie do subversion | |
8 | Name: python-%{module} | |
9 | Version: 0.7.2 | |
c0ac6fef | 10 | Release: 2 |
39bee6bc AF |
11 | License: LGPLv2.1+ |
12 | Group: Libraries/Python | |
13 | Source0: http://samba.org/~jelmer/subvertpy/%{module}-%{version}.tar.gz | |
14 | # Source0-md5: 01e2098db04ddddaf06a7e27c075745d | |
15 | Patch0: apu_includes.patch | |
16 | URL: http://samba.org/~jelmer/subvertpy/ | |
1034a66b AF |
17 | BuildRequires: apr-devel |
18 | BuildRequires: apr-utils-devel | |
39bee6bc AF |
19 | BuildRequires: python-devel |
20 | BuildRequires: python-modules | |
21 | BuildRequires: rpm-pythonprov | |
22 | BuildRequires: rpmbuild(macros) >= 1.219 | |
23 | BuildRequires: subversion-devel | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
1034a66b AF |
27 | Python bindings for the Subversion version control system that are |
28 | aimed to be complete, fast and feel native to Python programmers. | |
39bee6bc AF |
29 | |
30 | %prep | |
31 | %setup -q -n %{module}-%{version} | |
32 | %patch0 -p1 | |
33 | ||
34 | %build | |
39bee6bc AF |
35 | python setup.py build |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | python setup.py install \ | |
41 | --root=$RPM_BUILD_ROOT \ | |
42 | --optimize=2 | |
43 | ||
44 | %py_postclean | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %doc AUTHORS NEWS | |
52 | %attr(755,root,root) %{_bindir}/subvertpy-fast-export | |
53 | %dir %{py_sitedir}/subvertpy | |
54 | %{py_sitedir}/subvertpy/*.py[co] | |
55 | %attr(755,root,root) %{py_sitedir}/subvertpy/*.so | |
56 | %{py_sitedir}/subvertpy-*.egg-info |