Projects
home:fstrba
python-curl_cffi
python-curl_cffi.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-curl_cffi.spec of Package python-curl_cffi
# # spec file for package python-curl_cffi # # Copyright (c) 2026 SUSE LLC and contributors # # 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-curl_cffi Version: 0.16.1 Release: 0 Summary: Python FFI binding for curl-impersonate License: MIT URL: https://github.com/lexiforest/curl_cffi Source0: https://github.com/lexiforest/curl_cffi/archive/refs/tags/v%{version}.tar.gz#/curl_cffi-%{version}.tar.gz Patch0: use-system-curl-impersonate.patch BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module devel >= 3.8} BuildRequires: %{python_module certifi} BuildRequires: %{python_module cffi} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: autoconf BuildRequires: automake BuildRequires: pkgconf(curl-impersonate) BuildRequires: fdupes BuildRequires: libtool BuildRequires: make BuildRequires: python-rpm-macros Requires: curl-impersonate Requires: python-certifi Requires: python-cffi %python_subpackages %description Python FFI binding for curl-impersonate. %prep %autosetup -n curl_cffi-%{version} -p1 %build %pyproject_wheel %install # 1. Install the wheel into the buildroot %pyproject_install # 2. Rename binaries to versioned versions for all flavors using the standard macro %python_clone %{buildroot}%{_bindir}/curl-cffi # 3. Link unversioned only for the primary interpreter %python_expand if [ "%{$python_flavor}" = "%{primary_python}" ]; then ln -s curl-cffi-%{$python_bin_suffix} %{buildroot}%{_bindir}/curl-cffi; fi # 4. Run fdupes to hardlink identical files %python_expand %fdupes %{buildroot}%{$python_sitearch} %files %{python_files} %license LICENSE %{_bindir}/curl-cffi-%{python_bin_suffix} %if "%{python_flavor}" == "%{primary_python}" %{_bindir}/curl-cffi %endif %{python_sitearch}/curl_cffi %{python_sitearch}/curl_cffi-%{version}.dist-info %changelog
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.