File tasks.spec of Package tasks

#
# spec file for package tasks
#
# Copyright (c) 2012 Dominique Leuenberger, Amsterdam, The Netherlands
#
# 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:           tasks
Version:        3.3.90
Release:        0
License:        GPL-2.0+
Summary:        To Do list application for GNOME
Url:            http://pimlico-project.org/tasks.html
Group:          Productivity/Office/Organizers
Source:         http://ftp.acc.umu.se/pub/GNOME/sources/tasks/3.3/%{name}-%{version}.tar.xz
# Needed for %%desktop_database_* macros
BuildRequires:  desktop-file-utils
BuildRequires:  intltool >= 0.33.0
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.2
BuildRequires:  pkgconfig(libecal-1.2)
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Tasks is a simple To Do list application for GNOME. It features a simple
interface which follows the Do The Right Thing principle, for example
tasks cannot be sorted manually and instead are sorted automatically
based on a combination of the priority and the due date (if set).

%lang_package
%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
%make_install
%find_lang %{name} %{?no_lang_C}
# Remove non-standard icon size
rm -r %{buildroot}%{_datadir}/icons/hicolor/26x26

%post
%icon_theme_cache_post
%desktop_database_post

%postun
%icon_theme_cache_postun
%desktop_database_postun

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/tasks
%{_datadir}/applications/tasks.desktop
%{_datadir}/icons/hicolor/*/apps/tasks.*

%files lang -f %{name}.lang

%changelog