Sisyphus
: 13 2019 | : 17526 | : 15715478
en ru br
ALT
S:1.12.46-alt1
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
www.altlinux.org/Changes

::
: 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
Url: http://www.gnumeric.org/

Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.xz
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 python_loader.so
%{?_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}
%{?_with_python:
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}

%description
Gnumeric is a modern full-featured spreadsheet program.  Gnumeric
contains built-in functions help system, analysis tools and plotting
interface.
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.

%prep
%setup
%patch -p1
%patch1

subst 's at zz-application\/zz-winassoc-xls; at  at ' %name.desktop.in
subst 's|\( at GIOVERRIDESDIR at \)|$(DESTDIR)\1|' introspection/Makefile.am

%build
%add_optflags -D_FILE_OFFSET_BITS=64
%autoreconf
%configure \
--disable-schemas-compile \
%{subst_with gnome} \
%{subst_with gda} \
%{subst_with python} \
%{subst_with perl} \
%{?_enable_introspection:--enable-introspection=yes} \
%{?_with_python:PYTHON=%_bindir/python2}
%make_build

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

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

%files
%_bindir/*
%_libdir/%name/
%_libdir/goffice/%goffice_api_ver/plugins/%name/%name.so
%_libdir/goffice/%goffice_api_ver/plugins/%name/plugin.xml
%{?_with_python:%python_sitelibdir/gi/overrides/Gnm.py*}
%doc AUTHORS ChangeLog NEWS BUGS README COPYING HACKING

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

%files data -f %name.lang
%dir %_datadir/%name
%_datadir/%name/%version/
%_datadir/applications/*
%_datadir/pixmaps/*
%_iconsdir/hicolor/*/apps/gnumeric.*
%_man1dir/*
%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
%_datadir/appdata/%name.appdata.xml

%if_enabled introspection
%files gir
%_typelibdir/Gnm-%api_ver.typelib

%files gir-devel
%_girdir/Gnm-%api_ver.gir
%endif

%files -n libspreadsheet%{api_ver}
%_libdir/libspreadsheet*

%files -n libspreadsheet-devel
%_includedir/libspreadsheet-%{api_ver}
%_pkgconfigdir/*

%changelog

changelog

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