]>
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 |
79e69c20 | 6 | Release: 4 |
267fb659 | 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 |
7a85c1e3 | 15 | BuildRequires: python-setuptools >= 1:0.6-2.c11 |
dd8decf0 | 16 | BuildRequires: rpm-pythonprov |
7a85c1e3 | 17 | BuildRequires: rpmbuild(macros) >= 1.714 |
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 | |
267fb659 | 30 | Biblioteka dostępu do Cassandry dla Pythona posiadająca: jednowątkowy |
027ada63 | 31 | lub wielowątkowy interfejs, uproszczona wersję interfejsu thrift, |
267fb659 JB |
32 | metody do mapowania klas w ColumnFamily Cassandry. Obsługuje |
33 | superkolumny. | |
dd8decf0 MK |
34 | |
35 | %prep | |
36 | %setup -q -n %{module}-%{version} | |
37 | ||
38 | %build | |
2ab5479f | 39 | %py_build |
dd8decf0 MK |
40 | |
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
267fb659 | 43 | |
12d21425 | 44 | %py_install |
dd8decf0 | 45 | |
dd8decf0 MK |
46 | %py_postclean |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
8a105ed8 MK |
53 | %attr(755,root,root) %{_bindir}/pycassaShell |
54 | ||
55 | %{py_sitescriptdir}/ez_setup.py[co] | |
56 | ||
d0f105a0 ER |
57 | %dir %{py_sitescriptdir}/%{module} |
58 | %{py_sitescriptdir}/%{module}/*.py[co] | |
8a105ed8 MK |
59 | %dir %{py_sitescriptdir}/%{module}/cassandra |
60 | %{py_sitescriptdir}/%{module}/cassandra/*.py[co] | |
61 | %dir %{py_sitescriptdir}/%{module}/logging | |
62 | %{py_sitescriptdir}/%{module}/logging/*.py[co] | |
12d21425 MK |
63 | %dir %{py_sitescriptdir}/%{module}/contrib |
64 | %{py_sitescriptdir}/%{module}/contrib/*.py[co] | |
65 | ||
dd8decf0 | 66 | %if "%{py_ver}" > "2.4" |
425bd0ac | 67 | %{py_sitescriptdir}/%{module}-*.egg-info |
dd8decf0 | 68 | %endif |