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 (Revision 4)
Currently displaying revision
4
,
Show latest
# # 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/ # %if 0%{?suse_version} > 1500 %bcond_without libalternatives %else %bcond_with libalternatives %endif %{?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 certifi} BuildRequires: %{python_module cffi} BuildRequires: %{python_module devel >= 3.8} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: autoconf BuildRequires: automake BuildRequires: fdupes BuildRequires: libcurl-impersonate-devel BuildRequires: libtool BuildRequires: make BuildRequires: python-rpm-macros Requires: curl-impersonate Requires: python-certifi Requires: python-cffi %if %{with libalternatives} BuildRequires: alts Requires: alts %else Requires(post): update-alternatives Requires(postun): update-alternatives %endif %python_subpackages %description Python FFI binding for curl-impersonate. %prep %autosetup -n curl_cffi-%{version} -p1 %build export CFLAGS="${CFLAGS} -I%{_includedir}/curl-impersonate" export CXXFLAGS="${CXXFLAGS} -I%{_includedir}/curl-impersonate" %pyproject_wheel %install %pyproject_install %python_clone -a %{buildroot}%{_bindir}/curl-cffi %python_expand %fdupes %{buildroot}%{$python_sitearch} %pre # removing old update-alternatives entries %python_libalternatives_reset_alternative curl-cffi %files %{python_files} %license LICENSE %python_alternative %{_bindir}/curl-cffi %{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
.