# $Id$ # Authority: dag %define python_sitelib %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib()') %define real_name dnspython Summary: DNS toolkit for Python Name: python-dns Version: 1.5.0 Release: 1%{?dist} License: BSD-like Group: Development/Languages URL: http://www.dnspython.org/ Source: http://www.dnspython.org/kits/%{version}/dnspython-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: python-devel %description dnspython is a DNS toolkit for Python. It supports almost all record types. It can be used for queries, zone transfers, and dynamic updates. It supports TSIG authenticated messages and EDNS0. dnspython provides both high and low level access to DNS. The high level classes perform queries for data of a given name, type, and class, and return an answer set. The low level classes allow direct manipulation of DNS zones, messages, names, and records. %prep %setup -n %{real_name}-%{version} find examples/ -type f | xargs %{__chmod} a-x %build %{__python} setup.py build %install %{__rm} -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}" %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %doc ChangeLog LICENSE README TODO examples/ %{python_sitelib}/dns/ %ghost %{python_sitelib}/dns/*.pyo %ghost %{python_sitelib}/dns/rdtypes/*.pyo %ghost %{python_sitelib}/dns/rdtypes/*/*.pyo %changelog * Tue Nov 06 2007 Dag Wieers - 1.5.0-1 - Updated to release 1.5.0. * Mon Aug 14 2006 Dag Wieers - 1.4.0-1 - Initial package. (using DAR)