python-adns/python-adns.spec

Name: python-adns
Summary: Python bindings for GNU adns library
Version: 1.1.1
Release: 1
License: GPL
Group: Development/Libraries
URL: http://dustman.net/andy/python/adns-python/
Description: python-adns is a Python module that interfaces to the adns asynchronous resolver library.

CentOS 7 x86_64

The build could not start because of the following missing build requirements:

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Andy Dustman <webmaster$dustman,net>

%define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)')

%define real_name adns-python

Summary: Python bindings for GNU adns library
Name: python-adns
Version: 1.1.1
Release: 1%{?dist}
License: GPL
Group: Development/Libraries
URL: http://dustman.net/andy/python/adns-python/

Source: http://dustman.net/andy/python/adns-python/%{version}/adns-python-%{version}.tar.gz
Patch0: python-adns-1.1.0-srv.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: python, python-devel, adns-devel
Requires: python, adns

%description
python-adns is a Python module that interfaces to the adns asynchronous
resolver library.

%prep
%setup -n %{real_name}-%{version}
%patch0 -p1 -b .srv

%build
CFLAGS="%{optflags}" %{__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, 0755)
%doc GPL README
%{python_sitearch}/adns.so
%{python_sitearch}/*.py
%{python_sitearch}/*.pyc
%ghost %{python_sitearch}/*.pyo

%changelog
* Wed Jun 06 2007 Dag Wieers <dag@wieers.com> - 1.1.1-1
- Updated to release 1.1.1.

* Fri Nov 11 2005 Dries Verachtert <dries@ulyssis.org> - 1.1.0-1
- Updated to release 1.1.0.

* Mon May 10 2004 Dag Wieers <dag@wieers.com> - 1.0.0-1
- Added missing adns-devel buildrequires. (Chong Kai Xiong)

* Sat Aug 02 2003 Dag Wieers <dag@wieers.com> - 1.0.0-0
- Initial package. (using DAR)