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 http://bugs.opensuse.org/
#

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

%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 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
goffice.

%lang_package
%prep
%setup -q
translation-update-upstream

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

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -print -delete
%find_lang %{name}-%{version}
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr (-, root, root)
%doc AUTHORS BUGS COPYING ChangeLog MAINTAINERS NEWS README
%{_datadir}/goffice
%{_datadir}/pixmaps/goffice
%{_libdir}/*.so.*
%{_libdir}/goffice

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

%files devel
%defattr (-, root, root)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/goffice-0.8

%changelog