[python-mox/f14/master] Initial import

Silas Sewell silas at fedoraproject.org
Thu Nov 4 16:05:44 UTC 2010


commit 309ec516b31b5bef64326ed036f75e0132018d2c
Author: Silas Sewell <silas at sewell.ch>
Date:   Tue Nov 2 10:37:01 2010 -0400

    Initial import

 .gitignore      |    1 +
 python-mox.spec |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources         |    1 +
 3 files changed, 56 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..17d4b7a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mox-0.5.3.tar.gz
diff --git a/python-mox.spec b/python-mox.spec
new file mode 100644
index 0000000..775507d
--- /dev/null
+++ b/python-mox.spec
@@ -0,0 +1,54 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+%global upstream_name mox
+
+Name:           python-%{upstream_name}
+Version:        0.5.3
+Release:        2%{?dist}
+Summary:        Mock object framework
+
+Group:          Development/Languages
+License:        ASL 2.0
+URL:            http://code.google.com/p/pymox
+Source0:        http://pypi.python.org/packages/source/m/mox/mox-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+BuildRequires:  python-devel
+
+%description
+Mox is a mock object framework for Python based on the Java mock object
+framework EasyMock.
+
+%prep
+%setup -q -n %{upstream_name}-%{version}
+# Fix non-executable-script error
+sed -i '/^#!\/usr\/bin\/python2.4$/,+1 d' mox.py
+sed -i '/^#!\/usr\/bin\/python2.4$/,+1 d' stubout.py
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf %{buildroot}
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+
+%check
+%{__python} mox_test.py
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING README
+%{python_sitelib}/%{upstream_name}.py*
+%{python_sitelib}/stubout.py*
+%{python_sitelib}/%{upstream_name}-%{version}*.egg-info
+
+%changelog
+* Tue Oct 26 2010 Silas Sewell <silas at sewell.ch> - 0.5.3-2
+- Fix various issues relating to review (shebangs, url, etc..)
+
+* Wed Oct 13 2010 Silas Sewell <silas at sewell.ch> - 0.5.3-1
+- Initial package
diff --git a/sources b/sources
index e69de29..a69c8c3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6de7371e7e8bd9e2dad3fef2646f4a43  mox-0.5.3.tar.gz


More information about the scm-commits mailing list