add: curl_cffi (#7046)

* Add curl_cffi

* Add curl_cffi

* make build on 42

* use pypi for version

---------

Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
metcya
2025-11-03 21:26:38 -06:00
committed by GitHub
parent 22b06d6f8f
commit 2b4d062d15
3 changed files with 65 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
project pkg {
arches = ["x86_64"]
rpm {
spec = "curl_cffi.spec"
}
labels {
nightly = 1
}
}
@@ -0,0 +1,55 @@
%define _unpackaged_files_terminate_build 0
%global pypi_name curl_cffi
%global _desc Python binding for curl-impersonate fork via cffi.
%global _version 0.14.0b2
Name: python-%{pypi_name}
Version: %{_version}
Release: 1%?dist
Summary: Python binding for curl-impersonate fork via cffi..
License: MIT
URL: https://github.com/lexiforest/curl_cffi
Source0: %{pypi_source}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: curl-impersonate-chrome-devel
Packager: Metcya <metcya@gmail.com>
%description
%_desc
%package -n python3-%{pypi_name}
Summary: %{summary}
Provides: %{pypi_name}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
%_desc
%prep
%autosetup -n %{pypi_name}-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files %{pypi_name}
%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.md
%license LICENSE
%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/*
%{python3_sitelib}/%{pypi_name}/*.{py,so,typed}
%{python3_sitelib}/%{pypi_name}/__pycache__/*.pyc
%{python3_sitelib}/%{pypi_name}/requests/*.py
%{python3_sitelib}/%{pypi_name}/requests/__pycache__/*.pyc
%changelog
* Sun Nov 02 2025 Metcya <metcya@gmail.com>
- Initial commit
+1
View File
@@ -0,0 +1 @@
rpm.version(pypi("curl_cffi"));