Accepting request 491623 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/491623 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docopt?expand=0&rev=5
This commit is contained in:
commit
e464295436
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 25 16:09:02 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Implement single-spec version
|
||||||
|
- Fix source URL.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 14 14:48:35 UTC 2015 - ms@suse.com
|
Mon Sep 14 14:48:35 UTC 2015 - ms@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-docopt
|
# spec file for package python-docopt
|
||||||
#
|
#
|
||||||
# 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,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-docopt
|
Name: python-docopt
|
||||||
Version: 0.6.2
|
Version: 0.6.2
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -23,15 +24,14 @@ Summary: Pythonic argument parser, that will make you smile
|
|||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://docopt.org
|
Url: http://docopt.org
|
||||||
Source: https://pypi.python.org/packages/source/d/docopt/docopt-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/d/docopt/docopt-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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()")}
|
|
||||||
%else
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
docopt creates beautiful command-line interfaces.
|
docopt creates beautiful command-line interfaces.
|
||||||
@ -47,20 +47,20 @@ and instead can write only the help message--the way you want it.
|
|||||||
docopt helps you create most beautiful command-line interfaces
|
docopt helps you create most beautiful command-line interfaces
|
||||||
easily.
|
easily.
|
||||||
|
|
||||||
docopt is tested with Python 2.5, 2.6, 2.7, 3.2, 3.3 and PyPy.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n docopt-%{version}
|
%setup -q -n docopt-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE-MIT README.rst
|
%doc LICENSE-MIT README.rst
|
||||||
|
%doc examples/
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user