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