forked from pool/python-pytools
- 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:
committed by
Git OBS Bridge
parent
d8016c15af
commit
c7bb4b775d
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 2 10:41:40 UTC 2013 - speilicke@suse.com
|
||||||
|
|
||||||
|
- Fix dependencies
|
||||||
|
- Run testsuite
|
||||||
|
- Package README
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 1 15:54:27 UTC 2013 - prusnak@opensuse.org
|
Wed May 1 15:54:27 UTC 2013 - prusnak@opensuse.org
|
||||||
|
|
||||||
|
@@ -25,6 +25,9 @@ Group: Development/Languages/Python
|
|||||||
Source: http://pypi.python.org/packages/source/p/pytools/pytools-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/p/pytools/pytools-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-distribute
|
BuildRequires: python-distribute
|
||||||
|
# Test requirements:
|
||||||
|
BuildRequires: python-decorator
|
||||||
|
Requires: python-decorator
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
%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_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}
|
%setup -q -n pytools-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags}" python setup.py build
|
python setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
|
||||||
%clean
|
%check
|
||||||
rm -rf %{buildroot}
|
python setup.py test
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
%doc README
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user