[pymongo/el5/master] - Remove ez_setup from setup.py - Use echo instead of truncate
Silas Sewell
silas at fedoraproject.org
Tue Nov 9 10:44:34 UTC 2010
commit 0d836477b5ebe62c8cfd54a25c0162c2a6853f92
Author: Silas Sewell <silas at sewell.ch>
Date: Tue Nov 9 05:44:17 2010 -0500
- Remove ez_setup from setup.py
- Use echo instead of truncate
pymongo.spec | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/pymongo.spec b/pymongo.spec
index 379ce32..c6d532e 100644
--- a/pymongo.spec
+++ b/pymongo.spec
@@ -26,7 +26,7 @@
Name: pymongo
Version: 1.9
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: Python driver for MongoDB
Group: Development/Languages
@@ -100,6 +100,8 @@ embedding of objects and arrays within other objects and arrays.
%prep
%setup -q
+sed -i '/from ez_setup import use_setuptools/d' setup.py
+sed -i '/use_setuptools()/d' setup.py
%if 0%{?with_python3}
rm -rf %{py3dir}
@@ -143,6 +145,7 @@ rm -rf %{buildroot}
%defattr(-,root,root,-)
%doc LICENSE PKG-INFO README.rst doc
%{python_sitepath}/%{name}
+%{python_sitearch}/%{name}-%{version}-*.egg-info
%if 0%{?with_python3}
%files -n python3-pymongo
@@ -190,11 +193,15 @@ exclude+='|^test_threads$'
exclude+=')'
# Exclude tests that require an active MongoDB connection
pushd test
-truncate --size=0 __init__.py
+echo "" > __init__.py
nosetests --exclude="$exclude"
popd
%changelog
+* Tue Nov 09 2010 Silas Sewell <silas at sewell.ch> - 1.9-7
+- Remove ez_setup from setup.py
+- Use echo instead of truncate
+
* Mon Nov 08 2010 Silas Sewell <silas at sewell.ch> - 1.9-6
- Make path conditional (more big endian issues)
More information about the scm-commits
mailing list