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 TwistedNames |
6 |
|
7 |
Name: python-twisted-names |
8 |
Version: 14.0.0 |
9 |
Release: %mkrel 2 |
10 |
Summary: An DNS protocol implementation with client and server |
11 |
License: MIT |
12 |
Group: Development/Python |
13 |
URL: http://twistedmatrix.com/trac/wiki/TwistedNames |
14 |
Source0: http://twistedmatrix.com/Releases/Names/%{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 Names is both a domain name server as well as a client resolver |
22 |
library. |
23 |
|
24 |
Twisted Names comes with an "out of the box" nameserver which can read most |
25 |
BIND-syntax zone files as well as a simple Python-based configuration format. |
26 |
Twisted Names can act as an authoritative server, perform zone transfers from |
27 |
a master to act as a secondary, act as a caching nameserver, or any combination |
28 |
of these. |
29 |
|
30 |
Twisted Names' client resolver library provides functions to query for all |
31 |
commonly used record types as well as a replacement for the blocking |
32 |
gethostbyname() function provided by the Python stdlib socket module. |
33 |
|
34 |
%prep |
35 |
%setup -q -n %{module}-%{version} |
36 |
|
37 |
%build |
38 |
%{__python} setup.py build |
39 |
|
40 |
%install |
41 |
%{__python} setup.py install --root=%{buildroot} --skip-build --install-purelib=%{python_sitearch} |
42 |
|
43 |
|
44 |
%files |
45 |
%doc LICENSE README NEWS |
46 |
%dir %{python_sitearch}/twisted/names |
47 |
%{python_sitearch}/twisted/names/* |
48 |
%{python_sitearch}/twisted/plugins/* |
49 |
%{python_sitearch}/Twisted_Names-%{version}-py%{pyver}.egg-info |