]>
Commit | Line | Data |
---|---|---|
440c7cd1 | 1 | %define module pycvs |
d4ee4467 | 2 | Summary: CVS support for Python |
f72862bd | 3 | Summary(pl.UTF-8): Obsługa CVSu dla Pythona |
c65d62de | 4 | Name: python-%{module} |
5 | Version: 0.1 | |
d16af7b7 | 6 | Release: 6 |
c65d62de | 7 | License: GNU |
8 | Group: Development/Languages/Python | |
9 | Source0: http://dl.sourceforge.net/pycvs/%{module}-%{version}.tar.gz | |
10 | # Source0-md5: 3abf7c9d6d67a760190692071a476edc | |
11 | URL: http://pycvs.sourceforge.net/ | |
12 | %pyrequires_eq python-modules | |
9a98577d | 13 | BuildRequires: python-devel >= 1:2.3 |
06da91e0 | 14 | BuildArch: noarch |
c65d62de | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
d4ee4467 | 18 | pyCVS is a Python library/module for the CVS (Concurrent Versions |
c65d62de | 19 | System) protocol. It supports asynchronous and synchronous handling of |
20 | CVS servers. | |
21 | ||
72b90e72 JR |
22 | %description -l pl.UTF-8 |
23 | pyCVS jest biblioteką/modułem Pythona do obsługi protokołu CVS | |
24 | (Concurrent Versions System). Obsługuje asynchroniczną i synchroniczną | |
25 | obsługę serwerów CVS. | |
c65d62de | 26 | |
27 | %prep | |
28 | %setup -q -n %{module}-%{version} | |
29 | ||
30 | %build | |
06da91e0 | 31 | %{__python} -c "import compiler;compiler.compileFile('library/pycvs.py')" |
c65d62de | 32 | |
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
06da91e0 | 35 | install -d $RPM_BUILD_ROOT{%{py_sitescriptdir},%{_examplesdir}/%{name}-%{version}} |
c65d62de | 36 | install clients/client.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
06da91e0 | 37 | install library/pycvs.pyc $RPM_BUILD_ROOT%{py_sitescriptdir} |
c65d62de | 38 | |
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %files | |
43 | %defattr(644,root,root,755) | |
44 | %doc AUTHORS README | |
06da91e0 ER |
45 | %{py_sitescriptdir}/*.py[co] |
46 | %{_examplesdir}/%{name}-%{version} |