mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-01 01:21:57 +00:00
chore(sync): frawhide -> el10
anda/desktops/waylands anda/devs/ anda/langs/ anda/lib/astal anda/tools
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
project pkg {
|
||||
arches = ["x86_64"]
|
||||
rpm {
|
||||
spec = "python-colorthief.spec"
|
||||
}
|
||||
labels {
|
||||
updbranch = 1
|
||||
}
|
||||
}
|
||||
@@ -1,77 +0,0 @@
|
||||
## 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 +0,0 @@
|
||||
rpm.version(pypi("colorthief"));
|
||||
@@ -1,6 +1,6 @@
|
||||
# Created by pyp2rpm-3.3.10
|
||||
%global pypi_name pip-system-certs
|
||||
%global pypi_version 4.0
|
||||
%global pypi_version 5.2
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: %{pypi_version}
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "python3-ruff.spec"
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
%define debug_package %{nil}
|
||||
|
||||
Name: python3-ruff
|
||||
Version: 0.6.4
|
||||
Release: 1%?dist
|
||||
Summary: An extremely fast Python linter, written in Rust
|
||||
License: MIT
|
||||
URL: https://beta.ruff.rs/
|
||||
Source0: https://github.com/astral-sh/ruff/archive/refs/tags/%{version}.tar.gz
|
||||
BuildRequires: python3-installer python3-pip maturin cargo
|
||||
Provides: python3.11dist(ruff) = %{version}
|
||||
|
||||
%description
|
||||
Ruff aims to be orders of magnitude faster than alternative tools while
|
||||
integrating more functionality behind a single, common interface.
|
||||
|
||||
%prep
|
||||
%autosetup -n ruff-%{version}
|
||||
|
||||
%build
|
||||
maturin build --release --strip --all-features # --locked
|
||||
|
||||
%install
|
||||
pip3 install --root=%{buildroot} target/wheels/*.whl
|
||||
rm -rf %{python3_sitelib}/ruff/__pycache__
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/METADATA
|
||||
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/RECORD
|
||||
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/WHEEL
|
||||
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/INSTALLER
|
||||
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/REQUESTED
|
||||
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/direct_url.json
|
||||
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/license_files/LICENSE
|
||||
/usr/lib64/python*/site-packages/ruff/__init__.py
|
||||
/usr/lib64/python*/site-packages/ruff/__main__.py
|
||||
/usr/lib64/python*/site-packages/ruff/__pycache__/*.cpython-*.opt-1.pyc
|
||||
/usr/lib64/python*/site-packages/ruff/__pycache__/*.cpython-*.pyc
|
||||
/usr/bin/ruff
|
||||
|
||||
%changelog
|
||||
* Mon Jan 23 2023 windowsboy111 <wboy111@outlook.com> - 0.0.229
|
||||
- Initial package.
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
rpm.version(pypi("ruff"));
|
||||
Reference in New Issue
Block a user