File mailnag.spec of Package mailnag
#
# spec file for package mailnag
#
# Copyright (c) 2016 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/
#
Name: mailnag
Version: 2.2.0
Release: 0
Summary: Mail notification daemon
License: GPL-2.0+
Group: Productivity/Networking/Email/Utilities
Url: https://github.com/pulb/mailnag
Source: https://github.com/pulb/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: gettext
BuildRequires: gobject-introspection-devel
BuildRequires: hicolor-icon-theme
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: update-desktop-files
BuildRequires: fdupes
Requires: python3-dbus-python
Requires: python3-gobject-Gdk
Requires: libsecret
Requires: python3
Requires: python3-gobject
Requires: python3-pyxdg
Recommends: %{name}-lang
Recommends: mailnag-goa-plugin
BuildArch: noarch
%description
Mailnag checks POP3 and IMAP servers for new mail and when it finds
one creates a proper GNOME 3 notification that mentions sender and
subject.
%lang_package
%prep
%setup -q
sed -i '1d' Mailnag/common/imaplib2.py
%build
%python3_build
%install
%python3_install
%fdupes %{buildroot}%{_prefix}
%find_lang %{name}
%files
%defattr(-,root,root)
%doc AUTHORS LICENSE NEWS README.md
%{_bindir}/%{name}*
%{_datadir}/%{name}/
%{python3_sitelib}/Mailnag/
%{python3_sitelib}/%{name}-*
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/*/apps/%{name}*.*
%{_datadir}/metainfo/mailnag.appdata.xml
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog