rpms/python-pydns/devel python-pydns.spec,1.1,1.2

Sean Reifschneider (jafo) fedora-extras-commits at redhat.com
Mon Jan 22 05:35:43 UTC 2007


Author: jafo

Update of /cvs/extras/rpms/python-pydns/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17454

Modified Files:
	python-pydns.spec 
Log Message:
Fixing encoding issue with the source, to build under devel.



Index: python-pydns.spec
===================================================================
RCS file: /cvs/extras/rpms/python-pydns/devel/python-pydns.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- python-pydns.spec	1 Sep 2006 02:04:43 -0000	1.1
+++ python-pydns.spec	22 Jan 2007 05:35:13 -0000	1.2
@@ -2,7 +2,7 @@
 
 Name:           python-pydns
 Version:        2.3.0
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Python module for DNS (Domain Name Service)
 
 Group:          Development/Languages
@@ -12,6 +12,7 @@
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
+BuildRequires:  python-devel
 
 %description
 This is a another release of the pydns code, as originally written by
@@ -25,6 +26,15 @@
 %define namewithoutpythonprefix %(echo %{name} | sed 's/^python-//')
 %prep
 %setup -q -n %{namewithoutpythonprefix}-%{version}
+#  fix encoding of files
+for file in DNS/*.py;
+do
+	echo '# -*- coding: latin-1 -*-' >"${file}".new
+	cat "${file}" >>"${file}".new
+	cat "${file}".new >"${file}"
+	rm "${file}".new
+	head "${file}" #@@@
+done
 
 
 %build
@@ -47,6 +57,9 @@
 %{python_sitelib}/DNS/*.py*
 
 %changelog
+* Sun Jan 21 2007 Sean Reifschneider <jafo at tummy.com> 2.3.0-5
+- Adding encoding of the Python files.
+
 * Thu Aug 31 2006 Sean Reifschneider <jafo at tummy.com> 2.3.0-4
 - Fixing .spec file changelog entries.
 




More information about the scm-commits mailing list