Accepting request 655396 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/655396
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docopt?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2018-12-06 11:15:07 +00:00 committed by Git OBS Bridge
commit db5adf1231
2 changed files with 21 additions and 21 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Dec 5 01:03:34 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
- Remove rhetorics and bias from descriptions.
-------------------------------------------------------------------
Tue Dec 4 12:47:24 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 10 18:42:12 UTC 2017 - toddrme2178@gmail.com Mon Jul 10 18:42:12 UTC 2017 - toddrme2178@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-docopt # spec file for package python-docopt
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 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
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@ -20,38 +20,28 @@
Name: python-docopt Name: python-docopt
Version: 0.6.2 Version: 0.6.2
Release: 0 Release: 0
Summary: Pythonic argument parser, that will make you smile Summary: Pythonic argument parser
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Url: http://docopt.org URL: http://docopt.org
Source: https://files.pythonhosted.org/packages/source/d/docopt/docopt-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/d/docopt/docopt-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
docopt creates beautiful command-line interfaces. docopt creates command-line interfaces.
Isn't it awesome how optparse and argparse generate help This way one does not need to write repeatable parser-code,
messages based on your code?! and instead can write only the help message.
Hell no! You know what's awesome? It's when the option parser is
generated based on the beautiful help message that you write yourself!
This way you don't need to write this stupid repeatable parser-code,
and instead can write only the help message--the way you want it.
docopt helps you create most beautiful command-line interfaces
easily.
%prep %prep
%setup -q -n docopt-%{version} %setup -q -n docopt-%{version}
# Fix wrong-script-interpreter # Fix wrong-script-interpreter
sed -i "s|#! /usr/bin/env python||" examples/git/git.py sed -i "s|#! %{_bindir}/env python||" examples/git/git.py
%build %build
%python_build %python_build
@ -61,8 +51,8 @@ sed -i "s|#! /usr/bin/env python||" examples/git/git.py
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %license LICENSE-MIT
%doc LICENSE-MIT README.rst %doc README.rst
%doc examples/ %doc examples/
%{python_sitelib}/* %{python_sitelib}/*