File shadowsocks-qt5.spec of Package shadowsocks-qt5
#
# spec file for package shadowsocks-qt5
#
# Copyright (c) 2015 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: shadowsocks-qt5
Version: 3.0.1
Release: 0
License: LGPL-3.0
Summary: A Native Cross-Platform GUI Shadowsocks Client
Url: https://github.com/shadowsocks/shadowsocks-qt5
Group: Productivity/Networking/Web/Proxy
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: gtk2-devel
BuildRequires: libappindicator-devel
BuildRequires: libqt5-qtbase-devel
BuildRequires: qrencode-devel
BuildRequires: libQtShadowsocks-devel
BuildRequires: libbotan-devel
BuildRequires: libzbar-devel
BuildRequires: hicolor-icon-theme
BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Shadowsocks-Qt5 is a native and cross-platform GUI
client for Shadowsocks.
%prep
%setup -q
%build
%cmake
make %{?_smp_mflags}
%install
%cmake_install
%suse_update_desktop_file -r %{name} System Network Security
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc LICENSE README.md
%{_bindir}/ss-qt5
%{_datadir}/applications/%{name}.desktop
%if 0%{?suse_version} <= 1320
%dir %{_datadir}/icons/hicolor/512x512
%dir %{_datadir}/icons/hicolor/512x512/apps
%endif
%{_datadir}/icons/hicolor/512x512/apps/%{name}.png