LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File tomate-gtk.spec of Package tomate-gtk (Project home:sebix:branches:home:eliostvs:tomate)

#
# spec file for package tomate-gtk
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2014 Elio Esteves Duarte <elio.esteves.duarte@gmail.com>
#
# 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 modname tomate
%define module_name %{modname}_gtk
Name:           %{modname}-gtk
Version:        0.7.0
Release:        0
Summary:        Tomate Pomodoro Timer (GTK+ Interface)
License:        GPL-3.0+
Group:          Productivity/Other
Url:            https://github.com/eliostvs/tomate-gtk
Source:         %{name}-%{version}.tar.gz
BuildRequires:  desktop-file-utils
BuildRequires:  hicolor-icon-theme
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:       dbus-1-x11
Requires:       python-tomate >= 0.7.0
Requires:       typelib-1_0-Gtk-3_0
BuildArch:      noarch

%description
Tomate Pomodoro Timer (GTK+ Interface).

%prep
%setup -q

%build
python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/*.*
%{python3_sitelib}/*.egg-info
%{python3_sitelib}/%{module_name}

%doc AUTHORS COPYING README.md

%changelog