From 6eda17a3eadab59e7803163cadd8b11be738063e8a84b97d2991a34d6f0fcab3 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 4 Jun 2025 06:16:50 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-text-unidecode?expand=0&rev=14 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + python-text-unidecode.changes | 53 ++++++++++++++++++++++++++++ python-text-unidecode.spec | 66 +++++++++++++++++++++++++++++++++++ text-unidecode-1.3.tar.gz | 3 ++ 5 files changed, 146 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-text-unidecode.changes create mode 100644 python-text-unidecode.spec create mode 100644 text-unidecode-1.3.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-text-unidecode.changes b/python-text-unidecode.changes new file mode 100644 index 0000000..ef07f77 --- /dev/null +++ b/python-text-unidecode.changes @@ -0,0 +1,53 @@ +------------------------------------------------------------------- +Wed Jun 4 06:09:06 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Fri Apr 21 12:37:25 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:45:23 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Tue Sep 10 09:49:12 UTC 2019 - Tomáš Chvátal + +- Update to 1.3: + * text-unidecode is now dual-licensed under Artistic License and GPL 1 / + GPL 2+, to cause less problems for distributions. + +------------------------------------------------------------------- +Thu Feb 14 14:48:04 UTC 2019 - Tomáš Chvátal + +- Update to 1.2: + * Use pkgutil instead of pkg_resources + * Cleanup readme +- Execute testsuite + +------------------------------------------------------------------- +Tue Dec 4 12:55:14 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Wed Nov 8 19:03:31 UTC 2017 - arun@gmx.de + +- specfile: + * add LICENSE to %doc + +- update to version 1.1: + * DOC use official Travis badge + * Test and document all modern Python versions + * Include license file in the source code and distribute it + * Enable pip cache in Travis CI + * Use pkg_resources to keep the package zip-safe + +------------------------------------------------------------------- +Sun Oct 22 18:51:55 UTC 2017 - arun@gmx.de + +- initial package diff --git a/python-text-unidecode.spec b/python-text-unidecode.spec new file mode 100644 index 0000000..3d858ca --- /dev/null +++ b/python-text-unidecode.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-text-unidecode +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-text-unidecode +Version: 1.3 +Release: 0 +Summary: The most basic Text::Unidecode port +License: Artistic-1.0 OR GPL-2.0-or-later +Group: Development/Languages/Python +URL: https://github.com/kmike/text-unidecode/ +Source: https://files.pythonhosted.org/packages/source/t/text-unidecode/text-unidecode-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +text-unidecode is the most basic port of the Text::Unidecode Perl library. + +There are other Python ports of Text::Unidecode (unidecode and +isounidecode). unidecode is GPL; isounidecode doesn’t support Python 3 +and uses too much memory. + +This port is licensed under Artistic License and supports both Python +2.x and 3.x. + +%prep +%setup -q -n text-unidecode-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/text_unidecode +%{python_sitelib}/text_unidecode-%{version}.dist-info + +%changelog diff --git a/text-unidecode-1.3.tar.gz b/text-unidecode-1.3.tar.gz new file mode 100644 index 0000000..8427455 --- /dev/null +++ b/text-unidecode-1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bad6603bb14d279193107714b288be206cac565dfa49aa5b105294dd5c4aab93 +size 76885