Sync from SUSE:ALP:Source:Standard:1.0 librsvg revision b77b96bce782d6ea59266047315a65e8

This commit is contained in:
Adrian Schröter 2023-08-08 15:18:56 +02:00
commit 3a8e456ea0
10 changed files with 2928 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

21
_constraints Normal file
View File

@ -0,0 +1,21 @@
<constraints>
<hardware>
<disk>
<size unit="G">6</size>
</disk>
</hardware>
<overwrite>
<conditions>
<arch>x86_64</arch>
<arch>i586</arch>
</conditions>
<hardware>
<disk>
<size unit="G">12</size>
</disk>
<physicalmemory>
<size unit="G">8</size>
</physicalmemory>
</hardware>
</overwrite>
</constraints>

25
_service Normal file
View File

@ -0,0 +1,25 @@
<?xml version="1.0"?>
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://gitlab.gnome.org/GNOME/librsvg.git</param>
<param name="scm">git</param>
<param name="revision">refs/tags/2.56.3</param>
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
<param name="versionrewrite-pattern">(.*)\+0</param>
<param name="versionrewrite-replacement">\1</param>
<!-- <param name="changesgenerate">enable</param> -->
</service>
<service name="set_version" mode="manual"/>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="cargo_vendor" mode="manual">
<param name="srcdir">librsvg</param>
<param name="update">true</param>
</service>
<service name="cargo_audit" mode="manual">
<param name="srcdir">librsvg</param>
</service>
</services>

7
baselibs.conf Normal file
View File

@ -0,0 +1,7 @@
librsvg-2-2
provides "libsrvg-<targettype> = <version>"
gdk-pixbuf-loader-rsvg
requires "gdk-pixbuf-query-loaders-<targettype>"
supplements "packageand(librsvg-2-2-<targettype>:gdk-pixbuf-<targettype>)"
post "%gdk_pixbuf_loader_post"
postun "%gdk_pixbuf_loader_postun"

5
cargo_config Normal file
View File

@ -0,0 +1,5 @@
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"

BIN
librsvg-2.56.3.obscpio (Stored with Git LFS) Normal file

Binary file not shown.

2630
librsvg.changes Normal file

File diff suppressed because it is too large Load Diff

4
librsvg.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: librsvg
version: 2.56.3
mtime: 1689887914
commit: 312c4b8c28c99b9051ee6de6fa966cf977b0f7b4

207
librsvg.spec Normal file
View File

@ -0,0 +1,207 @@
#
# spec file for package librsvg
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# Don't forget to update this in baselibs.conf too!
%define librsvg_sover 2
Name: librsvg
Version: 2.56.3
Release: 0
Summary: A Library for Rendering SVG Data
License: GPL-2.0-or-later AND LGPL-2.0-or-later AND MIT
Group: Development/Libraries/C and C++
URL: https://wiki.gnome.org/Projects/LibRsvg
Source: %{name}-%{version}.tar.xz
Source2: vendor.tar.zst
Source3: cargo_config
Source99: baselibs.conf
BuildRequires: cargo-packaging >= 1.2.0+3
BuildRequires: gobject-introspection-devel
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: python3-docutils
BuildRequires: vala
BuildRequires: pkgconfig(cairo) >= 1.16.0
BuildRequires: pkgconfig(cairo-png) >= 1.2.0
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2) >= 20.0.14
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.20
BuildRequires: pkgconfig(gi-docgen)
BuildRequires: pkgconfig(gio-2.0) >= 2.24.0
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(glib-2.0) >= 2.50.0
BuildRequires: pkgconfig(gmodule-2.0)
BuildRequires: pkgconfig(gthread-2.0) >= 2.12.0
BuildRequires: pkgconfig(libxml-2.0) >= 2.9.0
BuildRequires: pkgconfig(pangocairo) >= 1.46.0
BuildRequires: pkgconfig(pangoft2) >= 1.46.0
# Avoid cycle: we do not require the adwaita-icon-theme to be present. libgtk-3.0 requires this for end users
#!BuildIgnore: adwaita-icon-theme
%description
This package contains a library to render SVG (scalable vector
graphics) data. This format has been specified by the W3C (see
http://www.w3c.org).
%package -n librsvg-2-%{librsvg_sover}
Summary: A Library for Rendering SVG Data
License: Apache-2.0 AND LGPL-2.0-or-later AND MIT
Group: System/Libraries
Provides: librsvg2 = %{version}
Obsoletes: librsvg2 < %{version}
Provides: librsvg = %{version}
Obsoletes: librsvg < %{version}
Obsoletes: rsvg-view <= %{version}
%description -n librsvg-2-%{librsvg_sover}
This package contains a library to render SVG (scalable vector
graphics) data. This format has been specified by the W3C (see
http://www.w3c.org).
%package -n typelib-1_0-Rsvg-2_0
Summary: Introspection bindings for librsvg, a SVG render library
License: LGPL-2.0-or-later
Group: System/Libraries
%description -n typelib-1_0-Rsvg-2_0
This package contains a library to render SVG (scalable vector
graphics) data. This format has been specified by the W3C (see
http://www.w3c.org).
This package provides the GObject Introspection bindings for librsvg.
%package devel
Summary: Development files for librsvg, a SVG render library
License: LGPL-2.0-or-later
Group: Development/Libraries/C and C++
Requires: librsvg-2-%{librsvg_sover} = %{version}
Requires: typelib-1_0-Rsvg-2_0 = %{version}
Provides: librsvg2-devel = %{version}
Obsoletes: librsvg2-devel < %{version}
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%package -n gdk-pixbuf-loader-rsvg
Summary: A gdk-pixbuf loader for SVG using librsvg
License: LGPL-2.0-or-later
Group: System/Libraries
Supplements: (librsvg-2-%{librsvg_sover} and gdk-pixbuf)
%{gdk_pixbuf_loader_requires}
%description -n gdk-pixbuf-loader-rsvg
This package contains a library to render SVG (scalable vector
graphics) data. This format has been specified by the W3C (see
http://www.w3c.org).
This package provides a librsvg-based gdk-pixbuf loader.
%package -n rsvg-convert
Summary: SVG Convert using the GNOME Render SVG library
License: LGPL-2.0-or-later
Group: Productivity/Graphics/Viewers
Conflicts: rsvg-view <= 2.45.7
%description -n rsvg-convert
This package contains a tool to convert SVG (scalable vector
graphics) data. This format has been specified by the W3C (see
http://www.w3c.org).
%package -n rsvg-thumbnailer
Summary: SVG thumbnailer using the GNOME Render SVG library
License: LGPL-2.0-or-later
Group: Productivity/Graphics/Other
BuildArch: noarch
%description -n rsvg-thumbnailer
This package contains a thumbnailer to render SVG (scalable vector
graphics) data.
%prep
%autosetup -p1 -a2
mkdir .cargo
cp %{SOURCE3} .cargo/config
%build
export RUSTFLAGS="%{build_rustflags}"
NOCONFIGURE=1 ./autogen.sh
%configure \
--disable-static\
--enable-introspection\
--enable-vala \
%{nil}
%make_build
%install
export RUSTFLAGS="%{build_rustflags}"
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
# %%doc is used to package such contents
rm -rf %{buildroot}%{_datadir}/doc/%{name}/CO*.md
%check
export RUSTFLAGS="%{build_rustflags}"
%ifarch x86_64 %{?x86_64}
# 2023-01-15: the pdf-related tests are failing (bsc#1207167)
# 2023-03-17 cairo-1.17.8 filter_morphology svg test is failing
%{cargo_test} -- --skip pdf_has_text --skip pdf_has_link --skip filter_morphology_from_reference_page_svg
%endif
%post -n librsvg-2-%{librsvg_sover} -p /sbin/ldconfig
%post -n gdk-pixbuf-loader-rsvg
%{gdk_pixbuf_loader_post}
%postun -n librsvg-2-%{librsvg_sover} -p /sbin/ldconfig
%postun -n gdk-pixbuf-loader-rsvg
%{gdk_pixbuf_loader_postun}
%files -n librsvg-2-%{librsvg_sover}
%license COPYING.LIB
%doc NEWS README.md
%{_libdir}/librsvg-2.so.*
%files -n typelib-1_0-Rsvg-2_0
%{_libdir}/girepository-1.0/Rsvg-2.0.typelib
%files -n gdk-pixbuf-loader-rsvg
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-svg.so
%files -n rsvg-convert
%{_bindir}/rsvg-convert
%{_mandir}/man1/rsvg-convert.1%{?ext_man}
%files -n rsvg-thumbnailer
%dir %{_datadir}/thumbnailers
%{_datadir}/thumbnailers/librsvg.thumbnailer
%files devel
%doc AUTHORS
%doc %{_datadir}/doc/%{name}/
%doc %{_datadir}/doc/Rsvg-2.0/
%{_includedir}/librsvg-2.0/
%{_libdir}/librsvg-2.so
%{_libdir}/pkgconfig/librsvg-2.0.pc
%{_datadir}/gir-1.0/Rsvg-2.0.gir
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/librsvg-2.0.vapi
%changelog

BIN
vendor.tar.zst (Stored with Git LFS) Normal file

Binary file not shown.