pghmcfc / rpms / python-dns

Forked from rpms/python-dns 4 years ago
Clone
30f5691
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
30f5691
30f5691
Name:           python-dns
e53ba82
Version:        1.6.0
5a39cd4
Release:        3%{?dist}
30f5691
Summary:        DNS toolkit for Python
30f5691
30f5691
Group:          Development/Languages
457cff1
License:        MIT
30f5691
URL:            http://www.dnspython.org/
30f5691
Source0:        http://www.dnspython.org/kits/%{version}/dnspython-%{version}.tar.gz
30f5691
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
30f5691
30f5691
BuildArch:      noarch
c063a3c
%if 0%{?fedora} >= 8
c063a3c
BuildRequires: python-setuptools-devel
c063a3c
%else
c063a3c
BuildRequires: python-setuptools
c063a3c
%endif
30f5691
30f5691
%description
30f5691
dnspython is a DNS toolkit for Python. It supports almost all record
30f5691
types. It can be used for queries, zone transfers, and dynamic
30f5691
updates. It supports TSIG authenticated messages and EDNS0.
30f5691
30f5691
dnspython provides both high and low level access to DNS. The high
30f5691
level classes perform queries for data of a given name, type, and
30f5691
class, and return an answer set. The low level classes allow direct
30f5691
manipulation of DNS zones, messages, names, and records.
30f5691
30f5691
%prep
30f5691
%setup -q -n dnspython-%{version}
30f5691
30f5691
# strip executable permissions so that we don't pick up dependencies
30f5691
# from documentation
30f5691
find examples -type f | xargs chmod a-x
30f5691
30f5691
%build
c063a3c
CFLAGS="%{optflags}" %{__python} -c 'import setuptools; execfile("setup.py")' build
30f5691
30f5691
%install
30f5691
rm -rf %{buildroot}
c063a3c
%{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root %{buildroot}
30f5691
30f5691
%check
30f5691
pushd tests
30f5691
# skip one test because it queries the network
30f5691
for py in *.py
30f5691
do
30f5691
	if [ $py != resolver.py ]
30f5691
	then
30f5691
		PYTHONPATH=%{buildroot}%{python_sitelib} %{__python} $py
30f5691
	fi
30f5691
done
30f5691
30f5691
%clean
30f5691
rm -rf %{buildroot}
30f5691
30f5691
%files
30f5691
%defattr(-,root,root,-)
30f5691
%doc ChangeLog LICENSE README TODO examples
30f5691
c063a3c
%{python_sitelib}/*egg-info
8069961
%{python_sitelib}/dns
30f5691
30f5691
%changelog
5a39cd4
* Sat Nov 29 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.6.0-3
5a39cd4
- Rebuild for Python 2.6
5a39cd4
457cff1
* Fri Aug 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.6.0-2
457cff1
- fix license tag
457cff1
e53ba82
* Sat Dec  4 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.6.0-1
e53ba82
- Update to 1.6.0
e53ba82
c063a3c
* Tue Oct  9 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.5.0-2
c063a3c
- Follow new Python egg packaging specs
c063a3c
2a4b27e
* Thu Jan 11 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.5.0-1
2a4b27e
- Update to 1.5.0
2a4b27e
153ca53
* Fri Dec  8 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.0-3
153ca53
- Bump release for rebuild with Python 2.5
153ca53
8069961
* Mon Aug 14 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.0-2
8069961
- No longer ghost *.pyo files, thus further simplifying the files section.
8069961
24f77f9
* Sat Aug  5 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.4.0-1
24f77f9
- Update to 1.4.0
24f77f9
- Remove unneeded python-abi requires
24f77f9
- Remove unneeded python_sitearch macro
24f77f9
30f5691
* Fri May 26 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.3.5-1
30f5691
- First version for Fedora Extras
30f5691