Compare commits

...

18 Commits

Author SHA1 Message Date
Owen Zimmerman cf38b05451 Merge branch 'f41' into mado/fix/curl-impersonate-chrome 2026-05-08 11:19:00 -05:00
Gilver 9bf05628e7 Update curl-impersonate-chrome.spec
Signed-off-by: Gilver <rockgrub@disroot.org>
2025-07-12 19:43:59 -05:00
Gilver 8b24a48856 Update curl-impersonate-chrome.spec
Signed-off-by: Gilver <rockgrub@disroot.org>
2025-07-12 19:33:56 -05:00
Gilver 726f46ebfc Update curl-impersonate-chrome.spec
Signed-off-by: Gilver <rockgrub@disroot.org>
2025-07-12 19:27:35 -05:00
Gilver 9ec29dee3d DNL for now
Signed-off-by: Gilver <rockgrub@disroot.org>
2025-07-12 19:17:23 -05:00
Gilver 6603b35d9f fix: Restore necessary patch
Signed-off-by: Gilver <rockgrub@disroot.org>
2025-07-12 19:13:07 -05:00
Gilver c1dd1b19a6 fix: Use Mock
Signed-off-by: Gilver <rockgrub@disroot.org>
2025-07-12 19:06:05 -05:00
Gilver 325ad245ee Update curl-impersonate-chrome.spec
Signed-off-by: Gilver <rockgrub@disroot.org>
2025-07-12 19:04:58 -05:00
madonuko 7d37820585 idk 2025-07-12 22:18:29 +08:00
madomado 4214910388 Update curl-impersonate-chrome.spec 2025-07-12 20:10:50 +08:00
madomado 82e4cafa77 ????
Signed-off-by: madomado <madonuko@outlook.com>
2025-07-12 19:59:37 +08:00
madomado 06cbe0ebcf libpsl
Signed-off-by: madomado <madonuko@outlook.com>
2025-07-12 19:35:23 +08:00
madomado 2e4e5fa0f9 funny]
Signed-off-by: madomado <madonuko@outlook.com>
2025-07-12 19:30:16 +08:00
madomado c6c0cd9253 Update curl-impersonate-chrome.spec
Signed-off-by: madomado <madonuko@outlook.com>
2025-07-12 19:25:02 +08:00
madomado 85a70444d5 so annoying --with-openssl
Signed-off-by: madomado <madonuko@outlook.com>
2025-07-12 19:20:46 +08:00
madomado 4d1881ca3f funny
Signed-off-by: madomado <madonuko@outlook.com>
2025-07-12 19:11:02 +08:00
madomado 32086c6b2a mabbe configure
Signed-off-by: madomado <madonuko@outlook.com>
2025-07-12 19:08:04 +08:00
madonuko 5d785354d6 fix(curl-impersonate-chrome): rm patches 2025-07-12 18:31:04 +08:00
4 changed files with 22 additions and 19 deletions
+3
View File
@@ -2,4 +2,7 @@ project pkg {
rpm {
spec = "curl-impersonate-chrome.spec"
}
labels {
mock = 1
}
}
@@ -1,15 +1,15 @@
%global build_cxxflags %(echo "%{__build_flags_lang_cxx} %{?_distro_extra_cxxflags}" | sed 's@-Werror=format-security@@')
Name: curl-impersonate-chrome
Version: 0.7.0
Version: 1.1.1
Release: 1%{?dist}
Summary: A series of patches that make curl requests look like Chrome
License: MIT
URL: https://github.com/lexiforest/curl-impersonate
Source0: %{url}/archive/v%{version}.tar.gz
Patch0: remove-werror-in-boringssl-build.patch
Patch1: install-sh-scripts-to-buildroot.patch
%dnl Patch0: remove-werror-in-boringssl-build.patch
%dnl Patch1: install-sh-scripts-to-buildroot.patch
Packager: sadlerm <lerm@chromebooks.lol>
@@ -19,6 +19,9 @@ BuildRequires: golang
BuildRequires: unzip
BuildRequires: zlib-ng-compat-devel
BuildRequires: zstd libzstd-devel
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(libpsl)
BuildRequires: mingw64-openssl-static
%global _description %{expand:
A special build of curl that can impersonate Chrome, Edge and Safari. curl-impersonate is able to perform TLS and HTTP handshakes that are identical to that of a real browser.
@@ -49,16 +52,25 @@ This package contains the object files necessary to develop %{name}.
%prep
%autosetup -n curl-impersonate-%{version} -p1
sed -i '/^install:$/,/^$/{s/@bindir@/$(DESTDIR)@bindir@/}' Makefile.in
%build
%configure
%{__make} chrome-build
%make_build `sed -nE 's@^CURL_VERSION := (.+)$@\1@p' Makefile.in`.tar.gz &
%make_build boringssl-`sed -nE 's@^BORING_SSL_COMMIT := (.+)$@\1@p' Makefile.in`.zip &
wait
%make_build build || true
%check
%{__make} chrome-checkbuild
%{__make} checkbuild
%install
%{__make} DESTDIR=%{buildroot} chrome-install
pushd `sed -nE 's@^CURL_VERSION := (.+)$@\1@p' Makefile.in`
export LT_SYS_LIBRARY_PATH="../boringssl-$(sed -nE 's@^BORING_SSL_COMMIT := (.+)$@\1@p' ../Makefile.in)/include"
%configure --with-openssl --prefix=%{_prefix}
sed -E 's@MAKEFLAGS=$@MAKEFLAGS=-j$(SUBJOBS)@' -i Makefile
popd
%make_install
%files
%license LICENSE
@@ -1,13 +0,0 @@
diff --git a/Makefile.in b/Makefile.in
index 41d7324..56a029e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -83,7 +83,7 @@ chrome-install: ## Install the Chrome version of curl-impersonate after build
cd $(CURL_VERSION)
$(MAKE) install-exec MAKEFLAGS=
# Wrapper scripts for the Chrome version (e.g. 'curl_chrome99')
- install $(srcdir)/chrome/curl_* @bindir@
+ install $(srcdir)/chrome/curl_* $(DESTDIR)@bindir@
.PHONY: chrome-install
chrome-install-strip: ## Like 'chrome-install', but strip binaries for smaller size
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("lexiforest/curl-impersonate"));