Группа :: Development/Python3
Пакет: python3-module-unicode_slugify
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname unicode_slugify
%def_without check
Name: python3-module-%oname
Version: 0.1.5
Release: alt5
Summary: A slugifier that works in unicode
License: BSD-3-Clause
BuildArch: noarch
Group: Development/Python3
Url: https://pypi.org/project/unicode-slugify
# https://github.com/mozilla/unicode-slugify.git
Source: %name-%version.tar
Patch1: %name-%version-alt.patch
BuildRequires(pre): rpm-build-intro >= 2.2.4
BuildRequires(pre): rpm-build-python3
BuildRequires: python3(six) python3(unidecode)
%description
Unicode Slugify is a slugifier that generates unicode slugs.
It was originally used in the Firefox Add-ons web site
to generate slugs for add-ons and add-on collections.
Many of these add-ons and collections had
unicode characters and required more than simple transliteration.
%prep
%setup
%patch1 -p1
%build
%python3_build
%install
%python3_install
%python3_prune
%check
python3 setup.py test
%files
%doc README.md LICENSE
%python3_sitelibdir/*
%exclude %python3_sitelibdir/%oname/tests.*
%changelog
…
Полный changelog можно просмотреть здесь
%define oname unicode_slugify
%def_without check
Name: python3-module-%oname
Version: 0.1.5
Release: alt5
Summary: A slugifier that works in unicode
License: BSD-3-Clause
BuildArch: noarch
Group: Development/Python3
Url: https://pypi.org/project/unicode-slugify
# https://github.com/mozilla/unicode-slugify.git
Source: %name-%version.tar
Patch1: %name-%version-alt.patch
BuildRequires(pre): rpm-build-intro >= 2.2.4
BuildRequires(pre): rpm-build-python3
BuildRequires: python3(six) python3(unidecode)
%description
Unicode Slugify is a slugifier that generates unicode slugs.
It was originally used in the Firefox Add-ons web site
to generate slugs for add-ons and add-on collections.
Many of these add-ons and collections had
unicode characters and required more than simple transliteration.
%prep
%setup
%patch1 -p1
%build
%python3_build
%install
%python3_install
%python3_prune
%check
python3 setup.py test
%files
%doc README.md LICENSE
%python3_sitelibdir/*
%exclude %python3_sitelibdir/%oname/tests.*
%changelog
…
Полный changelog можно просмотреть здесь