File birdtray.spec of Package birdtray
#
# spec file for package birdtray
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
Name:           birdtray
Version:        1.11.4
Release:        0
Summary:        New mail system tray notification icon for Thunderbird
License:        GPL-3.0-only
URL:            https://github.com/gyunaev/birdtray
Source0:        %{name}-%{version}.tar.gz
Patch0:         birdtray-add-missing-include-QPainterPath.patch
BuildRequires:  ninja
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  libqt5-qtbase-common-devel
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  cmake(Qt5LinguistTools)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  pkgconfig(Qt5Svg)
%description
A free, cross-platform (Linux/Windows/OS X) system tray notification for new mail for Thunderbird. Features - Shows the unread email counter in the Thunderbird system tray icon. - Optionally can animate the Thunderbird system tray icon if new mail is received. - You can snooze new mail notifications for a specific time period. - Birdtray checks the unread e-mail status directly by reading the Thunderbird email search database. This means it does not need any extensions, and thus is immune to any future extension API changes in Thunderbird. - Starting from version 0.2 if you click on Birdtray icon, it can hide the Thunderbird window, and restore it. There is also context menu for that. - You can configure which accounts you want to check for unread emails on. - You can choose different font colors for different email accounts. This allows you, for example, to have blue unread count for personal emails, red unread count for work emails, and green unread count if both folders have unread mail. - Can launch Thunderbird when Birdtray starts, and terminate it when Birdtray quits (configurable). - You can choose the tray icon, or use Thunderbird original icon. - Can monitor that Thunderbird is running, and indicate it if you accidentally closed it.
%lang_package
%prep
%autosetup -p1
%build
%if 0%{?suse_version} > 1500 || 0%{?sle_version} == 150200
%define __builder ninja
%endif
%cmake \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_BUNDLED=OFF \
..
%cmake_build
%install
mkdir -p build/translations
%cmake_install
%find_lang %{name} --with-qt --all-name
%files
%license LICENSE.txt
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/icons/hicolor/scalable/apps/*.svg
%{_datadir}/metainfo/*.xml
%files lang -f %{name}.lang
%{_datadir}/ulduzsoft/
%changelog