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> 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 # 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 # 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
@@ -23,16 +23,17 @@ Release: 0
Summary: Python library to capitalize strings Summary: Python library to capitalize strings
License: MIT License: MIT
Group: Development/Languages/Python 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 Source: https://files.pythonhosted.org/packages/source/t/titlecase/titlecase-%{version}.tar.gz
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module nose >= 1.0} BuildRequires: %{python_module nose >= 1.0}
# /SECTION # /SECTION
BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@@ -50,14 +51,21 @@ York Times Manual of Style, plus some others like 'vs' and 'v'.
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/titlecase
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_exec setup.py test %python_exec setup.py test
%post
%python_install_alternative titlecase
%postun
%python_uninstall_alternative titlecase
%files %{python_files} %files %{python_files}
%doc README.rst %doc README.rst
%python3_only %{_bindir}/titlecase %python_alternative %{_bindir}/titlecase
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog