1
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
6
Summary: Python module for DNS (Domain Name Service).
8
Group: Development/Languages
9
License: Python Software Foundation License
10
URL: http://pydns.sourceforge.net/
11
Source0: pydns-%{version}.tar.gz
12
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15
#BuildRequires: python-setuptools
18
This is a another release of the pydns code, as originally written by
19
Guido van Rossum, and with a hopefully nicer API bolted over the
20
top of it by Anthony Baxter <anthony@interlink.com.au>.
22
This package contains a module (dnslib) that implements a DNS
23
(Domain Name Server) client, plus additional modules that define some
24
symbolic constants used by DNS (dnstype, dnsclass, dnsopcode).
26
%define namewithoutpythonprefix %(echo %{name} | sed 's/^python-//')
28
%setup -q -n %{namewithoutpythonprefix}-%{version}
32
%{__python} setup.py build
36
rm -rf $RPM_BUILD_ROOT
37
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
41
rm -rf $RPM_BUILD_ROOT
45
%defattr(-,root,root,-)
46
%doc CREDITS.txt PKG-INFO README-guido.txt README.txt
47
%{python_sitelib}/DNS/*.py*
50
* Tue May 22 2007 Stuart Gathman <stuart@bmsi.com> 2.3.1-1
52
* Tue Aug 29 2006 Sean Reifschneider <jafo@tummy.com> 2.3.0-1
53
- Initial RPM spec file.