14
0

Accepting request 806911 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/806911
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-titlecase?expand=0&rev=5
This commit is contained in:
Tomáš Chvátal
2020-05-18 13:02:50 +00:00
committed by Git OBS Bridge
parent a22d7aaa62
commit c394b5f908
2 changed files with 18 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 18 09:10:30 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Tue Dec 4 12:55:19 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-titlecase
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,16 +23,17 @@ Release: 0
Summary: Python library to capitalize strings
License: MIT
Group: Development/Languages/Python
Url: https://github.com/ppannuto/python-titlecase
URL: https://github.com/ppannuto/python-titlecase
Source: https://files.pythonhosted.org/packages/source/t/titlecase/titlecase-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module nose >= 1.0}
# /SECTION
BuildArch: noarch
%python_subpackages
%description
@@ -50,14 +51,21 @@ York Times Manual of Style, plus some others like 'vs' and 'v'.
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/titlecase
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%post
%python_install_alternative titlecase
%postun
%python_uninstall_alternative titlecase
%files %{python_files}
%doc README.rst
%python3_only %{_bindir}/titlecase
%python_alternative %{_bindir}/titlecase
%{python_sitelib}/*
%changelog