File python-adns.spec of Package python-adns

# vim: set sw=4 ts=4 et:

Name:               python-adns
Version:            1.2.1
Release:            0
Summary:            Python asynchronous resolver library
Source:             http://adns-python.googlecode.com/files/adns-python-%{version}.tar.gz
URL:                http://code.google.com/p/adns-python/
Group:              Development/Libraries/Python
License:            GNU General Public License version 2 or later (GPL v2 or later)
BuildRoot:          %{_tmppath}/build-%{name}-%{version}
BuildRequires:      python python-devel
BuildRequires:      libadns-devel
BuildRequires:      gcc make glibc-devel pkgconfig
BuildRequires:      perl
%py_requires

%description
Python interface to GNU adns asynchronous resolver library.

%debug_package
%prep
%setup -q -n "adns-python-%{version}"

find . -type f -name '*.py' | while read py; do
    %__perl -i -n -e 'print unless /^\#/ and $.==1' "$py"
done

%build
%__python ./setup.py build

%install
%__python ./setup.py install \
    --prefix="%{_prefix}" \
    --root="%{buildroot}" \
    --record-rpm=files.lst

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files -f files.lst
%defattr(-,root,root)
%doc GPL README ChangeLog


openSUSE Build Service is sponsored by