1 |
ennael |
34740 |
%define name python-twisted-news |
2 |
philippem |
491831 |
%define version 13.1.0 |
3 |
umeabot |
544346 |
%define rel 3 |
4 |
ennael |
34740 |
%define mainver %(echo %{version} | sed -e 's/\\([0-9]*\\.[0-9]*\\)\\.[0-9]*/\\1/') |
5 |
philippem |
491831 |
# we don't want to provide private python extension libs |
6 |
|
|
%define _exclude_files_from_autoprov %{python_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so |
7 |
ennael |
34740 |
|
8 |
|
|
Summary: An NNTP protocol implementation together with clients and servers |
9 |
|
|
Name: %{name} |
10 |
|
|
Version: %{version} |
11 |
|
|
Release: %mkrel %{rel} |
12 |
philippem |
296381 |
Source0: http://twistedmatrix.com/Releases/News/%{mainver}/TwistedNews-%{version}.tar.bz2 |
13 |
ennael |
34740 |
License: MIT |
14 |
|
|
Group: Development/Python |
15 |
|
|
URL: http://twistedmatrix.com/trac/wiki/TwistedNews |
16 |
|
|
BuildRoot: %{_tmppath}/%{name}-buildroot |
17 |
|
|
BuildRequires: python-devel python-twisted-core |
18 |
|
|
Requires: python-twisted-core |
19 |
|
|
|
20 |
|
|
%description |
21 |
|
|
Twisted News provides a very basic NNTP server, as well as an NNTP client |
22 |
|
|
protocol implementation. Two messages storage systems are supported: the |
23 |
|
|
DB-API 2.0 backend stores and indexes messages in any compatible SQL |
24 |
|
|
database; the Twisted dirdbm backend uses serialized Python objects |
25 |
|
|
stored directly on the filesystem for message storage. Twisted News |
26 |
|
|
also has very rudamentary support for moderated groups. |
27 |
|
|
|
28 |
|
|
%prep |
29 |
|
|
%setup -q -n TwistedNews-%{version} |
30 |
|
|
|
31 |
|
|
%build |
32 |
|
|
%__python setup.py build |
33 |
|
|
|
34 |
|
|
%install |
35 |
philippem |
491831 |
%__python setup.py install --root=%{buildroot} --install-purelib=%{python_sitearch} |
36 |
ennael |
34740 |
|
37 |
|
|
|
38 |
|
|
%files |
39 |
|
|
%defattr(0644,root,root,0755) |
40 |
|
|
%doc LICENSE README |
41 |
philippem |
491831 |
%dir %{python_sitearch}/twisted/news/ |
42 |
|
|
%{python_sitearch}/twisted/news/* |
43 |
|
|
%{python_sitearch}/twisted/plugins/* |
44 |
|
|
%{python_sitearch}/*.egg-info |