2007-01-10 17:43:40 +01:00
#
2009-07-31 19:44:54 +02:00
# spec file for package gnumeric (Version 1.9.9)
2007-01-10 17:43:40 +01:00
#
2009-02-07 01:34:21 +01:00
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
2007-01-10 17:43:40 +01:00
#
2008-09-06 05:56:54 +02:00
# 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.
2007-01-10 17:43:40 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
2008-03-07 21:55:27 +01:00
2007-01-10 17:43:40 +01:00
Name : gnumeric
2009-03-12 14:28:13 +01:00
BuildRequires : fdupes
2009-03-26 01:49:32 +01:00
BuildRequires : gconf2-devel
2009-03-12 14:28:13 +01:00
BuildRequires : goffice-devel
BuildRequires : gtk2-devel
BuildRequires : intltool
2009-05-04 18:11:35 +02:00
BuildRequires : libgnomedb-devel
2009-03-12 14:28:13 +01:00
BuildRequires : psiconv-devel
BuildRequires : python-devel
BuildRequires : python-gobject2-devel
BuildRequires : scrollkeeper
BuildRequires : shared-mime-info
2008-09-06 05:56:54 +02:00
BuildRequires : update-desktop-files
2007-07-12 01:26:21 +02:00
License : GPL v2 or later
2007-01-10 17:43:40 +01:00
Group : Productivity/Office/Spreadsheets
Provides : gnumeric2
Obsoletes : gnumeric2
Summary : Spreadsheet Application
2009-07-31 19:44:54 +02:00
Version : 1.9.9
2008-09-06 05:56:54 +02:00
Release : 1
2008-04-03 00:14:51 +02:00
Source : ftp://ftp.gnome.org/pub/gnome/sources/gnumeric/1.8/gnumeric-%{version} .tar.bz2
2009-07-31 19:44:54 +02:00
# PATCH-FIX-UPSTREAM gnumeric-1.9.9-bgo589105.patch bgo#589108 dominique-obs@leuenberger.net -- do not use depreaced gtk_tree_view_column_get_cell_renderers
Patch0 : gnumeric-1.9.9-bgo589105.patch
2007-10-11 20:58:47 +02:00
Url : http://www.gnumeric.org/
2007-08-09 19:15:43 +02:00
Requires : %{name} -lang = %{version}
2008-04-25 16:04:10 +02:00
Recommends: liberation-fonts ghostscript-fonts-std
2008-04-03 00:14:51 +02:00
# For perl-func plugin
Recommends: perl
2007-01-10 17:43:40 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%gconf_schemas_prereq
%description
Gnumeric is a spreadsheet application with advanced features and
analytics. It aims to minimize the cost of transition from proprietary
spreadsheets by offering a familiar look and feature set. In addition
to read and write support for all versions of Microsoft Excel
(including reading encrypted files), there is also support for many
other formats including:
*Applix 4 and 5 *DIF *Lotus-123 (wk1, wk2, wk3) *OpenOffice.org (Oasis)
*PlanPerfect (pln) *Psion5 *Quattro Pro (wb1, wb2, wb3) *SYLK
*XBase/DB3
Text formats, such as comma or tab separated values, HTML, XHTML, and
Latex, are supported and there are powerful assistants to handle custom
needs.
Gnumeric is part of the GNOME project.
2007-05-25 02:07:20 +02:00
Authors:
--------
Miguel de Icaza, creator.
Jody Goldberg, maintainer.
Sean Atkinson, functions and X-Base importing.
Michel Berkelaar, Simplex algorithm for Solver (LP Solve).
Grandma Chema Celorio, Tester and sheet copy.
Frank Chiulli, OLE support.
Kenneth Christiansen, i18n, misc stuff.
Zbigniew Chyla, plugin system, i18n.
J.H.M. Dassen (Ray), debian packaging.
Jeroen Dirks, Simplex algorithm for Solver (LP Solve).
Tom Dyas, plugin support.
Gergo Erdi, Gnumeric hacker.
John Gotts, rpm packaging.
Andreas J. Guelzow, Gnumeric hacker.
Jon K. Hellan, Gnumeric hacker.
Ross Ihaka, special functions.
Jukka-Pekka Iivonen, numerous functions and tools.
Jakub Jelinek, Gnumeric hacker.
Chris Lahey, number format engine.
Adrian Likins, documentation, debugging.
Takashi Matsuda, original text plugin.
Michael Meeks, Excel and OLE2 importing.
Lutz Muller, SheetObject improvements.
Federico M. Quintero, canvas support.
Mark Probst, Guile support.
Rasca, HTML, troff, LaTeX exporters.
Vincent Renardias, original CSV support, French localization.
Ariel Rios, Guile support.
Arturo Tena, OLE support.
Almer S. Tigelaar, Gnumeric hacker.
Bruno Unna, Excel bits.
Daniel Veillard, XML support.
Vladimir Vuksan, financial functions.
Morten Welinder, Gnumeric hacker and leak plugging demi-god.
%package devel
2008-04-03 00:14:51 +02:00
License : GPL v2 or later
2007-05-25 02:07:20 +02:00
Summary : Spreadsheet Application
Group : Productivity/Office/Spreadsheets
Provides : gnumeric:/usr/include/libspreadsheet-1-7/application.h
2008-04-25 16:04:10 +02:00
Requires : %{name} = %{version} glib2-devel goffice-devel gtk2-devel libglade2-devel libgnomeprint-devel libgsf-devel libxml2-devel
2007-05-25 02:07:20 +02:00
%description devel
Gnumeric is a spreadsheet application with advanced features and
analytics. It aims to minimize the cost of transition from proprietary
spreadsheets by offering a familiar look and feature set. In addition
to read and write support for all versions of Microsoft Excel
(including reading encrypted files), there is also support for many
other formats including:
*Applix 4 and 5 *DIF *Lotus-123 (wk1, wk2, wk3) *OpenOffice.org (Oasis)
*PlanPerfect (pln) *Psion5 *Quattro Pro (wb1, wb2, wb3) *SYLK
*XBase/DB3
Text formats, such as comma or tab separated values, HTML, XHTML, and
Latex, are supported and there are powerful assistants to handle custom
needs.
Gnumeric is part of the GNOME project.
2007-01-10 17:43:40 +01:00
Authors:
--------
Miguel de Icaza, creator.
Jody Goldberg, maintainer.
Sean Atkinson, functions and X-Base importing.
Michel Berkelaar, Simplex algorithm for Solver (LP Solve).
Grandma Chema Celorio, Tester and sheet copy.
Frank Chiulli, OLE support.
Kenneth Christiansen, i18n, misc stuff.
Zbigniew Chyla, plugin system, i18n.
J.H.M. Dassen (Ray), debian packaging.
Jeroen Dirks, Simplex algorithm for Solver (LP Solve).
Tom Dyas, plugin support.
Gergo Erdi, Gnumeric hacker.
John Gotts, rpm packaging.
Andreas J. Guelzow, Gnumeric hacker.
Jon K. Hellan, Gnumeric hacker.
Ross Ihaka, special functions.
Jukka-Pekka Iivonen, numerous functions and tools.
Jakub Jelinek, Gnumeric hacker.
Chris Lahey, number format engine.
Adrian Likins, documentation, debugging.
Takashi Matsuda, original text plugin.
Michael Meeks, Excel and OLE2 importing.
Lutz Muller, SheetObject improvements.
Federico M. Quintero, canvas support.
Mark Probst, Guile support.
Rasca, HTML, troff, LaTeX exporters.
Vincent Renardias, original CSV support, French localization.
Ariel Rios, Guile support.
Arturo Tena, OLE support.
Almer S. Tigelaar, Gnumeric hacker.
Bruno Unna, Excel bits.
Daniel Veillard, XML support.
Vladimir Vuksan, financial functions.
Morten Welinder, Gnumeric hacker and leak plugging demi-god.
2007-08-09 19:15:43 +02:00
%lang_package
2007-01-10 17:43:40 +01:00
%prep
%setup -q
2009-07-31 19:44:54 +02:00
%patch0 -p1
2007-01-10 17:43:40 +01:00
%build
2009-03-26 01:49:32 +01:00
export CFLAGS=" $RPM_OPT_FLAGS - f n o - s t r i c t - a l i a s i n g "
2007-01-10 17:43:40 +01:00
%configure \
--disable-scrollkeeper\
2009-03-12 14:28:13 +01:00
--disable-static\
2007-01-10 17:43:40 +01:00
--libexecdir=%{_prefix} /lib/gnumeric\
2009-03-26 01:49:32 +01:00
--enable-ssindex
2008-04-03 00:14:51 +02:00
# --enable-pdfdocs
2007-01-10 17:43:40 +01:00
make %{?jobs:-j%jobs}
%install
2009-03-12 14:28:13 +01:00
%makeinstall
2007-01-18 01:31:26 +01:00
# FIXME: Build as root modifies system!
# gnumeric-1.6.3: --disable-scrollkeeper does not work properly.
2007-08-03 16:35:45 +02:00
rm -rf $RPM_BUILD_ROOT %{_localstatedir} /scrollkeeper
2007-01-10 17:43:40 +01:00
# gnumeric.keys contains strange MIME types. Ignore them.
DESTDIR=$RPM_BUILD_ROOT mime-info-to-mime || true
2007-08-03 16:35:45 +02:00
%suse_update_desktop_file -r -N Gnumeric %{name} Office Spreadsheet GNOME GTK
2007-01-10 17:43:40 +01:00
%find_lang %{name}
%find_lang gnumeric-functions %{name} .lang
%find_gconf_schemas
2007-08-09 19:15:43 +02:00
cat %{name} .schemas_list >%{name} .lst
2009-03-12 14:28:13 +01:00
find %{buildroot} -type f -name " * . l a " -exec %{__rm} -fv {} +
2007-08-09 19:15:43 +02:00
%fdupes $RPM_BUILD_ROOT
2007-01-10 17:43:40 +01:00
%clean
rm -rf $RPM_BUILD_ROOT
%pre -f %{name}.schemas_pre
%post
2007-08-09 19:15:43 +02:00
/sbin/ldconfig
2007-01-10 17:43:40 +01:00
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null
fi
2009-07-31 19:44:54 +02:00
2007-01-10 17:43:40 +01:00
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%postun
2007-08-09 19:15:43 +02:00
/sbin/ldconfig
2007-01-10 17:43:40 +01:00
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%files -f %{name}.lst
%defattr (-, root, root)
%doc AUTHORS BEVERAGES BUGS COPYING HACKING MAINTAINERS NEWS README ChangeLog OChangeLog*
%{_bindir} /*
%{_libdir} /*.so
%dir %{_libdir} /gnumeric
%dir %{_libdir} /gnumeric/*[^t]
%dir %{_libdir} /gnumeric/*/plugins
%dir %{_libdir} /gnumeric/*/plugins/*
%{_libdir} /gnumeric/*/plugins/*/*.so
%{_libdir} /gnumeric/*/plugins/*/*.xml
%{_libdir} /gnumeric/*/plugins/*/*.py
%{_libdir} /gnumeric/*/plugins/*/*.pl
%{_libdir} /gnumeric/*/plugins/gnome-glossary/glossary-po-header
2009-02-07 01:34:21 +01:00
%{_libdir} /goffice/*/plugins/gnumeric
2007-01-10 17:43:40 +01:00
%{_datadir} /applications/*.desktop
%{_datadir} /gnumeric
%{_datadir} /pixmaps/*.png
%{_datadir} /pixmaps/*.ico
%{_datadir} /pixmaps/gnumeric
2008-09-06 05:56:54 +02:00
%{_datadir} /icons/hicolor/*/apps/gnumeric.*
2007-01-10 17:43:40 +01:00
%{_datadir} /omf/gnumeric
%{_mandir} /man?/*.*
2007-05-25 02:07:20 +02:00
2007-08-09 19:15:43 +02:00
%files lang -f %{name}.lang
2009-03-26 01:49:32 +01:00
# Temporary workaround to not depend on libgnome: own the directories
%defattr (-, root, root)
%dir %{_datadir} /gnome
%dir %{_datadir} /gnome/help
2007-08-09 19:15:43 +02:00
2007-05-25 02:07:20 +02:00
%files devel
%defattr (-, root, root)
2007-03-07 01:51:04 +01:00
%{_includedir} /libspreadsheet*
2007-06-08 00:15:58 +02:00
%{_libdir} /pkgconfig/*.pc
2008-04-03 00:14:51 +02:00
%{_libdir} /gnumeric/*/include
2008-03-07 21:55:27 +01:00
2007-03-07 01:51:04 +01:00
%changelog