Accepting request 521967 from home:mimi_vx:branches:devel:languages:python
- convert to singlespec package OBS-URL: https://build.opensuse.org/request/show/521967 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmdln?expand=0&rev=16
This commit is contained in:
parent
c08bfaf178
commit
278cfac35c
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 7 09:49:23 UTC 2017 - mimi.vx@gmail.com
|
||||||
|
|
||||||
|
- convert to singlespec package
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat May 2 15:15:13 UTC 2015 - benoit.monin@gmx.fr
|
Sat May 2 15:15:13 UTC 2015 - benoit.monin@gmx.fr
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-cmdln
|
# spec file for package python-cmdln
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,24 +16,22 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-cmdln
|
Name: python-cmdln
|
||||||
Version: 2.0.0
|
Version: 2.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: https://github.com/trentm/cmdln
|
|
||||||
Summary: An improved cmd.py for Writing Multi-command Scripts and Shells
|
Summary: An improved cmd.py for Writing Multi-command Scripts and Shells
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Source: https://pypi.python.org/packages/source/c/cmdln/cmdln-%{version}.zip
|
Url: https://github.com/trentm/cmdln
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Source: https://files.pythonhosted.org/packages/source/c/cmdln/cmdln-%{version}.zip
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module base}
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: tcl
|
BuildRequires: tcl
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
%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()")}
|
|
||||||
%else
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
`cmdln.py` is an extension of Python's default `cmd.py` module that
|
`cmdln.py` is an extension of Python's default `cmd.py` module that
|
||||||
@ -52,18 +50,16 @@ sed -i '/^#!/d' lib/cmdln.py
|
|||||||
chmod -x examples/*
|
chmod -x examples/*
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
cd test && python test.py
|
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc LICENSE.txt docs/ examples/
|
%doc LICENSE.txt docs/ examples/
|
||||||
%{python_sitelib}/cmdln-%{version}-py%{py_ver}.egg-info
|
|
||||||
%{python_sitelib}/cmdln*
|
%{python_sitelib}/cmdln*
|
||||||
|
%pycache_only %{python3_sitelib}/__pycache__/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user