Accepting request 510123 from home:TheBlackCat:branches:devel:languages:python
Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/510123 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sh?expand=0&rev=12
This commit is contained in:
parent
eaac42122b
commit
3a5e0f8173
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 13 15:29:32 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Implement single-spec version.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 12 15:34:12 UTC 2017 - aplanas@suse.com
|
Mon Jun 12 15:34:12 UTC 2017 - aplanas@suse.com
|
||||||
|
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without test
|
||||||
Name: python-sh
|
Name: python-sh
|
||||||
Version: 1.12.14
|
Version: 1.12.14
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -25,9 +27,15 @@ Group: Development/Languages/Python
|
|||||||
Url: https://github.com/amoffat/sh
|
Url: https://github.com/amoffat/sh
|
||||||
Source: https://pypi.python.org/packages/source/s/sh/sh-%{version}.tar.gz
|
Source: https://pypi.python.org/packages/source/s/sh/sh-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %{with test}
|
||||||
|
BuildRequires: %{python_module coverage}
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python-coverage
|
|
||||||
BuildRequires: python-setuptools
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
sh is a full-fledged subprocess replacement for Python 2.6 - 3.6, PyPy
|
sh is a full-fledged subprocess replacement for Python 2.6 - 3.6, PyPy
|
||||||
@ -43,21 +51,21 @@ sh is not a collection of system commands implemented in Python.
|
|||||||
%setup -q -n sh-%{version}
|
%setup -q -n sh-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install \
|
%python_install
|
||||||
--prefix=%{_prefix} \
|
|
||||||
--root=%{buildroot}
|
|
||||||
|
|
||||||
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
python test.py
|
%python_exec test.py
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc CHANGELOG.md LICENSE.txt README.rst
|
%doc CHANGELOG.md LICENSE.txt README.rst
|
||||||
%{python_sitelib}/sh.py
|
%{python_sitelib}/sh.py*
|
||||||
%{python_sitelib}/sh.pyc
|
%pycache_only %{python_sitelib}/__pycache__/sh.*py*
|
||||||
%{python_sitelib}/sh-%{version}-*.egg-info
|
%{python_sitelib}/sh-%{version}-*.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user