[packages/ka6-angelfish] - added vendor-crates - rel 2

witekfl witekfl at pld-linux.org
Sat Jul 25 13:21:51 CEST 2026


commit 62296e9dd13de5eb343a725276db5af11f17fbbf
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Sat Jul 25 13:21:26 2026 +0200

    - added vendor-crates
    - rel 2

 ka6-angelfish.spec | 23 ++++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)
---
diff --git a/ka6-angelfish.spec b/ka6-angelfish.spec
index 29c9d87..c8750e9 100644
--- a/ka6-angelfish.spec
+++ b/ka6-angelfish.spec
@@ -10,11 +10,13 @@ Summary:	A webbrowser for small mobile devices
 Summary(pl.UTF-8):	Przeglądarka WWW dla małych urządzeń przenośnych
 Name:		ka6-%{kaname}
 Version:	26.04.3
-Release:	1
+Release:	2
 License:	GPL v2+/LGPL v2.1+
 Group:		X11/Libraries
 Source0:	https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
 # Source0-md5:	9808ccd6781738170b98cb2cc1d12313
+Source1:	%{kaname}-vendor-crates-%{version}.tar.xz
+# Source1-md5:	7d8997cab739927b71818322eca1eb6a
 URL:		https://apps.kde.org/angelfish/
 BuildRequires:	Qt6Core-devel >= 5.15.2
 BuildRequires:	Qt6Gui-devel >= 5.15.2
@@ -28,6 +30,7 @@ BuildRequires:	Qt6Test
 BuildRequires:	Qt6WebChannel-devel >= 5.15
 BuildRequires:	Qt6WebEngine-devel >= 5.15
 BuildRequires:	Qt6Widgets-devel >= 5.15.2
+BuildRequires:	corrosion
 BuildRequires:	futuresql-qt6-devel >= 0.1.1
 BuildRequires:	gettext-devel
 BuildRequires:	kf6-extra-cmake-modules >= 5.95.0
@@ -65,15 +68,28 @@ Ta aplikacja to przeglądarka WWW zaprojektowana z myślą o:
 - dobrej integracji z pulpitami Plazmy
 
 %prep
-%setup -q -n %{kaname}-%{version}
+%setup -q -n %{kaname}-%{version} -a1
+# Use our offline registry
+export CARGO_HOME="$(pwd)/.cargo"
+
+mkdir -p "$CARGO_HOME"
+cat >.cargo/config <<EOF
+[source.crates-io]
+replace-with = 'vendored-sources'
+
+[source.vendored-sources]
+directory = '$PWD/vendor'
+EOF
 
 %build
+export CARGO_HOME="$(pwd)/.cargo"
 %cmake \
 	-B build \
 	-G Ninja \
 	%{!?with_tests:-DBUILD_TESTING=OFF} \
 	-DKDE_INSTALL_DOCBUNDLEDIR=%{_kdedocdir} \
-	-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+	-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
+	-DRust_CARGO_TARGET=%cargo_target
 
 %ninja_build -C build
 
@@ -82,6 +98,7 @@ ctest --test-dir build
 %endif
 
 %install
+export CARGO_HOME="$(pwd)/.cargo"
 rm -rf $RPM_BUILD_ROOT
 
 %ninja_install -C build
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ka6-angelfish.git/commitdiff/62296e9dd13de5eb343a725276db5af11f17fbbf



More information about the pld-cvs-commit mailing list