~ubuntu-branches/ubuntu/gutsy/python-dns/gutsy-security

« back to all changes in this revision

Viewing changes to python-pydns.spec

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2007-05-22 20:59:24 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070522205924-9k8o81y1os1h2mhh
Tags: 2.3.1-1
* New upstream release
* Add debian/watch
* Remove debian/patches and all patches (incorporated upstream)
* Remove debian/rules entry for patch system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
2
 
 
3
Name:           python-pydns
 
4
Version:        2.3.1
 
5
Release:        1%{?dist}
 
6
Summary:        Python module for DNS (Domain Name Service).
 
7
 
 
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)
 
13
 
 
14
BuildArch:      noarch
 
15
#BuildRequires:  python-setuptools
 
16
 
 
17
%description
 
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>.
 
21
 
 
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).
 
25
 
 
26
%define namewithoutpythonprefix %(echo %{name} | sed 's/^python-//')
 
27
%prep
 
28
%setup -q -n %{namewithoutpythonprefix}-%{version}
 
29
 
 
30
 
 
31
%build
 
32
%{__python} setup.py build
 
33
 
 
34
 
 
35
%install
 
36
rm -rf $RPM_BUILD_ROOT
 
37
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
 
38
 
 
39
 
 
40
%clean
 
41
rm -rf $RPM_BUILD_ROOT
 
42
 
 
43
 
 
44
%files
 
45
%defattr(-,root,root,-)
 
46
%doc CREDITS.txt PKG-INFO README-guido.txt README.txt
 
47
%{python_sitelib}/DNS/*.py*
 
48
 
 
49
%changelog
 
50
* Tue May 22 2007 Stuart Gathman <stuart@bmsi.com> 2.3.1-1
 
51
- Bug fix release
 
52
* Tue Aug 29 2006 Sean Reifschneider <jafo@tummy.com> 2.3.0-1
 
53
- Initial RPM spec file.