2023-03-15 15:27:03 +08:00
|
|
|
%bcond_without check
|
|
|
|
|
%undefine _strict_symbol_defs_build
|
|
|
|
|
%global _configure_disable_silent_rules 1
|
|
|
|
|
%global bundled_rust_deps 0
|
|
|
|
|
%global cairo_version 1.16.0
|
2022-05-19 15:37:02 +08:00
|
|
|
|
2019-09-30 10:57:52 -04:00
|
|
|
Name: librsvg2
|
2023-12-27 16:27:24 +08:00
|
|
|
Version: 2.57.1
|
2025-05-12 17:54:25 +08:00
|
|
|
Release: 3
|
2019-09-30 10:57:52 -04:00
|
|
|
Summary: An SVG library based on cairo
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
URL: https://wiki.gnome.org/Projects/LibRsvg
|
2023-12-27 16:27:24 +08:00
|
|
|
Source0: https://download.gnome.org/sources/librsvg/2.57/librsvg-%{version}.tar.xz
|
|
|
|
|
Source1: vendor.tar.xz
|
2025-05-12 17:54:25 +08:00
|
|
|
Source2: sw64-vendor.tar.xz
|
2023-03-15 15:27:03 +08:00
|
|
|
|
|
|
|
|
Patch0: 0001-Modify-cargo-confign-file.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: chrpath
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: gi-docgen
|
|
|
|
|
BuildRequires: gobject-introspection-devel
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: pkgconfig(cairo) >= %{cairo_version}
|
|
|
|
|
BuildRequires: pkgconfig(cairo-gobject) >= %{cairo_version}
|
|
|
|
|
BuildRequires: pkgconfig(cairo-png) >= %{cairo_version}
|
|
|
|
|
BuildRequires: pkgconfig(fontconfig)
|
|
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(gthread-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(pangocairo)
|
|
|
|
|
BuildRequires: pkgconfig(pangoft2)
|
|
|
|
|
BuildRequires: vala
|
|
|
|
|
BuildRequires: python3-docutils
|
2022-05-19 15:37:02 +08:00
|
|
|
%if 0%{?bundled_rust_deps}
|
|
|
|
|
BuildRequires: cargo
|
|
|
|
|
BuildRequires: rust
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Requires: cairo >= %{cairo_version}
|
|
|
|
|
Requires: cairo-gobject >= %{cairo_version}
|
|
|
|
|
Requires: gdk-pixbuf2
|
2019-09-30 10:57:52 -04:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
An SVG library based on cairo.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Libraries and include files for developing with librsvg
|
2019-12-26 15:25:06 +08:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2019-09-30 10:57:52 -04:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package provides the necessary development libraries and include
|
|
|
|
|
files to allow you to develop with librsvg.
|
|
|
|
|
|
2021-04-19 11:40:47 +08:00
|
|
|
%package tools
|
|
|
|
|
Summary: Extra tools for librsvg
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
|
This package provides extra utilities based on the librsvg library.
|
|
|
|
|
|
2019-09-30 10:57:52 -04:00
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-03-15 15:27:03 +08:00
|
|
|
%setup -q -n librsvg-%{version}
|
2023-12-27 16:27:24 +08:00
|
|
|
rm -vrf vendor .cargo Cargo.lock
|
|
|
|
|
tar xvf %{SOURCE1}
|
|
|
|
|
sed -i Makefile.am -e 's/$(CARGO) --locked/$(CARGO)/'
|
2025-05-12 17:54:25 +08:00
|
|
|
%ifarch sw_64
|
|
|
|
|
rm -rf vendor/{libc,target-lexicon}
|
|
|
|
|
tar -xf %{SOURCE2} -C vendor/
|
|
|
|
|
%endif
|
2023-02-01 17:42:50 +08:00
|
|
|
%cargo_prep
|
2023-03-15 15:27:03 +08:00
|
|
|
%patch0 -p1
|
2022-05-19 15:37:02 +08:00
|
|
|
|
2023-03-15 15:27:03 +08:00
|
|
|
%if 0%{?bundled_rust_deps}
|
2022-05-19 15:37:02 +08:00
|
|
|
%generate_buildrequires
|
2023-02-01 17:42:50 +08:00
|
|
|
%cargo_generate_buildrequires
|
2022-05-19 15:37:02 +08:00
|
|
|
%endif
|
2019-09-30 10:57:52 -04:00
|
|
|
|
|
|
|
|
%build
|
2023-03-15 15:27:03 +08:00
|
|
|
|
2022-05-19 15:37:02 +08:00
|
|
|
%configure --disable-static \
|
|
|
|
|
--disable-gtk-doc \
|
|
|
|
|
--docdir=%{_datadir}/doc/%{name} \
|
|
|
|
|
--enable-introspection \
|
|
|
|
|
--enable-vala
|
|
|
|
|
|
|
|
|
|
%make_build
|
2019-09-30 10:57:52 -04:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
%delete_la
|
2020-07-24 20:39:51 +08:00
|
|
|
|
2019-09-30 10:57:52 -04:00
|
|
|
chrpath --delete %{buildroot}%{_bindir}/rsvg-convert
|
|
|
|
|
chrpath --delete %{buildroot}%{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-svg.so
|
|
|
|
|
|
2022-05-19 15:37:02 +08:00
|
|
|
rm -f %{buildroot}%{_pkgdocdir}/COMPILING.md
|
2019-09-30 10:57:52 -04:00
|
|
|
|
2022-05-19 15:37:02 +08:00
|
|
|
%files
|
2019-09-30 10:57:52 -04:00
|
|
|
%defattr(-,root,root)
|
2020-07-24 20:39:51 +08:00
|
|
|
%license COPYING.LIB
|
2019-09-30 10:57:52 -04:00
|
|
|
%{_libdir}/librsvg-2.so.*
|
|
|
|
|
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-svg.so
|
|
|
|
|
%{_libdir}/girepository-1.0/Rsvg-2.0.typelib
|
|
|
|
|
%{_datadir}/thumbnailers/*.thumbnailer
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
%{_includedir}/librsvg-2.0/
|
|
|
|
|
%{_datadir}/gir-1.0/Rsvg-2.0.gir
|
|
|
|
|
%{_datadir}/vala/vapi/librsvg-2.0.vapi
|
2022-06-08 13:56:53 +08:00
|
|
|
%{_datadir}/doc/%{name}/
|
2019-09-30 10:57:52 -04:00
|
|
|
|
2021-04-19 11:40:47 +08:00
|
|
|
%files tools
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_bindir}/rsvg-convert
|
|
|
|
|
|
2019-09-30 10:57:52 -04:00
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
2022-05-19 15:37:02 +08:00
|
|
|
%doc %{_datadir}/doc/%{name}
|
2019-09-30 10:57:52 -04:00
|
|
|
%{_mandir}/man1/*.1*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2025-05-12 17:54:25 +08:00
|
|
|
* Mon May 12 2025 mahailiang <mahailiang@uniontech.com> - 2.57.1-3
|
|
|
|
|
- add sw_64 support
|
|
|
|
|
|
2024-04-19 13:39:52 +08:00
|
|
|
* Fri Apr 19 2024 liweigang <liweiganga@uniontech.com> - 2.57.1-2
|
|
|
|
|
- modify vendor package format to tar.xz
|
|
|
|
|
|
|
|
|
|
* Wed Jan 31 2024 Paul Thomas <paulthomas100199@gmail.com> - 2.57.1-1
|
2023-12-27 16:27:24 +08:00
|
|
|
- update to version 2.57.1
|
|
|
|
|
|
2023-08-30 10:23:42 +00:00
|
|
|
* Wed Aug 30 2023 zhangpan <zhangpan103@h-partners.com> - 2.55.90-2
|
|
|
|
|
- fix CVE-2023-38633
|
|
|
|
|
|
2023-03-15 15:27:03 +08:00
|
|
|
* Thu Mar 23 2023 li-long315 <lilong@kylinos.cn> - 2.55.90-1
|
|
|
|
|
- Upgrade to 2.55.90
|
|
|
|
|
|
2023-02-01 17:42:50 +08:00
|
|
|
* Mon Jan 02 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 2.55.1-1
|
|
|
|
|
- Update to 2.55.1 and add cargo compile files
|
|
|
|
|
|
2022-06-25 18:00:37 +08:00
|
|
|
* Sat Jun 25 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 2.54.4-1
|
|
|
|
|
- Update to 2.54.4
|
|
|
|
|
|
2022-06-08 13:56:53 +08:00
|
|
|
* Wed Jun 8 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 2.54.3-1
|
|
|
|
|
- Update to 2.54.3
|
|
|
|
|
|
2022-06-08 11:44:58 +08:00
|
|
|
* Mon Jun 6 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 2.54.1-1
|
|
|
|
|
- Update to 2.54.1
|
|
|
|
|
|
2022-05-19 15:37:02 +08:00
|
|
|
* Mon Mar 28 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 2.54.0-1
|
|
|
|
|
- Update to 2.54.0
|
|
|
|
|
|
2021-07-30 23:02:03 +08:00
|
|
|
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.50.5-2
|
|
|
|
|
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git-core
|
|
|
|
|
|
2021-05-21 18:07:37 +08:00
|
|
|
* Wed May 19 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 2.50.5-1
|
|
|
|
|
- Upgrade to 2.50.5
|
|
|
|
|
- Update Version, Release
|
|
|
|
|
|
2021-04-19 11:40:47 +08:00
|
|
|
* Mon Apr 19 2021 zhanzhimin<zhanzhimin@huawei.com> - 2.50.2-2
|
|
|
|
|
- Type: bugfix
|
|
|
|
|
- ID: NA
|
|
|
|
|
- SUG: NA
|
|
|
|
|
- DESC: eliminate-difference
|
|
|
|
|
|
2021-01-27 14:08:24 +08:00
|
|
|
* Wed Jan 27 2021 hanhui <hanhui15@huawei.com> - 2.50.2-1
|
|
|
|
|
- Type: enhancement
|
|
|
|
|
- ID: NA
|
|
|
|
|
- SUG: NA
|
|
|
|
|
- DESC: update to 2.50.2
|
|
|
|
|
|
2020-11-24 15:44:31 +08:00
|
|
|
* Tue Nov 24 2020 zhanzhimin <zhanzhimin@huawei.com> - 2.50.1-2
|
|
|
|
|
- delete libcroco dependency
|
|
|
|
|
|
2020-11-18 10:12:35 +08:00
|
|
|
* Wed Nov 18 2020 zhanzhimin <zhanzhimin@huawei.com> - 2.50.1-1
|
|
|
|
|
- update to 2.50.1
|
|
|
|
|
|
2020-08-01 14:36:27 +08:00
|
|
|
* Thu Jul 23 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.46.4-1
|
2020-07-24 20:39:51 +08:00
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
2020-08-01 14:36:27 +08:00
|
|
|
- DESC:update to 2.46.4
|
2020-07-24 20:39:51 +08:00
|
|
|
|
2020-07-20 23:00:27 +08:00
|
|
|
* Mon Jul 20 2020 yanan li <liyanan032@huawei.com> - 2.44.15-2
|
|
|
|
|
- fix build fail with rust 1.38.0
|
|
|
|
|
|
2020-01-16 14:53:27 +08:00
|
|
|
* Thu Jan 16 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.44.15-1
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update to 2.44.15
|
|
|
|
|
|
2019-12-26 15:25:06 +08:00
|
|
|
* Wed Dec 25 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.44.6-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: optimization the spec of librsvg2
|
|
|
|
|
|
2019-09-30 10:57:52 -04:00
|
|
|
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.44.6-2
|
|
|
|
|
- Package init
|