This commit is contained in:
parent
f022a04a51
commit
1612caef21
11
librsvg-xulrunner.patch
Normal file
11
librsvg-xulrunner.patch
Normal 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
|
@ -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
|
Thu Dec 28 18:27:05 CET 2006 - jhargadon@suse.de
|
||||||
|
|
||||||
|
127
librsvg.spec
127
librsvg.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package librsvg (Version 2.16.0)
|
# 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
|
# This file and all modifications and additions to the pristine
|
||||||
# package are under the same license as the package itself.
|
# package are under the same license as the package itself.
|
||||||
#
|
#
|
||||||
@ -11,21 +11,26 @@
|
|||||||
# norootforbuild
|
# norootforbuild
|
||||||
|
|
||||||
Name: librsvg
|
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 xulrunner_version 181
|
||||||
%define prefix /opt/gnome
|
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
|
||||||
%define sysconfdir /etc%{prefix}
|
|
||||||
License: GNU General Public License (GPL)
|
License: GNU General Public License (GPL)
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Autoreqprov: on
|
Autoreqprov: on
|
||||||
Provides: librsvg2
|
Provides: librsvg2
|
||||||
Obsoletes: 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
|
Version: 2.16.0
|
||||||
Release: 34
|
Release: 39
|
||||||
Summary: A Library for Rendering SVG Data
|
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/
|
URL: http://librsvg.sourceforge.net/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
# NOTE: Can use libcroco CSS parser.
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains a library to render SVG (scalable vector
|
This package contains a library to render SVG (scalable vector
|
||||||
@ -41,7 +46,6 @@ Authors:
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Include Files and Libraries mandatory for Development.
|
Summary: Include Files and Libraries mandatory for Development.
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Autoreqprov: on
|
|
||||||
Provides: librsvg2-devel
|
Provides: librsvg2-devel
|
||||||
Obsoletes: librsvg2-devel
|
Obsoletes: librsvg2-devel
|
||||||
Requires: %{name} = %{version} libcroco-devel glib2-devel gtk2-devel libgsf-devel libart_lgpl-devel popt-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:
|
Authors:
|
||||||
--------
|
--------
|
||||||
Raph Levien <raph@acm.org>
|
Raph Levien <raph@acm.org>
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n librsvg-%{version}
|
%setup -q
|
||||||
|
%patch
|
||||||
|
|
||||||
%build
|
%build
|
||||||
libtoolize --force
|
autoreconf -f -i
|
||||||
aclocal
|
%configure\
|
||||||
automake --add-missing
|
--with-svgz\
|
||||||
autoconf
|
--without-gimp\
|
||||||
CFLAGS="$RPM_OPT_FLAGS" \
|
--with-html-dir=%{_docdir}/%{name}
|
||||||
./configure \
|
make %{?jobs:-j%jobs}
|
||||||
--prefix=%prefix \
|
|
||||||
--libdir=%prefix/%_lib \
|
|
||||||
--sysconfdir=%sysconfdir \
|
|
||||||
--mandir=%prefix/share/man \
|
|
||||||
--localstatedir=/var/lib \
|
|
||||||
--with-svgz \
|
|
||||||
--without-gimp \
|
|
||||||
--with-html-dir=%_docdir/%{name}
|
|
||||||
make
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
gzip -9nf $RPM_BUILD_ROOT%{prefix}/share/man/man?/*.?
|
mkdir -p $RPM_BUILD_ROOT/%{_docdir}
|
||||||
mkdir -p $RPM_BUILD_ROOT%_docdir
|
cp AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_docdir}/%{name}
|
||||||
cp AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%_docdir/%{name}
|
mv $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins $RPM_BUILD_ROOT%{_libdir}/browser-plugins
|
||||||
rm $RPM_BUILD_ROOT%{prefix}/%_lib/gtk-2.0/2.*.0/loaders/svg_loader.*a
|
rmdir $RPM_BUILD_ROOT%{_libdir}/mozilla
|
||||||
rm $RPM_BUILD_ROOT%{prefix}/%_lib/gtk-2.0/2.*.0/engines/libsvg.*a
|
rm $RPM_BUILD_ROOT%{_libdir}/*/*.*a $RPM_BUILD_ROOT%{_libdir}/*/*/*/*.*a
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post
|
%post
|
||||||
touch var/adm/SuSEconfig/run-gtk
|
|
||||||
%run_ldconfig
|
%run_ldconfig
|
||||||
|
touch var/adm/SuSEconfig/run-gtk
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
touch var/adm/SuSEconfig/run-gtk
|
|
||||||
%run_ldconfig
|
%run_ldconfig
|
||||||
|
touch var/adm/SuSEconfig/run-gtk
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc %dir %_docdir/%{name}
|
%{_bindir}/*
|
||||||
%doc %dir %_docdir/%{name}/rsvg
|
%{_datadir}/pixmaps/*.svg
|
||||||
%doc %_docdir/%{name}/AUTHORS
|
%doc %dir %{_docdir}/%{name}
|
||||||
%doc %_docdir/%{name}/COPYING
|
%doc %{_docdir}/%{name}/AUTHORS
|
||||||
%doc %_docdir/%{name}/ChangeLog
|
%doc %{_docdir}/%{name}/COPYING
|
||||||
%doc %_docdir/%{name}/NEWS
|
%doc %{_docdir}/%{name}/ChangeLog
|
||||||
%doc %_docdir/%{name}/README
|
%doc %{_docdir}/%{name}/NEWS
|
||||||
%doc %_docdir/%{name}/rsvg/style.css
|
%doc %{_docdir}/%{name}/README
|
||||||
%defattr (-, root, root)
|
%{_libdir}/*.so.*
|
||||||
%doc %{prefix}/share/man/man?/*.*
|
%{_libdir}/gtk-2.0/*/*/*.so
|
||||||
%{prefix}/%_lib/*.so.*
|
%doc %{_mandir}/man?/*.*
|
||||||
%{prefix}/%_lib/gtk-2.0/2.*.0/loaders/*.so
|
|
||||||
%{prefix}/%_lib/gtk-2.0/2.*.0/engines/*.so
|
|
||||||
%{prefix}/bin/*
|
|
||||||
%{prefix}/share/pixmaps/*.svg
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc %_docdir/%{name}/rsvg/*.html
|
# FIXME: move devhelp doc to correct place
|
||||||
%doc %_docdir/%{name}/rsvg/*.png
|
%doc %{_docdir}/%{name}/rsvg
|
||||||
%doc %_docdir/%{name}/rsvg/*.sgml
|
%{_includedir}/librsvg-2
|
||||||
%doc %_docdir/%{name}/rsvg/*.devhelp*
|
%{_libdir}/*.so
|
||||||
%{prefix}/%_lib/pkgconfig/*.pc
|
%{_libdir}/*.*a
|
||||||
%{prefix}/include/librsvg-2
|
%{_libdir}/pkgconfig/*.pc
|
||||||
%{prefix}/%_lib/*.so
|
|
||||||
%{prefix}/%_lib/*.*a
|
%files plugin
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/browser-plugins/*.so
|
||||||
|
|
||||||
%changelog -n librsvg
|
%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
|
* Thu Dec 28 2006 - jhargadon@suse.de
|
||||||
- removed unused libtool archives (#223654)
|
- removed unused libtool archives (#223654)
|
||||||
* Fri Oct 13 2006 - danw@suse.de
|
* Fri Oct 13 2006 - danw@suse.de
|
||||||
|
Loading…
Reference in New Issue
Block a user