rpms/python-dns/devel python-dns.spec,1.5,1.6

Jeffrey C. Ollie (jcollie) fedora-extras-commits at redhat.com
Tue Oct 9 16:26:56 UTC 2007


Author: jcollie

Update of /cvs/pkgs/rpms/python-dns/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8975

Modified Files:
	python-dns.spec 
Log Message:
Follow new Python egg packaging specs.


Index: python-dns.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-dns/devel/python-dns.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- python-dns.spec	11 Jan 2007 16:31:35 -0000	1.5
+++ python-dns.spec	9 Oct 2007 16:26:23 -0000	1.6
@@ -2,7 +2,7 @@
 
 Name:           python-dns
 Version:        1.5.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        DNS toolkit for Python
 
 Group:          Development/Languages
@@ -12,7 +12,11 @@
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
-BuildRequires:  python-devel
+%if 0%{?fedora} >= 8
+BuildRequires: python-setuptools-devel
+%else
+BuildRequires: python-setuptools
+%endif
 
 %description
 dnspython is a DNS toolkit for Python. It supports almost all record
@@ -32,11 +36,11 @@
 find examples -type f | xargs chmod a-x
 
 %build
-CFLAGS="%{optflags}" %{__python} setup.py build
+CFLAGS="%{optflags}" %{__python} -c 'import setuptools; execfile("setup.py")' build
 
 %install
 rm -rf %{buildroot}
-%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+%{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root %{buildroot}
 
 %check
 pushd tests
@@ -56,9 +60,13 @@
 %defattr(-,root,root,-)
 %doc ChangeLog LICENSE README TODO examples
 
+%{python_sitelib}/*egg-info
 %{python_sitelib}/dns
 
 %changelog
+* Tue Oct  9 2007 Jeffrey C. Ollie <jeff at ocjtech.us> - 1.5.0-2
+- Follow new Python egg packaging specs
+
 * Thu Jan 11 2007 Jeffrey C. Ollie <jeff at ocjtech.us> - 1.5.0-1
 - Update to 1.5.0
 




More information about the fedora-extras-commits mailing list