SPECS: python-TwistedNames.spec (NEW) - based on python-TwistedWeb
wrobell
wrobell at pld-linux.org
Wed Jan 10 00:05:18 CET 2007
Author: wrobell Date: Tue Jan 9 23:05:18 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- based on python-TwistedWeb
---- Files affected:
SPECS:
python-TwistedNames.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/python-TwistedNames.spec
diff -u /dev/null SPECS/python-TwistedNames.spec:1.1
--- /dev/null Wed Jan 10 00:05:18 2007
+++ SPECS/python-TwistedNames.spec Wed Jan 10 00:05:13 2007
@@ -0,0 +1,67 @@
+# $Revision$, $Date$
+%define module TwistedNames
+%define major 0.3
+%define minor 0
+
+Summary: Domain name server and a client resolver library
+Name: python-%{module}
+Version: %{major}.%{minor}
+Release: 1
+License: MIT
+Group: Libraries/Python
+Source0: http://tmrc.mit.edu/mirror/twisted/Names/%{major}/%{module}-%{version}.tar.bz2
+# Source0-md5: 5aa672d0e26718466351351e7bfcf22a
+URL: http://twistedmatrix.com/projects/web/
+BuildRequires: ZopeInterface
+BuildRequires: python-TwistedCore >= 2.4.0
+BuildRequires: python-devel >= 2.2
+Requires: python-TwistedCore >= 2.4.0
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Twisted Names is both a domain name server as well as a client resolver
+library. Twisted Names comes with an "out of the box" nameserver which can
+read most BIND-syntax zone files as well as a simple Python-based
+configuration format. Twisted Names can act as an authoritative server,
+perform zone transfers from a master to act as a secondary, act as a
+caching nameserver, or any combination of these. Twisted Names' client
+resolver library provides functions to query for all commonly used record
+types as well as a replacement for the blocking gethostbyname() function
+provided by the Python stdlib socket module.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+python setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+python setup.py install \
+ --install-purelib=%{py_sitedir} \
+ --root=$RPM_BUILD_ROOT \
+ --optimize=2
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE NEWS README
+%{py_sitedir}/*.egg-info
+%{py_sitedir}/twisted/names
+%{py_sitedir}/twisted/plugins/*
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2007/01/09 23:05:13 wrobell
+- based on python-TwistedWeb
+
================================================================
More information about the pld-cvs-commit
mailing list