2006-12-28 23:07:45 +00:00
|
|
|
#
|
2011-05-02 13:11:35 +00:00
|
|
|
# spec file for package librsvg
|
2006-12-28 23:07:45 +00:00
|
|
|
#
|
2018-01-10 12:55:35 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-28 23:07:45 +00:00
|
|
|
#
|
2008-10-06 16:10:21 +00:00
|
|
|
# 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.
|
|
|
|
|
2018-09-27 07:40:17 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-28 23:07:45 +00:00
|
|
|
#
|
2008-02-16 07:16:31 +00:00
|
|
|
|
2012-02-08 19:48:02 +00:00
|
|
|
|
2006-12-28 23:07:45 +00:00
|
|
|
Name: librsvg
|
2018-09-28 17:33:23 +00:00
|
|
|
Version: 2.44.6
|
2011-12-14 13:44:06 +00:00
|
|
|
Release: 0
|
2010-04-01 01:18:09 +00:00
|
|
|
Summary: A Library for Rendering SVG Data
|
2018-09-06 11:15:09 +00:00
|
|
|
License: LGPL-2.0-or-later AND GPL-2.0-or-later AND Apache-2.0 AND MIT
|
2017-12-27 13:12:55 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-05-08 13:54:24 +00:00
|
|
|
URL: https://wiki.gnome.org/Projects/LibRsvg
|
2018-08-24 17:43:25 +00:00
|
|
|
Source0: https://download.gnome.org/sources/librsvg/2.44/%{name}-%{version}.tar.xz
|
2010-04-01 01:18:09 +00:00
|
|
|
Source99: baselibs.conf
|
2018-08-08 13:14:58 +00:00
|
|
|
|
2018-01-10 12:55:35 +00:00
|
|
|
BuildRequires: cargo
|
2012-02-08 10:55:34 +00:00
|
|
|
BuildRequires: gobject-introspection-devel
|
2018-03-05 13:56:33 +00:00
|
|
|
BuildRequires: pkgconfig
|
2018-08-24 17:43:25 +00:00
|
|
|
BuildRequires: rust >= 1.26
|
2018-01-10 12:55:35 +00:00
|
|
|
BuildRequires: rust-std
|
2012-09-07 15:29:39 +00:00
|
|
|
BuildRequires: vala
|
2018-03-06 14:25:03 +00:00
|
|
|
BuildRequires: pkgconfig(cairo) >= 1.15.4
|
2018-01-10 12:55:35 +00:00
|
|
|
BuildRequires: pkgconfig(cairo-png) >= 1.2.0
|
2017-10-05 12:25:27 +00:00
|
|
|
BuildRequires: pkgconfig(fontconfig)
|
2018-03-06 14:25:03 +00:00
|
|
|
BuildRequires: pkgconfig(freetype2) >= 20.0.14
|
2013-12-09 16:14:51 +00:00
|
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.20
|
2011-11-15 09:31:46 +00:00
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.24.0
|
2018-01-10 12:55:35 +00:00
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
2018-03-06 14:25:03 +00:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.48.0
|
2012-04-18 15:20:16 +00:00
|
|
|
BuildRequires: pkgconfig(gmodule-2.0)
|
2018-01-10 12:55:35 +00:00
|
|
|
BuildRequires: pkgconfig(gthread-2.0) >= 2.12.0
|
2015-08-10 07:13:41 +00:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.10.0
|
2018-03-06 14:25:03 +00:00
|
|
|
BuildRequires: pkgconfig(libcroco-0.6) >= 0.6.1
|
2017-10-05 12:25:27 +00:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0) >= 2.9.0
|
|
|
|
BuildRequires: pkgconfig(pangocairo) >= 1.38.0
|
|
|
|
BuildRequires: pkgconfig(pangoft2) >= 1.38.0
|
2018-03-05 13:56:33 +00:00
|
|
|
# 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
|
2010-07-22 21:43:09 +00:00
|
|
|
|
|
|
|
%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
|
2018-09-06 11:15:09 +00:00
|
|
|
License: LGPL-2.0-or-later AND Apache-2.0 AND MIT
|
2012-02-08 19:48:02 +00:00
|
|
|
Group: System/Libraries
|
2010-10-15 11:56:51 +00:00
|
|
|
Provides: librsvg2 = %{version}
|
|
|
|
Obsoletes: librsvg2 < %{version}
|
|
|
|
Provides: librsvg = %{version}
|
|
|
|
Obsoletes: librsvg < %{version}
|
2006-12-28 23:07:45 +00:00
|
|
|
|
2010-07-22 21:43:09 +00:00
|
|
|
%description -n librsvg-2-2
|
2006-12-28 23:07:45 +00:00
|
|
|
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).
|
|
|
|
|
2012-02-08 19:48:02 +00:00
|
|
|
%package -n typelib-1_0-Rsvg-2_0
|
2017-12-27 13:12:55 +00:00
|
|
|
Summary: Introspection bindings for librsvg, a SVG render library
|
2018-03-05 13:56:33 +00:00
|
|
|
License: LGPL-2.0-or-later
|
2012-02-08 19:48:02 +00:00
|
|
|
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.
|
|
|
|
|
2006-12-28 23:07:45 +00:00
|
|
|
%package devel
|
2017-12-27 13:12:55 +00:00
|
|
|
Summary: Development files for librsvg, a SVG render library
|
2018-03-05 13:56:33 +00:00
|
|
|
License: LGPL-2.0-or-later
|
2006-12-28 23:07:45 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-07-23 08:47:56 +00:00
|
|
|
Requires: librsvg-2-2 = %{version}
|
2012-02-08 19:48:02 +00:00
|
|
|
Requires: typelib-1_0-Rsvg-2_0 = %{version}
|
2018-03-05 13:56:33 +00:00
|
|
|
Provides: librsvg2-devel = %{version}
|
|
|
|
Obsoletes: librsvg2-devel < %{version}
|
2006-12-28 23:07:45 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
|
|
|
|
2010-07-22 21:43:09 +00:00
|
|
|
%package -n gdk-pixbuf-loader-rsvg
|
2018-01-10 12:55:35 +00:00
|
|
|
Summary: A gdk-pixbuf loader for SVG using librsvg
|
2018-03-05 13:56:33 +00:00
|
|
|
License: LGPL-2.0-or-later
|
2011-12-21 04:43:51 +00:00
|
|
|
Group: System/Libraries
|
2010-07-22 21:43:09 +00:00
|
|
|
Supplements: packageand(librsvg-2-2:gdk-pixbuf)
|
2018-03-05 13:56:33 +00:00
|
|
|
%{gdk_pixbuf_loader_requires}
|
2010-07-22 21:43:09 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2008-02-16 07:16:31 +00:00
|
|
|
%package -n rsvg-view
|
|
|
|
Summary: SVG View using the GNOME Render SVG library
|
2018-03-05 13:56:33 +00:00
|
|
|
License: LGPL-2.0-or-later
|
2017-12-27 13:12:55 +00:00
|
|
|
Group: Productivity/Graphics/Viewers
|
2008-02-16 07:16:31 +00:00
|
|
|
|
|
|
|
%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).
|
|
|
|
|
2017-04-27 09:06:27 +00:00
|
|
|
%package -n rsvg-thumbnailer
|
|
|
|
Summary: SVG thumbnailer using the GNOME Render SVG library
|
2018-03-05 13:56:33 +00:00
|
|
|
License: LGPL-2.0-or-later
|
2018-01-10 12:55:35 +00:00
|
|
|
Group: Productivity/Graphics/Other
|
2017-05-18 18:47:01 +00:00
|
|
|
BuildArch: noarch
|
2017-04-27 09:06:27 +00:00
|
|
|
|
|
|
|
%description -n rsvg-thumbnailer
|
|
|
|
This package contains a thumbnailer to render SVG (scalable vector
|
|
|
|
graphics) data.
|
|
|
|
|
2006-12-28 23:07:45 +00:00
|
|
|
%prep
|
2018-01-10 12:55:35 +00:00
|
|
|
%autosetup
|
2006-12-28 23:07:45 +00:00
|
|
|
|
|
|
|
%build
|
2007-01-12 16:13:18 +00:00
|
|
|
%configure\
|
2011-04-21 08:17:34 +00:00
|
|
|
--disable-static\
|
2012-09-07 15:29:39 +00:00
|
|
|
--enable-introspection\
|
|
|
|
--enable-vala
|
2018-01-10 12:55:35 +00:00
|
|
|
%make_build
|
2006-12-28 23:07:45 +00:00
|
|
|
|
|
|
|
%install
|
2017-12-27 13:12:55 +00:00
|
|
|
%make_install
|
2010-04-01 01:18:09 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2018-01-10 12:55:35 +00:00
|
|
|
# %%doc is used to package such contents
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/%{name}
|
2006-12-28 23:07:45 +00:00
|
|
|
|
2010-07-22 21:43:09 +00:00
|
|
|
%post -n librsvg-2-2 -p /sbin/ldconfig
|
|
|
|
%post -n gdk-pixbuf-loader-rsvg
|
2018-03-05 13:56:33 +00:00
|
|
|
%{gdk_pixbuf_loader_post}
|
2010-07-22 21:43:09 +00:00
|
|
|
|
|
|
|
%postun -n librsvg-2-2 -p /sbin/ldconfig
|
|
|
|
%postun -n gdk-pixbuf-loader-rsvg
|
2018-03-05 13:56:33 +00:00
|
|
|
%{gdk_pixbuf_loader_postun}
|
2006-12-28 23:07:45 +00:00
|
|
|
|
2010-07-22 21:43:09 +00:00
|
|
|
%files -n librsvg-2-2
|
2018-03-05 13:56:33 +00:00
|
|
|
%license COPYING.LIB
|
|
|
|
%doc NEWS README.md
|
2012-02-08 19:48:02 +00:00
|
|
|
%{_libdir}/librsvg-2.so.*
|
|
|
|
|
|
|
|
%files -n typelib-1_0-Rsvg-2_0
|
|
|
|
%{_libdir}/girepository-1.0/Rsvg-2.0.typelib
|
2010-07-22 21:43:09 +00:00
|
|
|
|
|
|
|
%files -n gdk-pixbuf-loader-rsvg
|
|
|
|
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-svg.so
|
|
|
|
|
2008-02-16 07:16:31 +00:00
|
|
|
%files -n rsvg-view
|
2018-01-10 12:55:35 +00:00
|
|
|
%license COPYING
|
2008-02-16 07:16:31 +00:00
|
|
|
%{_bindir}/rsvg-convert
|
2010-07-22 21:43:09 +00:00
|
|
|
%{_bindir}/rsvg-view-3
|
2018-03-05 13:56:33 +00:00
|
|
|
%{_mandir}/man1/rsvg-convert.1%{?ext_man}
|
2006-12-28 23:07:45 +00:00
|
|
|
|
2017-04-27 09:06:27 +00:00
|
|
|
%files -n rsvg-thumbnailer
|
2018-01-10 12:55:35 +00:00
|
|
|
%license COPYING
|
2017-04-27 09:06:27 +00:00
|
|
|
%dir %{_datadir}/thumbnailers
|
|
|
|
%{_datadir}/thumbnailers/librsvg.thumbnailer
|
|
|
|
|
2006-12-28 23:07:45 +00:00
|
|
|
%files devel
|
2018-09-27 07:40:17 +00:00
|
|
|
%doc AUTHORS COMPILING.md CONTRIBUTING.md
|
2010-07-22 21:43:09 +00:00
|
|
|
%{_includedir}/librsvg-2.0/
|
2012-02-08 19:48:02 +00:00
|
|
|
%{_libdir}/librsvg-2.so
|
|
|
|
%{_libdir}/pkgconfig/librsvg-2.0.pc
|
|
|
|
%{_datadir}/gir-1.0/Rsvg-2.0.gir
|
2012-09-07 15:29:39 +00:00
|
|
|
%dir %{_datadir}/vala/vapi
|
|
|
|
%{_datadir}/vala/vapi/librsvg-2.0.vapi
|
2018-01-10 12:55:35 +00:00
|
|
|
# Own these directories to not depend on gtk-doc while building
|
2009-03-02 23:38:43 +00:00
|
|
|
%dir %{_datadir}/gtk-doc
|
|
|
|
%dir %{_datadir}/gtk-doc/html
|
2018-01-10 12:55:35 +00:00
|
|
|
%doc %{_datadir}/gtk-doc/html/rsvg-2.0
|
2007-01-12 16:13:18 +00:00
|
|
|
|
2007-02-19 22:30:23 +00:00
|
|
|
%changelog
|