]>
Commit | Line | Data |
---|---|---|
dd8decf0 MK |
1 | %define module pycassa |
2 | Summary: Simple Python Cassandra library | |
425bd0ac | 3 | Summary(pl.UTF-8): Prosta biblioteka Pythona do Cassandry |
dd8decf0 | 4 | Name: python-%{module} |
12d21425 | 5 | Version: 1.11.1 |
5b50d5e9 | 6 | Release: 3 |
425bd0ac | 7 | License: MIT/apache |
dd8decf0 | 8 | Group: Development/Languages/Python |
8a105ed8 | 9 | # https://github.com/downloads/pycassa/pycassa/pycassa-1.0.1.tar.gz |
12d21425 MK |
10 | # https://github.com/%{module}/%{module}/archive/v%{version}.tar.gz |
11 | Source0: https://github.com/%{module}/%{module}/archive/v%{version}.tar.gz | |
12 | # Source0-md5: b87e4effd85384fde09f016b0b084039 | |
8a105ed8 | 13 | URL: https://github.com/pycassa/pycassa |
dd8decf0 | 14 | BuildRequires: python-devel |
12d21425 | 15 | BuildRequires: python-setuptools >= 0.6-2.c11 |
dd8decf0 | 16 | BuildRequires: rpm-pythonprov |
495cacd0 | 17 | BuildRequires: rpmbuild(macros) >= 1.710 |
425bd0ac | 18 | Requires: python-modules |
d0f105a0 | 19 | Requires: python-thrift |
dd8decf0 MK |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
027ada63 | 24 | Cassandra library with the following features: auto-failover single or |
12d21425 MK |
25 | thread-local connections, a simplified version of the thrift |
26 | interface, a method to map an existing class to a Cassandra | |
27 | ColumnFamily. Supports SuperColumns. | |
dd8decf0 MK |
28 | |
29 | %description -l pl.UTF-8 | |
027ada63 MK |
30 | Biblioteka dostępu do Cassandry dla Pythona posiadająca: Jednowątkowy |
31 | lub wielowątkowy interfejs, uproszczona wersję interfejsu thrift, | |
32 | metody do mapowania klas w ColumnFamily Cassandry. Wspiera obsługę | |
33 | superkolumn. | |
34 | ||
dd8decf0 MK |
35 | |
36 | %prep | |
37 | %setup -q -n %{module}-%{version} | |
38 | ||
39 | %build | |
2ab5479f | 40 | %py_build |
dd8decf0 MK |
41 | |
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
12d21425 | 44 | %py_install |
dd8decf0 | 45 | |
425bd0ac MK |
46 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} |
47 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
dd8decf0 MK |
48 | %py_postclean |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
8a105ed8 MK |
55 | %attr(755,root,root) %{_bindir}/pycassaShell |
56 | ||
57 | %{py_sitescriptdir}/ez_setup.py[co] | |
58 | ||
d0f105a0 ER |
59 | %dir %{py_sitescriptdir}/%{module} |
60 | %{py_sitescriptdir}/%{module}/*.py[co] | |
8a105ed8 MK |
61 | %dir %{py_sitescriptdir}/%{module}/cassandra |
62 | %{py_sitescriptdir}/%{module}/cassandra/*.py[co] | |
63 | %dir %{py_sitescriptdir}/%{module}/logging | |
64 | %{py_sitescriptdir}/%{module}/logging/*.py[co] | |
12d21425 MK |
65 | %dir %{py_sitescriptdir}/%{module}/contrib |
66 | %{py_sitescriptdir}/%{module}/contrib/*.py[co] | |
67 | ||
8a105ed8 | 68 | |
dd8decf0 | 69 | %if "%{py_ver}" > "2.4" |
425bd0ac | 70 | %{py_sitescriptdir}/%{module}-*.egg-info |
dd8decf0 | 71 | %endif |