File qsyncthingtray.spec of Package qsyncthingtray

# spec file for package qsyncthingtray
# 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

%define _name   QSyncthingTray
Name:           qsyncthingtray
Version:        0.5.8
Release:        0
Summary:        Qt-based Traybar Application for Syncthing
License:        LGPL-3.0+ and GPL-3.0+
Group:          Productivity/Networking/File-Sharing
Source1:        %{name}.desktop
Source2:        %{name}.appdata.xml
BuildRequires:  ImageMagick
BuildRequires:  cmake
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  syncthing
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt5Core) >= 5.6
BuildRequires:  pkgconfig(Qt5Network) >= 5.6
BuildRequires:  pkgconfig(Qt5PrintSupport) >= 5.6
BuildRequires:  pkgconfig(Qt5Widgets) >= 5.6
Requires:       syncthing
Recommends:     syncthing-inotify
%if 0%{?suse_version} > 1320 || (0%{?sle_version} > 120200 && 0%{?is_opensuse})
BuildRequires:  pkgconfig(Qt5WebEngineWidgets) >= 5.6
BuildRequires:  pkgconfig(Qt5WebKitWidgets) >= 5.6

A Traybar Application for Syncthing written in Qt.

 * Show number of connections at a glance.
 * Traffic statistics and graphs about throughput and connections.
 * Launch Syncthing and Syncthing-Inotify if specified.
 * Quickly pause Syncthing with one click.
 * Last Synchronised Files - Quickly see the recently synchronised
   files and open their directory.
 * Quick Access to all shared directories.
 * Present Syncthing UI in a separate view instead of using the
 * Support authenticated HTTPS connections.
 * Use System Notifications about current connection status.
 * A toggle for monochrome icon.

%setup -q -n %{_name}-%{version}
cp %{SOURCE1} %{name}.desktop
cp %{SOURCE2} %{name}.appdata.xml
sed -i 's|%{_prefix}/local|%{_prefix}|g' includes/platforms/linux/posixUtils.hpp

%cmake \
%if 0%{?suse_version} > 1320 || (0%{?sle_version} > 120200 && 0%{?is_opensuse})
make %{?_smp_mflags} V=1

install -Dpm 0755 build/%{_name} %{buildroot}%{_bindir}/%{name}
install -Dpm 0644 %{name}.desktop \
install -Dpm 0644 %{name}.appdata.xml \

for size in 16 32 48 64 128 256 512; do
    mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/
    convert -strip -resize ${size}x${size} resources/images/Icon1024.png \

%suse_update_desktop_file %{name}



%doc LICENSE.txt COPYING.GPLv3+.txt
%dir %{_datadir}/appdata/

openSUSE Build Service is sponsored by