File goffice-0_8.spec of Package goffice-0_8
#
# spec file for package goffice-0_8
#
# Copyright (c) 2016 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/
#
%define _name goffice
Name: goffice-0_8
Version: 0.8.17
Release: 0
Summary: GLib/GTK+ Set of Document-Centric Objects and Utilities
License: GPL-2.0
Group: System/GUI/GNOME
# FIXME: on upgrade to > 0.8.17, change versioned Obsoletes: <= to <
Url: http://www.gnumeric.org/
Source: http://download.gnome.org/sources/goffice/0.8/%{_name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM goffice-0_8-pcre-8_30.patch bgo#670316 dimstar@opensuse.org -- Port pcre_info to pcre_fullinfo to support pcre 8.30.
Patch0: goffice-0_8-pcre-8_30.patch
# PATCH-FIX-UPSTREAM goffice-0_8-pcre16.patch dimstar@opensuse.org -- Fix build against pcre16 enabled pcre. Not submitted upstream, as goffice 0.8 is unmaintained and 0.9.x does not suffer from this issue.
Patch1: goffice-0_8-pcre16.patch
BuildRequires: fdupes
BuildRequires: gconf2-devel
BuildRequires: gnome-common
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: libgsf-devel
BuildRequires: pcre-devel
BuildRequires: translation-update-upstream
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1210
# For pcretest
BuildRequires: pcre-tools
%endif
%description
These are common operations for document-centric applications that
are conceptually simple, but complex to implement fully. -
Plug-ins
- Load and save documents
- Undo and redo
GOffice is a GLib/GTK+ set of document-centric objects and utilities.
%package -n libgoffice-0_8-8
Summary: GLib/GTK+ Set of Document-Centric Objects and Utilities
Group: System/Libraries
Recommends: %{name}-lang
Provides: %{name} = %{version}
# Help upgrades from pre-slpp packages
Provides: %{_name} = %{version}
# FIXME: on upgrade, change <= to <
Obsoletes: %{_name} <= %{version}
%description -n libgoffice-0_8-8
These are common operations for document-centric applications that
are conceptually simple, but complex to implement fully. -
Plug-ins
- Load and save documents
- Undo and redo
GOffice is a GLib/GTK+ set of document-centric objects and utilities.
%package devel
Summary: Development files for goffice
Group: Development/Libraries/GNOME
Requires: libgoffice-0_8-8 = %{version}
Requires: pcre-devel
%description devel
GOffice is a GLib/GTK+ set of document-centric objects and utilities.
This package contains files needed to develop applications using
goffice.
%lang_package
%prep
%setup -q -n %{_name}-%{version}
%patch0 -p1
%patch1 -p1
translation-update-upstream
%build
NOCONFIGURE=1 gnome-autogen.sh
# boo#985106 -- Needed with GCC 6 and newer.
CFLAGS+="-Wno-format-nonliteral"
%configure --disable-static --with-pic
make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{_name}-%{version}
%fdupes %{buildroot}
%post -n libgoffice-0_8-8 -p /sbin/ldconfig
%postun -n libgoffice-0_8-8 -p /sbin/ldconfig
%files -n libgoffice-0_8-8
%defattr (-, root, root)
%doc AUTHORS BUGS COPYING ChangeLog MAINTAINERS NEWS README
%{_libdir}/libgoffice-0.8.so.*
%dir %{_libdir}/goffice
%{_libdir}/goffice/%{version}/
%dir %{_datadir}/goffice
%{_datadir}/goffice/%{version}/
%dir %{_datadir}/pixmaps/goffice
%{_datadir}/pixmaps/goffice/%{version}/
%files devel
%defattr (-, root, root)
%{_includedir}/libgoffice-0.8/
%{_libdir}/libgoffice-0.8.so
%{_libdir}/pkgconfig/libgoffice-0.8.pc
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%doc %{_datadir}/gtk-doc/html/goffice-0.8/
%files lang -f %{_name}-%{version}.lang
%defattr(-,root,root)
%changelog