Projects
home:fstrba
curl-impersonate
curl-impersonate.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File curl-impersonate.spec of Package curl-impersonate
# # spec file for package curl-impersonate # # 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/ # Name: curl-impersonate Version: 2.1.0 Release: 1%{?dist} Summary: A build of curl that impersonates four major browsers License: MIT Group: Development/Libraries/C and C++ URL: https://github.com/lexiforest/curl-impersonate # Main source Source0: https://github.com/lexiforest/curl-impersonate/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz # Offline Dependencies mapped from PKGBUILD Source1: https://github.com/google/brotli/archive/refs/tags/v1.2.0.tar.gz#/brotli-1.2.0.tar.gz Source2: https://github.com/google/boringssl/archive/156c7b75ae9b8c3b3f847acf264f17594c3859fb.zip#/boringssl-156c7b75ae9b8c3b3f847acf264f17594c3859fb.zip Source3: https://github.com/nghttp2/nghttp2/releases/download/v1.63.0/nghttp2-1.63.0.tar.bz2 Source4: https://github.com/ngtcp2/ngtcp2/releases/download/v1.20.0/ngtcp2-1.20.0.tar.bz2 Source5: https://github.com/ngtcp2/nghttp3/releases/download/v1.15.0/nghttp3-1.15.0.tar.bz2 Source6: https://github.com/curl/curl/archive/curl-8_21_0.tar.gz#/curl-8_21_0.tar.gz Source7: https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.gz Source8: https://github.com/facebook/zstd/releases/download/v1.5.7/zstd-1.5.7.tar.gz Source9: https://ftp.gnu.org/gnu/libidn/libidn2-2.3.7.tar.gz # Patches Patch0: no-download.patch Patch1: cherry-pick.patch BuildRequires: bash BuildRequires: chrpath BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: git BuildRequires: go BuildRequires: make BuildRequires: ninja BuildRequires: unzip %description A build of curl that impersonates four major browsers: Chrome, Edge, Safari & Firefox. %package -n libcurl-impersonate4 Summary: Shared library for curl-impersonate Group: System/Libraries %description -n libcurl-impersonate4 This package contains the shared library for curl-impersonate. %package devel Summary: Development files for curl-impersonate Group: Development/Libraries/C and C++ Requires: libcurl-impersonate4 = %{version} %description devel This package contains the headers and shared library symlink for building against curl-impersonate. %prep %autosetup -p1 # Prepare the downloads folder for the offline build[cite: 1] mkdir -p build/deps/downloads cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} build/deps/downloads/ %build # Pre-build step required by the upstream build system %make_build prepare-libidn2 # Let the openSUSE macro handle the generator and build directories %cmake \ -W no-author \ -D CMAKE_BUILD_TYPE=None %cmake_build %install %cmake_install # Delete the static library rm -f %{buildroot}%{_libdir}/*.a # Remove unsafe rpaths (using wildcards safely) chrpath --delete %{buildroot}%{_bindir}/curl* || true chrpath --delete %{buildroot}%{_libdir}/libcurl-impersonate.so* || true %post -n libcurl-impersonate4 -p /sbin/ldconfig %postun -n libcurl-impersonate4 -p /sbin/ldconfig %files %license LICENSE # This wildcard grabs curl-impersonate, curl_chrome100, curl_safari155, etc. %{_bindir}/curl* %files -n libcurl-impersonate4 # Only grab the versioned shared libraries %{_libdir}/libcurl-impersonate.so.4* %files devel # Keep the headers and the unversioned symlink for the Python CFFI build %{_includedir}/curl/ %{_libdir}/libcurl-impersonate.so %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
.