15
0
2010-11-22 14:10:41 +00:00
committed by Git OBS Bridge
parent 25dc2580db
commit 3755c7b8ee
4 changed files with 53 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
#
# spec file for package python-dnspython (Version 1.8.0)
# spec file for package python-dnspython (Version 1.9.1)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -15,19 +15,16 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: python-dnspython
BuildRequires: python-devel
Url: http://www.dnspython.org
License: Other License(s), see package, BSD
Group: Productivity/Networking/DNS/Utilities
AutoReqProv: on
Version: 1.8.0
Version: 1.9.1
Release: 1
License: Other License(s), see package, BSD
Summary: A DNS toolkit for Python
Source: http://www.dnspython.org/kits/stable/dnspython-%{version}.tar.gz
Url: http://www.dnspython.org
Group: Productivity/Networking/DNS/Utilities
Source: http://www.dnspython.org/kits/stable/dnspython-%{version}.tar.bz2
BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{py_requires}
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
@@ -44,23 +41,20 @@ 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.
Authors:
--------
Bob Halley <halley@dnspython.org>
%prep
%setup -n dnspython-%{version}
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
find -name .\* -delete
export CFLAGS="%{optflags}"
%{__python} setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
chmod 644 {examples,tests}/*.py
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
%{__chmod} 644 {examples,tests}/*.py
%clean
rm -rf $RPM_BUILD_ROOT
%{__rm} -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root)