Accepting request 50761 from GNOME:Factory

checked in (request 50761)

OBS-URL: https://build.opensuse.org/request/show/50761
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/librsvg?expand=0&rev=33
This commit is contained in:
OBS User autobuild
2010-10-15 11:56:47 +00:00
committed by Git OBS Bridge
parent 79d8bc307d
commit 492ac0feb7
7 changed files with 141 additions and 52 deletions

View File

@@ -1,5 +1,5 @@
#
# spec file for package librsvg (Version 2.32.0)
# spec file for package librsvg (Version 2.31.0)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -15,11 +15,12 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define build_gtk3_support 0
# norootforbuild
Name: librsvg
Version: 2.32.0
Release: 1
Version: 2.31.0
Release: 3
License: GPLv2+
Summary: A Library for Rendering SVG Data
Url: http://librsvg.sourceforge.net/
@@ -29,6 +30,10 @@ 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
# PATCH-FIX-UPSTREAM librsvg-gdkkeysym-compat.patch bgo#629881 vuntz@opensuse.org -- Fix build with recent versions of gtk+
Patch3: librsvg-gdkkeysym-compat.patch
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
@@ -36,9 +41,7 @@ BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
%if %{build_gtk3_support}
BuildRequires: pkgconfig(gtk+-3.0)
%endif
BuildRequires: pkgconfig(libcroco-0.6)
BuildRequires: pkgconfig(libgsf-1)
BuildRequires: pkgconfig(libxml-2.0)
@@ -58,10 +61,10 @@ Summary: A Library for Rendering SVG Data
Obsoletes: librsvg-64bit
%endif
#
Provides: librsvg2 = %{version}
Obsoletes: librsvg2 < %{version}
Provides: librsvg = %{version}
Obsoletes: librsvg < %{version}
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
@@ -107,7 +110,6 @@ Group: System/Libraries
%description -n gtk2-engine-svg
This package provides a librsvg-based GTK+ 2 theme engine.
%if %{build_gtk3_support}
%package -n gtk3-engine-svg
License: LGPLv2.1+
Summary: SVG-based GTK+ 3 Theme Engine
@@ -115,7 +117,6 @@ Group: System/Libraries
%description -n gtk3-engine-svg
This package provides a librsvg-based GTK+ 3 theme engine.
%endif
%package -n rsvg-view
License: LGPLv2.1+
@@ -136,6 +137,8 @@ http://www.w3c.org).
touch aclocal.m4
%endif
%patch1
%patch2 -p1
%patch3 -p1
%build
%configure\
@@ -175,22 +178,18 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_datadir}/themes/bubble
%{_datadir}/themes/bubble/gtk-2.0/
%if %{build_gtk3_support}
%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/
%endif
%files -n rsvg-view
%defattr(-,root,root)
%{_bindir}/rsvg
%{_bindir}/rsvg-convert
%{_bindir}/rsvg-view
%if %{build_gtk3_support}
%{_bindir}/rsvg-view-3
%endif
%{_datadir}/pixmaps/svg-viewer.svg
%doc %{_mandir}/man?/rsvg.1*