# # spec file for package librsvg # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # Name: librsvg Version: 2.40.20 Release: 15.1 Summary: A Library for Rendering SVG Data License: LGPL-2.0-or-later AND GPL-2.0-or-later Group: System/Libraries Url: http://librsvg.sourceforge.net/ Source: http://download.gnome.org/sources/librsvg/2.40/%{name}-%{version}.tar.xz Source99: baselibs.conf Patch1: librsvg-post-2.40.20-updates.patch BuildRequires: gobject-introspection-devel BuildRequires: vala # 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 BuildRequires: pkgconfig(cairo) >= 1.2.0 BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.20 BuildRequires: pkgconfig(gio-2.0) >= 2.24.0 BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gmodule-2.0) BuildRequires: pkgconfig(gtk+-3.0) >= 3.10.0 BuildRequires: pkgconfig(libcroco-0.6) BuildRequires: pkgconfig(libxml-2.0) >= 2.9.0 BuildRequires: pkgconfig(pangocairo) >= 1.38.0 BuildRoot: %{_tmppath}/%{name}-%{version}-build %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-2 Summary: A Library for Rendering SVG Data # bug437293 License: LGPL-2.0-or-later Group: System/Libraries %ifarch ppc64 Obsoletes: librsvg-64bit %endif # Provides: librsvg2 = %{version} Obsoletes: librsvg2 < %{version} Provides: librsvg = %{version} Obsoletes: librsvg < %{version} %description -n librsvg-2-2 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: A Library for Rendering SVG Data -- Introspection bindings 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: Include Files and Libraries mandatory for Development License: LGPL-2.0-or-later Group: Development/Libraries/C and C++ Provides: librsvg2-devel = %{version} Obsoletes: librsvg2-devel < %{version} Requires: librsvg-2-2 = %{version} Requires: typelib-1_0-Rsvg-2_0 = %{version} # bug437293 %ifarch ppc64 Obsoletes: librsvg-devel-64bit %endif # %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 Library for Rendering SVG Data -- gdk-pixbuf loader License: LGPL-2.0-or-later Group: System/Libraries Supplements: packageand(librsvg-2-2: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-view Summary: SVG View using the GNOME Render SVG library License: LGPL-2.0-or-later Group: System/Libraries %description -n rsvg-view 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 rsvg-thumbnailer Summary: SVG thumbnailer using the GNOME Render SVG library License: LGPL-2.0-or-later Group: System/Utilities BuildArch: noarch %description -n rsvg-thumbnailer This package contains a thumbnailer to render SVG (scalable vector graphics) data. %prep %setup -q %patch1 -p1 %build %configure\ --disable-static\ --enable-introspection # \ # --enable-vala make %{?jobs:-j%jobs} %install %makeinstall find %{buildroot} -type f -name "*.la" -delete -print %clean rm -rf $RPM_BUILD_ROOT %post -n librsvg-2-2 -p /sbin/ldconfig %post -n gdk-pixbuf-loader-rsvg %gdk_pixbuf_loader_post %postun -n librsvg-2-2 -p /sbin/ldconfig %postun -n gdk-pixbuf-loader-rsvg %gdk_pixbuf_loader_postun %files -n librsvg-2-2 %defattr(-,root,root) %doc AUTHORS COPYING.LIB ChangeLog NEWS README %{_libdir}/librsvg-2.so.* %files -n typelib-1_0-Rsvg-2_0 %defattr(-,root,root) %{_libdir}/girepository-1.0/Rsvg-2.0.typelib %files -n gdk-pixbuf-loader-rsvg %defattr(-,root,root) %{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-svg.so %files -n rsvg-view %defattr(-,root,root) %{_bindir}/rsvg-convert # required gtk3 #%{_bindir}/rsvg-view-3 %doc %{_mandir}/man1/rsvg-convert.1%{?ext_man} %files -n rsvg-thumbnailer %defattr(-,root,root) %dir %{_datadir}/thumbnailers %{_datadir}/thumbnailers/librsvg.thumbnailer %files devel %defattr(-,root,root) %{_includedir}/librsvg-2.0/ %{_libdir}/librsvg-2.so %{_libdir}/pkgconfig/librsvg-2.0.pc %{_datadir}/gir-1.0/Rsvg-2.0.gir %{_datadir}/gtk-doc/html/rsvg-2.0/ # required vala #%dir %{_datadir}/vala/vapi #%{_datadir}/vala/vapi/librsvg-2.0.vapi # Own these repositories to not depend on gtk-doc while building: %dir %{_datadir}/gtk-doc %dir %{_datadir}/gtk-doc/html %changelog * Mon May 7 2018 federico@suse.com - Fixes bsc#1083232 - CVE-2018-1000041 - input validation issue could lead to credentials leak. - Update to version 2.40.20: + Except for emergencies, this will be the LAST RELEASE of the librsvg-2.40.x series. We are moving to 2.41, which is vastly improved over the 2.40 series. The API/ABI there remain unchaged, so we strongly encourage you to upgrade your sources and binaries to librsvg-2.41.x. + bgo#761175 - Allow masks and clips to reuse a node being drawn. + Don't access the file system when deciding whether to load a remote file with a UNC path for a paint server (i.e. don't try to load it at all). + Vistual Studio: fixed and integrated introspection builds, so introspection data is built directly from the Visual Studio project (Chun-wei Fan). + Visual Studio: We now use HIGHENTROPYVA linker option on x64 builds, to enhance the security of built binaries (Chun-wei Fan). + Fix generation of Vala bindings when compiling in read-only source directories (Emmanuele Bassi). - Added librsvg-post-2.40.20-updates.patch to accumulate fixes after the 2.40.20 release. * Mon May 7 2018 federico@suse.com - Update to version 2.40.19: + bgo#621088: Using text objects as clipping paths is now supported. + bgo#587721: Fix rendering of text elements with transformations (Massimo). + bgo#777833 - Fix memory leaks when an RsvgHandle is disposed before being closed (Philip Withnall). + bgo#782098 - Don't pass deprecated options to gtk-doc (Ting-Wei Lan). + bgo#786372 - Fix the default for the "type" attribute of the