15
0
forked from pool/python-extras

- 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
This commit is contained in:
Sascha Peilicke
2013-01-14 13:22:47 +00:00
committed by Git OBS Bridge
parent c58b22ad47
commit 0127d0fb3f
2 changed files with 15 additions and 3 deletions

View File

@@ -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

View File

@@ -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