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