!73 [sync] PR-70: add sw_64 support

From: @openeuler-sync-bot 
Reviewed-by: @weidongkl 
Signed-off-by: @weidongkl
This commit is contained in:
openeuler-ci-bot 2025-05-13 07:37:38 +00:00 committed by Gitee
commit 9572304ff5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 9 additions and 1 deletions

View File

@ -6,12 +6,13 @@
Name: librsvg2
Version: 2.57.1
Release: 2
Release: 3
Summary: An SVG library based on cairo
License: LGPLv2+
URL: https://wiki.gnome.org/Projects/LibRsvg
Source0: https://download.gnome.org/sources/librsvg/2.57/librsvg-%{version}.tar.xz
Source1: vendor.tar.xz
Source2: sw64-vendor.tar.xz
Patch0: 0001-Modify-cargo-confign-file.patch
@ -70,6 +71,10 @@ This package provides extra utilities based on the librsvg library.
rm -vrf vendor .cargo Cargo.lock
tar xvf %{SOURCE1}
sed -i Makefile.am -e 's/$(CARGO) --locked/$(CARGO)/'
%ifarch sw_64
rm -rf vendor/{libc,target-lexicon}
tar -xf %{SOURCE2} -C vendor/
%endif
%cargo_prep
%patch0 -p1
@ -124,6 +129,9 @@ rm -f %{buildroot}%{_pkgdocdir}/COMPILING.md
%{_mandir}/man1/*.1*
%changelog
* Mon May 12 2025 mahailiang <mahailiang@uniontech.com> - 2.57.1-3
- add sw_64 support
* Fri Apr 19 2024 liweigang <liweiganga@uniontech.com> - 2.57.1-2
- modify vendor package format to tar.xz

BIN
sw64-vendor.tar.xz Normal file

Binary file not shown.