]>
Commit | Line | Data |
---|---|---|
45fb8009 | 1 | %define module amqplib |
ae49d7b9 | 2 | Summary: Client library for AMQP (Advanced Message Queuing Protocol) |
45fb8009 | 3 | Name: python-%{module} |
b3955064 | 4 | Version: 1.0.2 |
ebd1c128 | 5 | Release: 2 |
ae49d7b9 | 6 | License: LGPL v2.1 |
45fb8009 | 7 | Group: Development/Languages/Python |
8 | Source0: http://pypi.python.org/packages/source/a/%{module}/%{module}-%{version}.tgz | |
b3955064 | 9 | # Source0-md5: 5c92f17fbedd99b2b4a836d4352d1e2f |
ae49d7b9 | 10 | URL: http://code.google.com/p/py-amqplib/ |
45fb8009 | 11 | BuildRequires: python-distribute |
12 | BuildRequires: rpm-pythonprov | |
57d0efca | 13 | BuildRequires: rpmbuild(macros) >= 1.710 |
45fb8009 | 14 | Requires: python-modules |
15 | Requires: python-pyparsing | |
16 | BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
ae49d7b9 | 20 | Client library for AMQP (Advanced Message Queuing Protocol). |
45fb8009 | 21 | |
22 | %prep | |
23 | %setup -q -n %{module}-%{version} | |
24 | ||
25 | %build | |
d986b97a | 26 | %py_build |
45fb8009 | 27 | |
28 | %install | |
29 | rm -rf $RPM_BUILD_ROOT | |
d986b97a | 30 | %py_install |
45fb8009 | 31 | |
32 | %py_postclean | |
33 | ||
34 | %clean | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | ||
45fb8009 | 37 | %files |
38 | %defattr(644,root,root,755) | |
39 | %doc README* TODO | |
45fb8009 | 40 | %{py_sitescriptdir}/%{module} |
41 | %if "%{py_ver}" > "2.4" | |
42 | %{py_sitescriptdir}/%{module}-*.egg-info | |
43 | %endif |