]>
Commit | Line | Data |
---|---|---|
2f514ebb | 1 | # |
2 | # TODO: | |
3 | # - cleanup ;) | |
4 | # - some arch-depended libraries in sitescript_dir | |
5 | # - documentation and examples in sitescript_dir | |
6 | %define module py | |
7 | # | |
4b858531 JB |
8 | Summary: Agile development and test support library |
9 | Summary(pl.UTF-8): Zwinna biblioteka obsługująca rozwój i testowanie | |
2f514ebb | 10 | Name: python-%{module} |
11 | Version: 0.9.0 | |
12 | Release: 0.1 | |
13 | License: MIT license | |
14 | Group: Development/Languages/Python | |
4b858531 | 15 | Source0: http://codespeak.net/download/py/%{module}-%{version}.tar.gz |
2f514ebb | 16 | # Source0-md5: adecd7befdfa431341c8e09e0bc94ca3 |
17 | URL: http://codespeak.net/py/ | |
89e918b3 JB |
18 | BuildRequires: FHS-fix(arch-dependent files in /usr/share) |
19 | BuildRequires: python-devel >= 1:2.5 | |
4b858531 | 20 | BuildRequires: rpm-pythonprov |
2f514ebb | 21 | BuildRequires: rpmbuild(macros) >= 1.219 |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
4b858531 | 25 | The py lib is a development support library featuring py.test, ad-hoc |
2f514ebb | 26 | distributed execution, micro-threads and svn abstractions. |
27 | ||
4b858531 JB |
28 | %description -l pl.UTF-8 |
29 | Biblioteka py wspiera rozwijanie oprogramowania udostępniając py.test, | |
30 | rozproszone wykonywanie kodu, mikrowątki i abstrakcję svn. | |
31 | ||
2f514ebb | 32 | %prep |
33 | %setup -q -n %{module}-%{version} | |
34 | ||
35 | %build | |
4b858531 | 36 | %{__python} setup.py build |
2f514ebb | 37 | |
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
4b858531 | 41 | %{__python} setup.py install \ |
2f514ebb | 42 | --root=$RPM_BUILD_ROOT \ |
43 | --optimize=2 | |
44 | ||
45 | %py_postclean | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %attr(755,root,root) %{_bindir}/* | |
53 | %{py_sitescriptdir}/py | |
89e918b3 | 54 | %{py_sitescriptdir}/py-*.egg-info |