File goffice.spec of Package goffice

# spec file for package goffice (Version 0.8.12)
# Copyright (c) 2010 SUSE LINUX Products 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

# norootforbuild

Name:           goffice
BuildRequires:  fdupes
BuildRequires:  gconf2-devel
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libgsf-devel
BuildRequires:  pcre-devel
BuildRequires:  translation-update-upstream
Version:        0.8.12
Release:        1
Group:          System/GUI/GNOME
License:        GPLv2 ; GPLv2+
Summary:        GLib/GTK+ Set of Document-Centric Objects and Utilities
Source:         %{name}-%{version}.tar.bz2
Requires:       %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

These are common operations for document-centric applications that
   are conceptually simple, but complex to implement fully. -

- Load and save documents

- Undo and redo

GOffice is a GLib/GTK+ set of document-centric objects and utilities.

%package devel
License:        GPLv2+
Group:          Development/Libraries/GNOME
Summary:        Development files for goffice
Requires:       %{name} = %{version} cairo-devel gconf2-devel glib2-devel gtk2-devel libgsf-devel libxml2-devel pango-devel pcre-devel
Obsoletes:      goffice-doc < %{version}
Provides:       goffice-doc = %{version}

%description devel
GOffice is a GLib/GTK+ set of document-centric objects and utilities.

This package contains files needed to develop applications using

%setup -q

%configure --disable-static --with-pic
make %{?jobs:-j%jobs}

find %{buildroot} -type f -name "*.la" -print -delete
%find_lang %{name}-%{version}


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%defattr (-, root, root)

%files lang -f %{name}-%{version}.lang

%files devel
%defattr (-, root, root)
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html