OBS User unknown 2007-01-12 16:13:18 +00:00 committed by Git OBS Bridge
parent f022a04a51
commit 1612caef21
3 changed files with 100 additions and 55 deletions

11
librsvg-xulrunner.patch Normal file
View File

@ -0,0 +1,11 @@
--- configure.in
+++ configure.in
@@ -307,7 +307,7 @@
if test "x$test_mozilla_plugin" != "xno"; then
if test -z "$MOZILLA_CONFIG"; then
- AC_PATH_PROGS(MOZILLA_CONFIG, mozilla-config firefox-config, no)
+ AC_PATH_PROGS(MOZILLA_CONFIG, mozilla-config firefox-config xulrunner-config, no)
fi
if test "x$MOZILLA_CONFIG" != "xno"; then

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Tue Jan 9 18:04:54 CET 2007 - sbrabec@suse.cz
- Patched to build plugin with xulrunner.
-------------------------------------------------------------------
Tue Jan 9 17:43:09 CET 2007 - maw@suse.de
- Fix a typo
- (Temporarily) remove the plugin subpackage.
-------------------------------------------------------------------
Tue Jan 9 17:42:57 CET 2007 - sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
-------------------------------------------------------------------
Thu Dec 28 18:27:05 CET 2006 - jhargadon@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package librsvg (Version 2.16.0)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@ -11,21 +11,26 @@
# norootforbuild
Name: librsvg
BuildRequires: docbook-toys gnutls-devel gtkdoc libcroco-devel libglade2-devel libgnomeprintui-devel libgnomeui-devel libgsf-devel libwnck-devel mDNSResponder-devel update-desktop-files xmlcharent
%define prefix /opt/gnome
%define sysconfdir /etc%{prefix}
%define xulrunner_version 181
BuildRequires: docbook-toys gnutls-devel gtk-doc libcroco-devel libglade2-devel libgnomeprintui-devel libgnomeui-devel libgsf-devel libwnck-devel mDNSResponder-devel update-desktop-files xmlcharent
License: GNU General Public License (GPL)
Group: System/Libraries
Autoreqprov: on
Provides: librsvg2
Obsoletes: librsvg2
%if %suse_version > 1010 || 0%{?opensuse_bs}
BuildRequires: mozilla-xulrunner%{xulrunner_version}-devel
%else
BuildRequires: gecko-sdk
%endif
PreReq: coreutils
Version: 2.16.0
Release: 34
Release: 39
Summary: A Library for Rendering SVG Data
Source: ftp://ftp.gnome.org/pub/GNOME/sources/librsvg/2.6/librsvg-%{version}.tar.bz2
Source: ftp://ftp.gnome.org/pub/GNOME/sources/librsvg/2.16/%{name}-%{version}.tar.bz2
Patch: librsvg-xulrunner.patch
URL: http://librsvg.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# NOTE: Can use libcroco CSS parser.
%description
This package contains a library to render SVG (scalable vector
@ -41,7 +46,6 @@ Authors:
%package devel
Summary: Include Files and Libraries mandatory for Development.
Group: Development/Libraries/C and C++
Autoreqprov: on
Provides: librsvg2-devel
Obsoletes: librsvg2-devel
Requires: %{name} = %{version} libcroco-devel glib2-devel gtk2-devel libgsf-devel libart_lgpl-devel popt-devel
@ -52,80 +56,93 @@ to develop applications that require these.
Authors:
--------
Raph Levien <raph@acm.org>
%package plugin
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).
Authors:
--------
Raph Levien <raph@acm.org>
%prep
%setup -n librsvg-%{version}
%setup -q
%patch
%build
libtoolize --force
aclocal
automake --add-missing
autoconf
CFLAGS="$RPM_OPT_FLAGS" \
./configure \
--prefix=%prefix \
--libdir=%prefix/%_lib \
--sysconfdir=%sysconfdir \
--mandir=%prefix/share/man \
--localstatedir=/var/lib \
--with-svgz \
--without-gimp \
--with-html-dir=%_docdir/%{name}
make
autoreconf -f -i
%configure\
--with-svgz\
--without-gimp\
--with-html-dir=%{_docdir}/%{name}
make %{?jobs:-j%jobs}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
gzip -9nf $RPM_BUILD_ROOT%{prefix}/share/man/man?/*.?
mkdir -p $RPM_BUILD_ROOT%_docdir
cp AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%_docdir/%{name}
rm $RPM_BUILD_ROOT%{prefix}/%_lib/gtk-2.0/2.*.0/loaders/svg_loader.*a
rm $RPM_BUILD_ROOT%{prefix}/%_lib/gtk-2.0/2.*.0/engines/libsvg.*a
mkdir -p $RPM_BUILD_ROOT/%{_docdir}
cp AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_docdir}/%{name}
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
%clean
rm -rf $RPM_BUILD_ROOT
%post
touch var/adm/SuSEconfig/run-gtk
%run_ldconfig
touch var/adm/SuSEconfig/run-gtk
%postun
touch var/adm/SuSEconfig/run-gtk
%run_ldconfig
touch var/adm/SuSEconfig/run-gtk
%files
%defattr(-,root,root)
%doc %dir %_docdir/%{name}
%doc %dir %_docdir/%{name}/rsvg
%doc %_docdir/%{name}/AUTHORS
%doc %_docdir/%{name}/COPYING
%doc %_docdir/%{name}/ChangeLog
%doc %_docdir/%{name}/NEWS
%doc %_docdir/%{name}/README
%doc %_docdir/%{name}/rsvg/style.css
%defattr (-, root, root)
%doc %{prefix}/share/man/man?/*.*
%{prefix}/%_lib/*.so.*
%{prefix}/%_lib/gtk-2.0/2.*.0/loaders/*.so
%{prefix}/%_lib/gtk-2.0/2.*.0/engines/*.so
%{prefix}/bin/*
%{prefix}/share/pixmaps/*.svg
%{_bindir}/*
%{_datadir}/pixmaps/*.svg
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/AUTHORS
%doc %{_docdir}/%{name}/COPYING
%doc %{_docdir}/%{name}/ChangeLog
%doc %{_docdir}/%{name}/NEWS
%doc %{_docdir}/%{name}/README
%{_libdir}/*.so.*
%{_libdir}/gtk-2.0/*/*/*.so
%doc %{_mandir}/man?/*.*
%files devel
%defattr(-,root,root)
%doc %_docdir/%{name}/rsvg/*.html
%doc %_docdir/%{name}/rsvg/*.png
%doc %_docdir/%{name}/rsvg/*.sgml
%doc %_docdir/%{name}/rsvg/*.devhelp*
%{prefix}/%_lib/pkgconfig/*.pc
%{prefix}/include/librsvg-2
%{prefix}/%_lib/*.so
%{prefix}/%_lib/*.*a
# FIXME: move devhelp doc to correct place
%doc %{_docdir}/%{name}/rsvg
%{_includedir}/librsvg-2
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/pkgconfig/*.pc
%files plugin
%defattr(-,root,root)
%{_libdir}/browser-plugins/*.so
%changelog -n librsvg
* Tue Jan 09 2007 - sbrabec@suse.cz
- Patched to build plugin with xulrunner.
* Tue Jan 09 2007 - maw@suse.de
- Fix a typo
- (Temporarily) remove the plugin subpackage.
* Tue Jan 09 2007 - sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Thu Dec 28 2006 - jhargadon@suse.de
- removed unused libtool archives (#223654)
* Fri Oct 13 2006 - danw@suse.de