From 0127d0fb3f7a8c59b0a4252efbd6ead046dc12fbcc63aa7abbbe9d171cf9427e Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 14 Jan 2013 13:22:47 +0000 Subject: [PATCH] - Run testsuite - Add documentation - Use SPDX style license (MIT) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-extras?expand=0&rev=2 --- python-extras.changes | 7 +++++++ python-extras.spec | 11 ++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/python-extras.changes b/python-extras.changes index 2ad11fc..1f00ab2 100644 --- a/python-extras.changes +++ b/python-extras.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jan 14 13:24:03 UTC 2013 - saschpe@suse.de + +- Run testsuite +- Add documentation +- Use SPDX style license (MIT) + ------------------------------------------------------------------- Mon Jan 14 12:41:11 UTC 2013 - dmueller@suse.com diff --git a/python-extras.spec b/python-extras.spec index 260ee8c..2ce555a 100644 --- a/python-extras.spec +++ b/python-extras.spec @@ -18,16 +18,17 @@ Name: python-extras Version: 0.0.2 Release: 0 -License: MIT License +License: MIT Summary: Useful extra bits for Python Url: https://github.com/testing-cabal/extras Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/e/extras/extras-%{version}.tar.gz BuildRequires: python-devel +BuildRequires: python-nose +BuildRequires: python-testtools BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %else BuildArch: noarch %endif @@ -41,13 +42,17 @@ general use outside of a testing context. %setup -q -n extras-%{version} %build -CFLAGS="%{optflags}" python setup.py build +python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%check +nosetests + %files %defattr(-,root,root,-) +%doc LICENSE NEWS README.rst %{python_sitelib}/* %changelog