forked from pool/python-python-slugify
Accepting request 677434 from home:jayvdb:django
- Activated test suite using GitHub release - Update to v2.0.1 OBS-URL: https://build.opensuse.org/request/show/677434 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-slugify?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
78108b27ff
commit
dd877ce6a0
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-python-slugify
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 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
|
||||
@@ -17,21 +17,18 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_with test
|
||||
Name: python-python-slugify
|
||||
Version: 1.2.5
|
||||
Version: 2.0.1
|
||||
Release: 0
|
||||
Summary: Slugify application that handles Unicode
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/un33k/python-slugify
|
||||
Source: https://files.pythonhosted.org/packages/source/p/python-slugify/python-slugify-%{version}.tar.gz
|
||||
Source: https://github.com/un33k/python-slugify/archive/%{version}.tar.gz#/python-slugify-%{version}.tar.gz
|
||||
BuildRequires: %{python_module Unidecode >= 0.04.16}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module Unidecode >= 0.04.16}
|
||||
%endif
|
||||
Conflicts: python-awesome-slugify
|
||||
Requires: python-Unidecode >= 0.04.16
|
||||
BuildArch: noarch
|
||||
@@ -51,14 +48,11 @@ A Python Slugify application that handles Unicode
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
%python_exec ./test.py
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGELOG.md README.rst
|
||||
%doc CHANGELOG.md README.md
|
||||
%license LICENSE
|
||||
%python3_only %{_bindir}/slugify
|
||||
%{python_sitelib}/python_slugify-%{version}-py*.egg-info
|
||||
|
Reference in New Issue
Block a user