packages: python-pydns/python-pydns.spec (NEW) - new; from fedora

glen glen at pld-linux.org
Mon Nov 28 12:54:30 CET 2011


Author: glen                         Date: Mon Nov 28 11:54:30 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new; from fedora

---- Files affected:
packages/python-pydns:
   python-pydns.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/python-pydns/python-pydns.spec
diff -u /dev/null packages/python-pydns/python-pydns.spec:1.1
--- /dev/null	Mon Nov 28 12:54:30 2011
+++ packages/python-pydns/python-pydns.spec	Mon Nov 28 12:54:25 2011
@@ -0,0 +1,69 @@
+# $Revision$, $Date$
+%define 	module	pydns
+Summary:	Python module for DNS (Domain Name Service)
+Name:		python-%{module}
+Version:	2.3.3
+Release:	7
+License:	Python
+Group:		Development/Languages
+URL:		http://pydns.sourceforge.net/
+Source0:	http://downloads.sourceforge.net/pydns/%{module}-%{version}.tar.gz
+# Source0-md5:	40001fb178de5920e7d67c000a782d6a
+BuildRequires:	python-devel
+BuildRequires:	rpmbuild(macros) >= 1.219
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a another release of the pydns code, as originally written by
+Guido van Rossum, and with a hopefully nicer API bolted over the top
+of it by Anthony Baxter.
+
+This package contains a module (dnslib) that implements a DNS (Domain
+Name Server) client, plus additional modules that define some symbolic
+constants used by DNS (dnstype, dnsclass, dnsopcode).
+
+%prep
+%setup -q -n %{module}-%{version}
+
+# Some files are latin-1 encoded but are incorrectly labelled as UTF-8 by
+# upstream (see rhbz:620265)
+#
+# Convert them to actually be UTF-8, preserving the (now-correct) encoding
+# declaration (preserving timestamps):
+for file in DNS/Lib.py DNS/Type.py ; do
+	iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
+	touch -r $file $file.new && \
+	mv $file.new $file
+done
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CREDITS.txt PKG-INFO README-guido.txt README.txt
+%dir %{py_sitescriptdir}/DNS
+%{py_sitescriptdir}/DNS/*.py[co]
+%{py_sitescriptdir}/pydns-%{version}-py*.egg-info
+
+%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  2011/11/28 11:54:25  glen
+- new; from fedora
================================================================


More information about the pld-cvs-commit mailing list