Accepting request 491056 from home:TheBlackCat:branches:devel:languages:python

- Implement single-spec version
- Fix source URL.

OBS-URL: https://build.opensuse.org/request/show/491056
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docopt?expand=0&rev=9
This commit is contained in:
Todd R 2017-04-27 14:57:43 +00:00 committed by Git OBS Bridge
parent 3bf268a3e9
commit 2c56cb3a0f
2 changed files with 19 additions and 13 deletions

View File

@ -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

View File

@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@ -16,6 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-docopt
Version: 0.6.2
Release: 0
@ -23,15 +24,14 @@ Summary: Pythonic argument parser, that will make you smile
License: MIT
Group: Development/Languages/Python
Url: http://docopt.org
Source: https://pypi.python.org/packages/source/d/docopt/docopt-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
Source: https://files.pythonhosted.org/packages/source/d/docopt/docopt-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
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
%endif
%python_subpackages
%description
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
easily.
docopt is tested with Python 2.5, 2.6, 2.7, 3.2, 3.3 and PyPy.
%prep
%setup -q -n docopt-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE-MIT README.rst
%doc examples/
%{python_sitelib}/*
%changelog