1da7b76af6
ok OBS-URL: https://build.opensuse.org/request/show/47656 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/librsvg?expand=0&rev=26
204 lines
5.9 KiB
RPMSpec
204 lines
5.9 KiB
RPMSpec
#
|
|
# spec file for package librsvg (Version 2.31.0)
|
|
#
|
|
# Copyright (c) 2010 SUSE LINUX Products 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: librsvg
|
|
Version: 2.31.0
|
|
Release: 1
|
|
License: GPLv2+
|
|
Summary: A Library for Rendering SVG Data
|
|
Url: http://librsvg.sourceforge.net/
|
|
Group: System/Libraries
|
|
Source: ftp://ftp.gnome.org/pub/GNOME/sources/librsvg/2.18/%{name}-%{version}.tar.bz2
|
|
Source99: baselibs.conf
|
|
# PATCH-FIX-OPENSUSE librsvg-gdk-pixbuf-query-loaders-64.patch vuntz@opensuse.org -- Fix check for gdk-pixbuf-query-loaders on 64bit systems
|
|
Patch0: librsvg-gdk-pixbuf-query-loaders-64.patch
|
|
Patch1: env-paths.diff
|
|
# PATCH-FIX-UPSTREAM librsvg-gdk-pixbuf-render-gtk3.patch bgo#626605 vuntz@opensuse.org -- Fix build with recent gtk+ 3. The patch is technically correct, but suboptimal; see comments in bugzilla. Still, okay for us as we don't use this engine by default.
|
|
Patch2: librsvg-gdk-pixbuf-render-gtk3.patch
|
|
BuildRequires: pkgconfig(cairo)
|
|
BuildRequires: pkgconfig(fontconfig)
|
|
BuildRequires: pkgconfig(freetype2)
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
BuildRequires: pkgconfig(gtk+-2.0)
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
BuildRequires: pkgconfig(libcroco-0.6)
|
|
BuildRequires: pkgconfig(libgsf-1)
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
BuildRequires: pkgconfig(pangoft2)
|
|
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
|
|
License: GPLv2+
|
|
Summary: A Library for Rendering SVG Data
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: librsvg-64bit
|
|
%endif
|
|
#
|
|
Provides: librsvg2 = %{name}
|
|
Obsoletes: librsvg2 < %{name}
|
|
Provides: librsvg = %{name}
|
|
Obsoletes: librsvg < %{name}
|
|
|
|
%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 devel
|
|
License: GPLv2+
|
|
Summary: Include Files and Libraries mandatory for Development
|
|
Group: Development/Libraries/C and C++
|
|
Provides: librsvg2-devel = %{version}
|
|
Obsoletes: librsvg2-devel < %{version}
|
|
Requires: librsvg-2-2 = %{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
|
|
License: LGPLv2.1+
|
|
Summary: A Library for Rendering SVG Data -- gdk-pixbuf loader
|
|
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 gtk2-engine-svg
|
|
License: LGPLv2.1+
|
|
Summary: SVG-based GTK+ 2 Theme Engine
|
|
Group: System/Libraries
|
|
|
|
%description -n gtk2-engine-svg
|
|
This package provides a librsvg-based GTK+ 2 theme engine.
|
|
|
|
%package -n gtk3-engine-svg
|
|
License: LGPLv2.1+
|
|
Summary: SVG-based GTK+ 3 Theme Engine
|
|
Group: System/Libraries
|
|
|
|
%description -n gtk3-engine-svg
|
|
This package provides a librsvg-based GTK+ 3 theme engine.
|
|
|
|
%package -n rsvg-view
|
|
License: LGPLv2.1+
|
|
Summary: SVG View using the GNOME Render SVG library
|
|
Group: System/Libraries
|
|
Provides: librsvg:/usr/bin/rsvg
|
|
|
|
%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).
|
|
|
|
%prep
|
|
%setup -q
|
|
%if "%_lib" == "lib64"
|
|
%patch0 -p1
|
|
# don't have configure auto-regenerated
|
|
touch aclocal.m4
|
|
%endif
|
|
%patch1
|
|
%patch2 -p1
|
|
|
|
%build
|
|
%configure\
|
|
--disable-static\
|
|
--with-svgz
|
|
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 ChangeLog NEWS README
|
|
%{_libdir}/*.so.*
|
|
|
|
%files -n gdk-pixbuf-loader-rsvg
|
|
%defattr(-,root,root)
|
|
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-svg.so
|
|
|
|
%files -n gtk2-engine-svg
|
|
%defattr(-,root,root)
|
|
%{_libdir}/gtk-2.0/*/engines/libsvg.so
|
|
%dir %{_datadir}/themes/bubble
|
|
%{_datadir}/themes/bubble/gtk-2.0/
|
|
|
|
%files -n gtk3-engine-svg
|
|
%defattr(-,root,root)
|
|
%{_libdir}/gtk-3.0/*/engines/libsvg-3.so
|
|
%dir %{_datadir}/themes/bubble
|
|
%{_datadir}/themes/bubble/gtk-3.0/
|
|
|
|
%files -n rsvg-view
|
|
%defattr(-,root,root)
|
|
%{_bindir}/rsvg
|
|
%{_bindir}/rsvg-convert
|
|
%{_bindir}/rsvg-view
|
|
%{_bindir}/rsvg-view-3
|
|
%{_datadir}/pixmaps/svg-viewer.svg
|
|
%doc %{_mandir}/man?/rsvg.1*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/librsvg-2.0/
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_datadir}/gtk-doc/html/rsvg-2.0/
|
|
# Own these repositories to not depend on gtk-doc while building:
|
|
%dir %{_datadir}/gtk-doc
|
|
%dir %{_datadir}/gtk-doc/html
|
|
|
|
%changelog
|