File tasque.spec of Package tasque
#
# spec file for package tasque
#
# 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/
#
# norootforbuild
Url: http://live.gnome.org/Tasque
Name: tasque
%define dbus_min_version 0.60-26
Version: 0.1.9
Release: 11
License: LGPLv2.1+ ; 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
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
Recommends: %{name}-lang
%if 0%{?suse_version}
BuildRequires: translation-update-upstream
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
translation-update-upstream
%build
%configure \
--enable-standard-backends
%__make
%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file %{name}
%fdupes -s $RPM_BUILD_ROOT
%clean
rm -rf "$RPM_BUILD_ROOT"
%if 0%{?suse_version} > 1130
%post
%desktop_database_post
%icon_theme_cache_post
%endif
%if 0%{?suse_version} > 1130
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%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
%changelog