gnumeric/gnumeric.spec
Dominique Leuenberger 9605c27b35 Accepting request 545151 from GNOME:Next
- Update to version 1.12.36:
  + Improves:
    - Contour plot:
      . Export/import to/from ODF (bgo#788728).
      . Import of Excel generated ODF (bgo#788801).
    - Surface plot export to ODF (bgo#788447).
  + Fixes:
    - Export/import of CONCATENATE and minor axis divisors to and
      from ODF.
    - Import of affine trendline from ODF (bgo#789538).
    - Background of multiple selection (bgo#789411).
    - Error on xlsx files with bogus Print_Area.
    - xlsx:
      . Export of trend line equation.
      . Import and export of trend line affine flag.
    - VDB for partial periods (bgo#790299).
  + Workaround for gtk scroll bar bug (bgo#789412).
  + Convert all xpm files to png.
  + Avoid to-pixdata options for resources. It's going away.
  + Minor CORREL improvement.
  + xlsx import and export improvements for contour graphs.
  + Avoid critical on exporting unnamed xlsx trend line.
- Drop %glib2_gsettings_schema_*, %desktop_database_* and
  %icon_theme_cache_* post/postun scriptlets: they are no longer
  needed since RPM file triggers.
- Drop --disable-scrollkeeper and --enable-ssindex configure
  parameters: no longer available.
- Add gio-2.0, gmodule-2.0, gobject-2.0 and gthread-2.0 pkgconfig
  BuildRequires: note that they already were being pulled with
  pkgconfig(glib-2.0) and used since they live in the same devel

OBS-URL: https://build.opensuse.org/request/show/545151
OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/gnumeric?expand=0&rev=145
2017-11-27 08:34:36 +00:00

208 lines
7.1 KiB
RPMSpec

#
# spec file for package gnumeric
#
# Copyright (c) 2017 SUSE LINUX 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/
#
Name: gnumeric
Version: 1.12.36
Release: 0
Summary: Spreadsheet Application
License: GPL-2.0 or GPL-3.0
Group: Productivity/Office/Spreadsheets
Url: http://www.gnumeric.org/
Source0: http://download.gnome.org/sources/gnumeric/1.12/%{name}-%{version}.tar.xz
BuildRequires: bison
BuildRequires: docbook-dtds
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: itstool
BuildRequires: libgsf-devel
BuildRequires: libtool
BuildRequires: python-devel
%if !0%{?is_opensuse}
BuildRequires: translation-update-upstream
%endif
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gio-2.0) >= 2.38.0
BuildRequires: pkgconfig(glib-2.0) >= 2.38.0
BuildRequires: pkgconfig(gmodule-2.0) >= 2.38.0
BuildRequires: pkgconfig(gobject-2.0) >= 2.38.0
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.0.0
BuildRequires: pkgconfig(gthread-2.0) >= 2.38.0
BuildRequires: pkgconfig(gtk+-3.0) >= 3.8.7
BuildRequires: pkgconfig(libgda-5.0) >= 5.0.0
BuildRequires: pkgconfig(libgda-ui-5.0) >= 5.0.0
BuildRequires: pkgconfig(libgoffice-0.10) >= 0.10.28
BuildRequires: pkgconfig(libgsf-1) >= 1.14.33
BuildRequires: pkgconfig(libxml-2.0) >= 2.4.12
BuildRequires: pkgconfig(pango) >= 1.24.0
BuildRequires: pkgconfig(pangocairo) >= 1.24.0
BuildRequires: pkgconfig(pygobject-3.0) >= 3.0.0
Recommends: %{name}-doc
Recommends: %{name}-lang
Recommends: ghostscript-fonts-std
Recommends: liberation2-fonts
# gnumeric uses a ghelp: URI to launch the help application. Let's recommend to have an app that can handle it (bnc#719679)
Recommends: mimehandler(x-scheme-handler/ghelp)
Provides: gnumeric2 = %{version}
Obsoletes: gnumeric2 < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
%{?libperl_requires}
%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.
%package doc
Summary: Documentation files for Gnumeric
Group: Documentation/Other
Requires: %{name} = %{version}
BuildArch: noarch
%description doc
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.
%package devel
Summary: Spreadsheet Application
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
%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.
%lang_package
%prep
%setup -q
%if !0%{?is_opensuse}
translation-update-upstream
translation-update-upstream po-functions gnumeric-functions
# remove incomplete translations caused by translation-update-upstream (global LINGUAS file, two domains)
for LNG in po/*.po ; do
LNG=`basename ${LNG%%.po}`
if ! test -f po-functions/$LNG.po ; then
echo "Removing incomplete $LNG from LINGUAS."
sed -i "/^$LNG\$/d" po/LINGUAS
fi
done
%endif
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
autoreconf -fiv
%configure\
--disable-static
# --enable-pdfdocs
make %{?_smp_mflags}
%install
%make_install
# FIXME: Build as root modifies system!
%suse_update_desktop_file -r %{name} Office Spreadsheet GNOME GTK
%find_lang %{name} %{?no_lang_C}
%find_lang %{name}-%{version} %{?no_lang_C} %{name}.lang
%find_lang gnumeric-%{version}-functions %{?no_lang_C} %{name}.lang
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHORS BEVERAGES BUGS COPYING COPYING-gpl2 COPYING-gpl3 HACKING MAINTAINERS NEWS README ChangeLog OChangeLog*
%dir %{_datadir}/appdata/
%{_datadir}/appdata/%{name}.appdata.xml
%{_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
%{_libdir}/goffice/*/plugins/gnumeric/
%{_datadir}/applications/gnumeric.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.gnumeric.dialogs.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.gnumeric.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.gnumeric.plugin.gschema.xml
%{_datadir}/gnumeric/
%{_datadir}/icons/hicolor/*/apps/gnumeric.*
%{_datadir}/pixmaps/*.png
%{_datadir}/pixmaps/win32-gnumeric.ico
%{_datadir}/pixmaps/gnumeric/
%{_mandir}/man?/*.*
%files doc
%doc %{_datadir}/help/C/%{name}
%files devel
%defattr(-, root, root)
%{_includedir}/libspreadsheet-*/
%{_libdir}/pkgconfig/libspreadsheet-*.pc
%files lang -f %{name}.lang
%changelog