From 2c56cb3a0f69dfc877828cbbc68fc55491768026a281dc69ee9f7b681143ce14 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 27 Apr 2017 14:57:43 +0000 Subject: [PATCH] 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 --- python-docopt.changes | 6 ++++++ python-docopt.spec | 26 +++++++++++++------------- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/python-docopt.changes b/python-docopt.changes index 4f9b99a..79cc0f8 100644 --- a/python-docopt.changes +++ b/python-docopt.changes @@ -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 diff --git a/python-docopt.spec b/python-docopt.spec index e1a2796..0fde07f 100644 --- a/python-docopt.spec +++ b/python-docopt.spec @@ -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