: 13 2019 | : 17526 | : 15715478
en ru br
5.1: 1.10.5-alt0.M51.1
4.1: 1.9.2-alt1.M41.1
4.0: 1.7.11-alt1
3.0: 1.4.3-alt1

: gnumeric

             Sources      Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1

%define ver_major 1.12
%define api_ver 1.12
%define goffice_api_ver 0.10

%def_without gda
%def_without python
%def_with perl
%def_enable introspection
%def_disable check

Name: gnumeric
Version: %ver_major.46
Release: alt1

Summary: A full-featured spreadsheet for GNOME
License: GPLv2+ GPLv3+
Group: Office

Patch: gnumeric-desktop-alt.patch
Patch1: gnumeric-1.12.1-alt-locale_dir.patch

Obsoletes: %name-light
Provides: %name-light = %version-%release

%define gsf_ver 1.14.44
%define gda_ver 5.2
%define desktop_file_utils_ver 0.10
%define goffice_ver 0.10.45
# Provided by
%{?_with_python:Provides: python%__python_version(Gnumeric)}

Requires(post,postun): desktop-file-utils >= %desktop_file_utils_ver
Requires: libgnomeoffice%goffice_api_ver >= %goffice_ver
Requires: libspreadsheet%{api_ver} = %version-%release
Requires: %name-data = %version-%release

BuildRequires(pre): rpm-build-gnome rpm-build-gir
BuildRequires: bison flex help2man gtk-doc
BuildRequires: libgnomeoffice%goffice_api_ver-devel >= %goffice_ver
BuildRequires: libgsf-devel >= %gsf_ver
BuildRequires: libgtk+3-devel
BuildRequires: intltool yelp-tools zlib-devel librarian
%{?_enable_introspection:BuildRequires: gobject-introspection-devel libgsf-gir-devel libgnomeoffice%goffice_api_ver-gir-devel}
%{?_with_perl:BuildRequires: perl-devel}
BuildRequires(pre): rpm-build-python
BuildRequires: python-devel python-module-pygobject3-devel}
%{?_with_gda:BuildRequires: libgda5-devel >= %gda_ver libgnomedb4-devel}
%{?_enable_check:BuildRequires: xvfb-run}

Gnumeric is a modern full-featured spreadsheet program.  Gnumeric
contains built-in functions help system, analysis tools and plotting
There are nearly 95 percents of all Excel functions implemented in
Gnumeric besides a possibility to write your own functions in Python
and Perl.  There are Lotus 1-2-3, MS Excel 95/98/2000/XP, SYLK among
supported third party formats.

%description -l ru_RU.UTF8
Gnumeric - это современная полнофункциональная программа для работы с
электронными таблицами.  Gnumeric содержит встроенную систему подсказки
к функциям, средства анализа и умеет строить графики.  Программа
поддерживает приблизительно 95 процентов функций, имеющихся в MS Excel,
дополнить которые можно своими собственными функциями, написанными на
языке Python и Perl.  Среди поддерживаемых форматов - Lotus 1-2-3,
MS Excel 95/98/2000/XP, SYLK.

%package data
Summary: Arch independent files for Gnumeric
Group: Office
BuildArch: noarch

%description data
This package provides noarch data needed for Gnumeric to work.

%package -n libspreadsheet%{api_ver}
Summary: libspreadsheet library
Group: System/Libraries
Obsoletes: libspreadsheet1.10

%description -n libspreadsheet%{api_ver}
This package provide libspreadsheet library

%package -n libspreadsheet-devel
Summary: libspreadsheet library headers
Group: Development/C
Provides: libspreadsheet%{api_ver}-devel = %version-%release
Requires: libspreadsheet%{api_ver} = %version-%release

%description -n libspreadsheet-devel
This package provide libspreadsheet library headers

%package gir
Summary: GObject introspection data for the Gnumeric
Group: System/Libraries
Requires: %name = %version-%release

%description gir
GObject introspection data for the Gnumeric.

%package gir-devel
Summary: GObject introspection devel data for the Gnumeric
Group: System/Libraries
BuildArch: noarch
Requires: %name-gir = %version-%release

%description gir-devel
GObject introspection devel data for the Gnumeric.

%patch -p1

subst 's at zz-application\/zz-winassoc-xls; at  at '
subst 's|\( at GIOVERRIDESDIR at \)|$(DESTDIR)\1|' introspection/

%add_optflags -D_FILE_OFFSET_BITS=64
%configure \
--disable-schemas-compile \
%{subst_with gnome} \
%{subst_with gda} \
%{subst_with python} \
%{subst_with perl} \
%{?_enable_introspection:--enable-introspection=yes} \

%find_lang --with-gnome --output=%name.lang %name %name-%version %name-%version-functions

%{?_enable_check:xvfb-run %make check}


%exclude %_libdir/%name/%version/plugins/*/*.la
%exclude %_libdir/goffice/%goffice_api_ver/plugins/%name/
# requires no more existing python(gsf)
%{?_with_python:%exclude %_libdir/%name/%version/plugins/gnome-glossary}

%files data -f %name.lang
%dir %_datadir/%name
%config %_datadir/glib-2.0/schemas/org.gnome.gnumeric.dialogs.gschema.xml
%config %_datadir/glib-2.0/schemas/org.gnome.gnumeric.gschema.xml
%config %_datadir/glib-2.0/schemas/org.gnome.gnumeric.plugin.gschema.xml

%if_enabled introspection
%files gir

%files gir-devel

%files -n libspreadsheet%{api_ver}

%files -n libspreadsheet-devel



: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
: Michael Shigorin