rpms/python-twisted-names/devel .cvsignore, 1.3, 1.4 python-twisted-names.spec, 1.6, 1.7 sources, 1.3, 1.4

Matthias Saou thias at fedoraproject.org
Tue Dec 23 21:30:28 UTC 2008


Author: thias

Update of /cvs/extras/rpms/python-twisted-names/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2154

Modified Files:
	.cvsignore python-twisted-names.spec sources 
Log Message:
Update to 8.1.0.



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/python-twisted-names/devel/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- .cvsignore	5 Sep 2007 07:12:41 -0000	1.3
+++ .cvsignore	23 Dec 2008 21:29:58 -0000	1.4
@@ -1 +1 @@
-TwistedNames-0.4.0.tar.bz2
+TwistedNames-8.1.0.tar.bz2


Index: python-twisted-names.spec
===================================================================
RCS file: /cvs/extras/rpms/python-twisted-names/devel/python-twisted-names.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- python-twisted-names.spec	30 Nov 2008 12:40:01 -0000	1.6
+++ python-twisted-names.spec	23 Dec 2008 21:29:58 -0000	1.7
@@ -1,23 +1,18 @@
-%{?!python:%define python python}
-%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
-
-%define origname TwistedNames
+%{!?python:%define python python}
+%{!?python_sitearch: %define python_sitearch %(%{python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 
 Name:           %{python}-twisted-names
-Version:        0.4.0
-Release:        5%{?dist}
-Summary:        A Twisted DNS implementation
-
+Version:        8.1.0
+Release:        2%{?dist}
+Summary:        Twisted DNS implementation
 Group:          Development/Libraries
 License:        MIT
-URL:            http://www.twistedmatrix.com
-Source0:        http://tmrc.mit.edu/mirror/twisted/Names/0.4/TwistedNames-%{version}.tar.bz2
+URL:            http://www.twistedmatrix.com/trac/wiki/TwistedNames
+Source0:        http://tmrc.mit.edu/mirror/twisted/Names/8.1/TwistedNames-%{version}.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires:  %{python}-twisted-core >= 2.5.0
+BuildRequires:  %{python}-twisted-core >= 8.1.0
 BuildRequires:  %{python}-devel
-
-Requires:       %{python}-twisted-core >= 2.5.0
+Requires:       %{python}-twisted-core >= 8.1.0
 
 # a noarch-turned-arch package should not have debuginfo
 %define debug_package %{nil}
@@ -25,48 +20,64 @@
 %description
 Twisted is an event-based framework for internet applications.
 
-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.
+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 that 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 -n %{origname}-%{version} -q
-chmod 644 doc/examples/dns-service.py
-chmod 644 doc/examples/gethostbyname.py
+%setup -q -n TwistedNames-%{version}
+
+# Fix doc file deps
+%{__chmod} -x doc/examples/*.py
 
 %build
+%{python} setup.py build
 
 %install
-rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install -O1 --root $RPM_BUILD_ROOT --install-purelib %{python_sitearch}
+%{__rm} -rf %{buildroot}
 
-%clean
-rm -rf $RPM_BUILD_ROOT
+# This is a pure python package, but extending the twisted namespace from
+# python-twisted-core, which is arch-specific, so it needs to go in sitearch
+%{python} setup.py install -O1 --skip-build \
+    --install-purelib %{python_sitearch} --root %{buildroot}
+
+# See if there's any egg-info
+if [ -f %{buildroot}%{python_sitearch}/Twisted*.egg-info ]; then
+    echo %{buildroot}%{python_sitearch}/Twisted*.egg-info |
+        %{__sed} -e 's|^%{buildroot}||'
+fi > egg-info
 
-%post -p %{_libexecdir}/twisted-dropin-cache
+%clean
+%{__rm} -rf %{buildroot}
 
-%postun -p %{_libexecdir}/twisted-dropin-cache
+%post
+if [ -x %{_libexecdir}/twisted-dropin-cache ]; then
+    %{_libexecdir}/twisted-dropin-cache || :
+fi
+
+%postun
+if [ -x %{_libexecdir}/twisted-dropin-cache ]; then
+    %{_libexecdir}/twisted-dropin-cache || :
+fi
 
-%files
+%files -f egg-info
 %defattr(-,root,root,-)
-%doc README LICENSE doc/*
-
+%doc README LICENSE doc/* NEWS
 %{python_sitearch}/twisted/names/
-
 %{python_sitearch}/twisted/plugins/twisted_names.py*
 
-%if 0%{?fedora} >= 9
-  %{python_sitearch}/Twisted_Names-%{version}-py?.?.egg-info
-%endif
-
 %changelog
+* Tue Dec 23 2008 Matthias Saou <http://freshrpms.net/> 8.1.0-2
+- Update to 8.1.0.
+- Merge back changes from Paul Howarth.
+- Make sure the scriplets never return a non-zero exit status.
+
 * Sun Nov 30 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm at gmail.com> - 0.4.0-5
 - Fix locations for Python 2.6
 


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/python-twisted-names/devel/sources,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- sources	5 Sep 2007 07:12:41 -0000	1.3
+++ sources	23 Dec 2008 21:29:58 -0000	1.4
@@ -1 +1 @@
-fae00c3c1489b6818d16b84f8ffcc807  TwistedNames-0.4.0.tar.bz2
+e5f49fc23bef015484dbd025bf835611  TwistedNames-8.1.0.tar.bz2




More information about the fedora-extras-commits mailing list