File gnome-documents.spec of Package gnome-documents

#
# spec file for package gnome-documents
#
# Copyright (c) 2011 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/
#



Name:           gnome-documents
Version:        0.2.1
Release:        1
License:        GPLv2+
Summary:        Document Manager for GNOME
Url:            http://www.gnome.org
Group:          Productivity/Office/Other
Source:         http://download.gnome.org/sources/gnome-documents/0.2/%{name}-%{version}.tar.bz2
BuildRequires:  intltool
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(clutter-gtk-1.0) >= 1.0.1
BuildRequires:  pkgconfig(evince-document-3.0)
BuildRequires:  pkgconfig(evince-view-3.0)
BuildRequires:  pkgconfig(gjs-1.0)
BuildRequires:  pkgconfig(glib-2.0) >= 2.29.90
BuildRequires:  pkgconfig(gnome-desktop-3.0)
BuildRequires:  pkgconfig(goa-1.0) >= 3.1.90
BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 0.9.6
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.1.13
BuildRequires:  pkgconfig(libgdata) >= 0.9.1
BuildRequires:  pkgconfig(oauth)
BuildRequires:  pkgconfig(tracker-miner-0.12)
BuildRequires:  pkgconfig(tracker-sparql-0.12) >= 0.12.1
# This is a gjs application
Requires:       gjs
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires

%description
Documents is a document manager application for GNOME.

%lang_package
%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%suse_update_desktop_file %{name}
%find_lang %{name} %{?no_lang_C}

%clean
rm -rf %{buildroot}

%post
/sbin/ldconfig
%glib2_gsettings_schema_post
%desktop_database_post
%icon_theme_cache_post

%postun
/sbin/ldconfig
%glib2_gsettings_schema_postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
%doc AUTHORS NEWS README
%{_bindir}/gnome-documents
%{_datadir}/applications/gnome-documents.desktop
%{_datadir}/gnome-documents/
%{_datadir}/icons/hicolor/*/apps/gnome-documents.png
%{_libexecdir}/gd-tracker-gdata-miner
%{_libdir}/girepository-1.0/Gd-1.0.typelib
# As the library is private, there is no point in using SLPP
%{_libdir}/libgdprivate-1.0.so
%{_libdir}/libgdprivate-1.0.so.*
%{_datadir}/dbus-1/services/org.gnome.Documents.GDataMiner.service
# We have no devel package
%{_datadir}/gir-1.0/Gd-1.0.gir
%{_datadir}/glib-2.0/schemas/org.gnome.documents.gschema.xml

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by