[python-zope-datetime] Initial import

cheeselee cheeselee at fedoraproject.org
Mon Aug 13 02:52:52 UTC 2012


commit 26c6c6bea24b20eb727f1be6521c9834b3ca62cc
Author: Robin Lee <cheeselee at fedoraproject.org>
Date:   Mon Aug 13 10:52:43 2012 +0800

    Initial import

 .gitignore                                 |    1 +
 python-zope-datetime-3.4.1-run_tests.patch |   10 +++++
 python-zope-datetime.spec                  |   61 ++++++++++++++++++++++++++++
 sources                                    |    1 +
 4 files changed, 73 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..feafa24 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/zope.datetime-3.4.1.tar.gz
diff --git a/python-zope-datetime-3.4.1-run_tests.patch b/python-zope-datetime-3.4.1-run_tests.patch
new file mode 100644
index 0000000..8a133b4
--- /dev/null
+++ b/python-zope-datetime-3.4.1-run_tests.patch
@@ -0,0 +1,10 @@
+--- setup.py	2012-03-25 14:51:54.562359216 +0800
++++ setup.py.new	2012-03-25 14:52:02.422161642 +0800
+@@ -42,6 +42,7 @@
+       package_dir = {'': 'src'},
+ 
+       namespace_packages=['zope',],
++      test_suite='zope.datetime',
+       install_requires=['setuptools'],
+       include_package_data = True,
+ 
diff --git a/python-zope-datetime.spec b/python-zope-datetime.spec
new file mode 100644
index 0000000..76fa08c
--- /dev/null
+++ b/python-zope-datetime.spec
@@ -0,0 +1,61 @@
+%global modname zope.datetime
+
+Summary: Zope datetime utilities
+Name: python-zope-datetime
+Version: 3.4.1
+Release: 1%{?dist}
+Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz
+License: ZPLv2.1
+Group: Development/Libraries
+BuildArch: noarch
+URL: http://pypi.python.org/pypi/zope.datetime
+# register the test suite in setup.py
+Patch0: python-zope-datetime-3.4.1-run_tests.patch
+
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+
+
+%description
+This package provides commonly used date and time related utility functions.
+
+%prep
+%setup -q -n %{modname}-%{version}
+%patch0 -p0 -b .run_tests
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install --root=%{buildroot}
+
+%check
+%{__python} setup.py test
+
+%files
+%doc CHANGES.txt COPYRIGHT.txt LICENSE.txt
+# Co-own %%{python_sitelib}/zope/
+%dir %{python_sitelib}/zope/
+%{python_sitelib}/zope/datetime/
+%exclude %{python_sitelib}/zope/datetime/tests/
+%{python_sitelib}/%{modname}-*.egg-info
+%{python_sitelib}/%{modname}-*-nspkg.pth
+
+
+%changelog
+* Sun Mar 25 2012 Robin Lee <cheeselee at fedoraproject.org> - 3.4.1-1
+- Update to 3.4.1
+- Drop BR python-zope-testing
+
+* Sat Sep 18 2010 Robin Lee <robinlee.sysu at gmail.com> - 3.4.0-3
+- Co-own %%{python_sitelib}/zope/
+
+* Sat Sep 18 2010 Robin Lee <robinlee.sysu at gmail.com> - 3.4.0-2
+- Requires: python-zope-filesystem and python-setuptools removed
+- Spec cleaned up
+- Exlude the tests from installation
+- Add a small patch and %%check section and run tests
+- BR: python-zope-testing added for tests
+
+* Wed Jun 16 2010 Robin Lee <robinlee.sysu at gmail.com> - 3.4.0-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..abe098c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4dde22d34f41a0a4f0c5a345e6d11ee9  zope.datetime-3.4.1.tar.gz


More information about the scm-commits mailing list