1 |
%define mainver %(echo %{version} | sed -e 's/\\([0-9]*\\.[0-9]*\\)\\.[0-9]*/\\1/') |
2 |
# we don't want to provide private python extension libs |
3 |
%define _exclude_files_from_autoprov %{python_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so |
4 |
|
5 |
%define module TwistedNews |
6 |
|
7 |
Name: python-twisted-news |
8 |
Version: 13.2.0 |
9 |
Release: %mkrel 2 |
10 |
Summary: An NNTP protocol implementation together with clients and servers |
11 |
License: MIT |
12 |
Group: Development/Python |
13 |
URL: http://twistedmatrix.com/trac/wiki/TwistedNews |
14 |
Source0: http://twistedmatrix.com/Releases/News/%{mainver}/%{module}-%{version}.tar.bz2 |
15 |
BuildRequires: python-devel |
16 |
BuildRequires: python-twisted-core |
17 |
|
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 %{module}-%{version} |
30 |
|
31 |
%build |
32 |
%{__python} setup.py build |
33 |
|
34 |
%install |
35 |
%{__python} setup.py install --root=%{buildroot} --skip-build --install-purelib=%{python_sitearch} |
36 |
|
37 |
|
38 |
%files |
39 |
%doc LICENSE README |
40 |
%dir %{python_sitearch}/twisted/news/ |
41 |
%{python_sitearch}/twisted/news/* |
42 |
%{python_sitearch}/twisted/plugins/* |
43 |
%{python_sitearch}/*.egg-info |