14
0

- Fix dependencies

- Run testsuite
- Package README

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytools?expand=0&rev=2
This commit is contained in:
Sascha Peilicke
2013-05-02 10:42:02 +00:00
committed by Git OBS Bridge
parent d8016c15af
commit c7bb4b775d
2 changed files with 14 additions and 3 deletions

View File

@@ -25,6 +25,9 @@ Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/p/pytools/pytools-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-distribute
# Test requirements:
BuildRequires: python-decorator
Requires: python-decorator
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()")}
@@ -49,16 +52,17 @@ nonetheless, here's what's on offer:
%setup -q -n pytools-%{version}
%build
CFLAGS="%{optflags}" python setup.py build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%clean
rm -rf %{buildroot}
%check
python setup.py test
%files
%defattr(-,root,root,-)
%doc README
%{python_sitelib}/*
%changelog