librsvg/librsvg.spec
OBS User autobuild dc7ea657e4 Accepting request 19760 from GNOME:Factory
Copy from GNOME:Factory/librsvg based on submit request 19760 from user vuntz

OBS-URL: https://build.opensuse.org/request/show/19760
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/librsvg?expand=0&rev=23
2009-09-04 23:32:15 +00:00

153 lines
4.2 KiB
RPMSpec

#
# spec file for package librsvg (Version 2.26.0)
#
# Copyright (c) 2009 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
%if 0%{suse_version} > 1110
%define xulrunner_version 191
%else
%define xulrunner_version 190
%endif
BuildRequires: gtk2-devel
BuildRequires: libcroco-devel
BuildRequires: libgsf-devel
License: LGPL v2.1 or later
Group: System/Libraries
AutoReqProv: on
# bug437293
%ifarch ppc64
Obsoletes: librsvg-64bit
%endif
#
Provides: librsvg2
Obsoletes: librsvg2
BuildRequires: mozilla-xulrunner%{xulrunner_version}-devel
PreReq: coreutils
Version: 2.26.0
Release: 2
Summary: A Library for Rendering SVG Data
Source: ftp://ftp.gnome.org/pub/GNOME/sources/librsvg/2.18/%{name}-%{version}.tar.bz2
Patch1: env-paths.diff
# PATCH-FIX-UPSTREAM librsvg-xulrunner191.patch bnc#501397 bgo#593961 dimstar@opensuse.org -- Support building with xulrunner 1.9.1
Patch2: librsvg-xulrunner191.patch
Url: http://librsvg.sourceforge.net/
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 devel
License: GPL v2 or later
Summary: Include Files and Libraries mandatory for Development
Group: Development/Libraries/C and C++
Provides: librsvg2-devel
Obsoletes: librsvg2-devel
Requires: %{name} = %{version} cairo-devel libcroco-devel glib2-devel gtk2-devel libgsf-devel
# 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 plugin
License: GPL v2 or later
Summary: A Library for Rendering SVG Data - SVG Browser Plugin
Group: System/Libraries
Requires: %{name} = %{version}
%description plugin
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-view
License: LGPL v2.1 or later
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
%patch1
%patch2 -p1
%build
%configure\
--disable-static\
--with-svgz
make %{?jobs:-j%jobs}
%install
%makeinstall
mv $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins $RPM_BUILD_ROOT%{_libdir}/browser-plugins
rmdir $RPM_BUILD_ROOT%{_libdir}/mozilla
rm $RPM_BUILD_ROOT/%{_libdir}/*.*a $RPM_BUILD_ROOT/%{_libdir}/*/*.*a $RPM_BUILD_ROOT/%{_libdir}/*/*/*/*.*a
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
touch var/adm/SuSEconfig/run-gtk
%postun
/sbin/ldconfig
touch var/adm/SuSEconfig/run-gtk
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/*.so.*
%{_libdir}/gtk-2.0/*/*/*.so
%files -n rsvg-view
%defattr(-,root,root)
%{_bindir}/rsvg
%{_bindir}/rsvg-convert
%{_bindir}/rsvg-view
%{_datadir}/pixmaps/*.svg
%doc %{_mandir}/man?/*.*
%files devel
%defattr(-,root,root)
%{_includedir}/librsvg-2
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gtk-doc/html/*
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%files plugin
%defattr(-,root,root)
%{_libdir}/browser-plugins/*.so
%changelog