File tasque.spec of Package tasque

#
# spec file for package tasque (Version 0.1.8)
#
# Copyright (c) 2009 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

Url:            http://live.gnome.org/Tasque

Name:           tasque
%define dbus_min_version 0.60-26
Version:        0.1.8
Release:        2
License:        LGPL v2.1 or later ; MIT License (or similar)
Provides:       tasky = %{version}
Obsoletes:      tasky < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  dbus-1-devel evolution-sharp fdupes gconf2-devel gnome-sharp2 intltool mono-devel ndesk-dbus ndesk-dbus-glib-devel notify-sharp
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM tasque-fix-rtmnet-dir.patch bnc538983 bgo597160vuntz@opensuse.org -- Put the RtmNet.dll in the right directory
Patch0:         tasque-fix-rtmnet-dir.patch
Group:          Productivity/Office/Organizers
Summary:        A simple task management app (TODO list) for the Linux Desktop
Requires:       dbus-1-glib >= %{dbus_min_version}
Requires:       dbus-1-x11 >= %{dbus_min_version}
Requires:       ndesk-dbus
Requires:       %{name}-lang = %{version}
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%else
%define suse_update_desktop_file true
%endif

%description
Tasky is a simple task management app (TODO list) for the Linux
Desktop.

%lang_package
%prep
%setup -q
%patch0 -p1

%build
%configure \
    --enable-backend-rtm --enable-backend-sqlite --enable-backend-eds \
    --enable-backend-hiveminder
%__make

%install
%makeinstall
%find_lang %{name}
%suse_update_desktop_file %{name}
%fdupes -s $RPM_BUILD_ROOT

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_libdir}/pkgconfig/tasque.pc
%{_libdir}/tasque/
%{_datadir}/applications/tasque.desktop
%{_datadir}/dbus-1/services/org.gnome.Tasque.service
%{_datadir}/icons/hicolor/*/apps/tasque.png
%{_datadir}/icons/hicolor/scalable/apps/tasque.svg
%{_datadir}/pixmaps/note-16.png
%{_datadir}/pixmaps/rtmLogo.png
%{_datadir}/pixmaps/tasque-*.png
%{_datadir}/pixmaps/tasque.svg
%{_datadir}/tasque/

%files lang -f %{name}.lang
%defattr(-,root,root)
%if %suse_version <= 1110
# exclude locales which don't exist on old versions of openSUSE
%exclude %{_datadir}/locale/tr_TR/LC_MESSAGES/*
%endif

%changelog
openSUSE Build Service is sponsored by