add sw_64 support

(cherry picked from commit e4a44c834ad1904ac4e91d45e40afec2f5f8a712)
This commit is contained in:
Hailiang 2025-05-12 17:54:25 +08:00 committed by openeuler-sync-bot
parent 383a9ab10b
commit a75cb179cb
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.