From 0ac56a05651bc1005da6eed239781bdf9e53b8ae043a624d9182224a26ea4edc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 27 May 2025 10:25:51 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-extratools?expand=0&rev=11 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + extratools-0.8.2.1.tar.gz | 3 ++ python-extratools.changes | 25 +++++++++++ python-extratools.spec | 89 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 141 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 extratools-0.8.2.1.tar.gz create mode 100644 python-extratools.changes create mode 100644 python-extratools.spec 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/extratools-0.8.2.1.tar.gz b/extratools-0.8.2.1.tar.gz new file mode 100644 index 0000000..e3ec4f3 --- /dev/null +++ b/extratools-0.8.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d1410f4ffb59a508a3ec4b9f801eb378c6ce051f70360001536824542d6deb7a +size 25589 diff --git a/python-extratools.changes b/python-extratools.changes new file mode 100644 index 0000000..63216a8 --- /dev/null +++ b/python-extratools.changes @@ -0,0 +1,25 @@ +------------------------------------------------------------------- +Tue May 27 10:25:42 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Tue May 26 06:34:11 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- +Mon Mar 11 11:15:07 UTC 2019 - Tomáš Chvátal + +- Update to 0.8.2.1: + * no upstream changelog + +------------------------------------------------------------------- +Tue Dec 4 12:47:51 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Mon Jul 2 02:56:13 UTC 2018 - toddrme2178@gmail.com + +- Initial version diff --git a/python-extratools.spec b/python-extratools.spec new file mode 100644 index 0000000..db7ec5b --- /dev/null +++ b/python-extratools.spec @@ -0,0 +1,89 @@ +# +# spec file for package python-extratools +# +# 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/ +# + + +Name: python-extratools +Version: 0.8.2.1 +Release: 0 +Summary: 145+ extra higher-level functional tools +License: MIT +Group: Development/Languages/Python +URL: https://github.com/chuanconggao/extratools +Source: https://files.pythonhosted.org/packages/source/e/extratools/extratools-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-RegexOrder >= 0.2 +Requires: python-TagStats >= 0.1.2 +Requires: python-sh >= 1.12.13 +Requires: python-sortedcontainers >= 1.5.10 +Requires: python-toolz >= 0.9.0 +Requires(post): alts +Requires(postun): alts +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module RegexOrder >= 0.2} +BuildRequires: %{python_module TagStats >= 0.1.2} +BuildRequires: %{python_module sh >= 1.12.13} +BuildRequires: %{python_module sortedcontainers >= 1.5.10} +BuildRequires: %{python_module toolz >= 0.9.0} +# /SECTION +%python_subpackages + +%description +145+ extra higher-level functional tools that go beyond standard +library's itertools, functools, etc. and popular third-party +libraries like toolz, funcy, and more-itertools. + +%prep +%setup -q -n extratools-%{version} +sed -i -e '/^#!\s*\//, 1d' extratools/*.py +sed -i -e '/^#!\s*\//, 1d' extratools/*/*.js +chmod a-x extratools/*/*.js + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/extratools-teststats +%python_clone -a %{buildroot}%{_bindir}/extratools-remap +%python_clone -a %{buildroot}%{_bindir}/extratools-flatten +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%post +%python_install_alternative extratools-teststats +%python_install_alternative extratools-remap +%python_install_alternative extratools-flatten + +%postun +%python_uninstall_alternative extratools-teststats +%python_uninstall_alternative extratools-remap +%python_uninstall_alternative extratools-flatten + +%files %{python_files} +%doc README.md +%license LICENSE +%python_alternative %{_bindir}/extratools-flatten +%python_alternative %{_bindir}/extratools-remap +%python_alternative %{_bindir}/extratools-teststats +%{python_sitelib}/extratools +%{python_sitelib}/extratools-%{version}*-info + +%changelog