chore(sync): frawhide -> f42 (#6873)

This commit is contained in:
madomado
2025-10-25 23:48:24 +08:00
committed by GitHub
parent 7137232bfb
commit 1f211c70e3
62 changed files with 179 additions and 85 deletions
+9
View File
@@ -0,0 +1,9 @@
project pkg {
arches = ["x86_64"]
rpm {
spec = "python-colorthief.spec"
}
labels {
updbranch = 1
}
}
@@ -0,0 +1,77 @@
## Spec originally from Fedora, only modified for multibranch support and Terra changes
## ...I don't know why they have this here?
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
%global pypi_name colorthief
Name: python-%{pypi_name}
Version: 0.2.1
Release: 1%{?dist}
Summary: Grabs the dominant color or a representative color palette from an image
# https://gitlab.com/fedora/legal/fedora-license-data/-/issues/382
# License file provided by Python module, see:
# rpm -q --licensefiles {python3_sitelib}/{name}-{version}.dist-info/LICENSE
License: BSD-3-Clause
URL: https://github.com/fengsp/color-thief-py
Source0: %{pypi_source}
BuildRequires: pyproject-rpm-macros
BuildRequires: python3-devel
BuildRequires: python3dist(pillow)
BuildRequires: python3dist(pip)
BuildRequires: python3dist(setuptools)
BuildArch: noarch
Packager: Gilver E. <rockgrub@disroot.org>
%global _description %{expand:
A Python module for grabbing the color palette from an image.}
%description %_description
%package -n python3-%{pypi_name}
Summary: %{summary}
%description -n python3-%{pypi_name} %_description
%prep
%autosetup -n %{pypi_name}-%{version}
%build
%if 0%{?fedora} <= 41 || 0%{?rhel}
%py3_build
%else
%pyproject_wheel
%endif
%install
%if 0%{?fedora} <= 41 || 0%{?rhel}
%py3_install
%else
%pyproject_install
%pyproject_save_files %{pypi_name}
%endif
%if 0%{?fedora} > 41
%check
%pyproject_check_import
%endif
%if 0%{?fedora} <= 41 || 0%{?rhel}
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{pypi_name}.py
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
%else
%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc README.rst
%endif
%changelog
* Mon May 26 2025 Gilver E. <rockgrub@disroot.org> - 0.2.1-1
- Initial port from Fedora
+1
View File
@@ -0,0 +1 @@
rpm.version(pypi("colorthief"));
+1 -1
View File
@@ -2,7 +2,7 @@
%global _desc python3-library to convert Markdown with included LaTeX-Formulas to HTML with MathML.
Name: python-%{pypi_name}
Version: 1.3.0
Version: 1.3.1
Release: 1%?dist
Summary: python3-library to convert Markdown with included LaTeX-Formulas to HTML with MathML
License: LGPL-2.1
@@ -1,5 +1,5 @@
%global commit 91055c730ffcda6311654cf32d663858ece69bad
%global commit_date 20250930
%global commit 17bde1bd5e556de001adde3c2f340ba1c3581bd2
%global commit_date 20251025
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global pypi_name types-colorama
@@ -7,7 +7,7 @@
Name: python-%{pypi_name}
Version: 0~%{commit_date}git.%shortcommit
Release: 3%?dist
Release: 1%?dist
Summary: Typing stubs for colorama
License: Apache-2.0
URL: https://github.com/python/typeshed