File go-for-it.spec of Package go-for-it

#
# spec file for package go-for-it
#
# Copyright (c) 2017 SUSE LINUX 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/
#


%define _name   Go-For-It
Name:           go-for-it
Version:        1.5
Release:        0
Summary:        A stylish to-do list with built-in productivity timer
License:        GPL-3.0
Group:          Productivity/Office/Organizers
Url:            https://github.com/mank319/Go-For-It
Source:         https://github.com/mank319/%{_name}/archive/release_v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM go-for-it-vala-0.36.patch -- Fix build with vala >= 0.36.
Patch0:         go-for-it-vala-0.36.patch
BuildRequires:  cmake >= 2.8
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  vala >= 0.24
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.4
BuildRequires:  pkgconfig(libnotify)
Recommends:     %{name}-lang

%description
Go For It! keeps track of your tasks and assists you in processing
them subsequently. The timer avoids distraction, by keeping your
focus on the recent task, while reminding you to take short breaks
on a regular base.

%lang_package

%prep
%setup -q -n %{_name}-release_v%{version}
%patch0 -p1

%build
%cmake
make %{?_smp_mflags} V=1

%install
%cmake_install
%suse_update_desktop_file -r %{name} Utility DesktopUtility
%find_lang %{name}
%fdupes %{buildroot}%{_datadir}/

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
%doc AUTHORS COPYING README.md
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}*

%files lang -f %{name}.lang
%defattr(-,root,root)

%changelog