From: Jan Palus Date: Mon, 20 Mar 2023 11:50:56 +0000 (+0100) Subject: add vendor crates; rel 2 X-Git-Tag: auto/th/librsvg-2.56.0-2 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=ea1b3016e846d248adfa882954aa5c69dc072eae;p=packages%2Flibrsvg.git add vendor crates; rel 2 releases no longer vendorized since: https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/718 --- diff --git a/librsvg.spec b/librsvg.spec index 4e303b2..bbf5cc4 100644 --- a/librsvg.spec +++ b/librsvg.spec @@ -4,6 +4,8 @@ %bcond_without static_libs # static library %bcond_without vala # Vala API (vala up to 0.38.x already contains librsvg-2.0.vapi) +%define crates_ver 2.56.0 + Summary: A Raph's Library for Rendering SVG Data Summary(pl.UTF-8): Biblioteka Raph's SVG do renderowania danych SVG Summary(pt_BR.UTF-8): Biblioteca SVG @@ -11,13 +13,15 @@ Summary(ru.UTF-8): SVG библиотека Summary(uk.UTF-8): SVG бібліотека Name: librsvg Version: 2.56.0 -Release: 1 +Release: 2 Epoch: 1 License: LGPL v2+ Group: X11/Libraries Source0: https://download.gnome.org/sources/librsvg/2.56/%{name}-%{version}.tar.xz # Source0-md5: ee5fa3ce1653b5b313e52007c53ab190 -Source1: rsvg +Source1: %{name}-crates-%{crates_ver}.tar.xz +# Source1-md5: 1b301d70073e295aee1a284e6bef4aac +Source2: rsvg Patch0: x32.patch URL: https://wiki.gnome.org/Projects/LibRsvg BuildRequires: autoconf >= 2.69 @@ -169,14 +173,31 @@ Vala API for librsvg library. API języka Vala do biblioteki librsvg. %prep -%setup -q +%setup -q -a1 %patch0 -p1 %ifarch x32 %{__sed} -i -e 's/test "\?x\?\$cross_compiling"\? = "\?x\?yes"\?/true/' configure.ac %endif +%{__mv} librsvg-%{crates_ver}/* . +sed -i -e 's/@@VERSION@@/%{version}/' Cargo.lock + +# use our offline registry +export CARGO_HOME="$(pwd)/.cargo" + +mkdir -p "$CARGO_HOME" +cat >.cargo/config <