LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File shadowsocks-qt5.spec of Package shadowsocks-qt5 (Project home:assange0)

#
# spec file for package shadowsocks-qt5
#
# Copyright (c) 2018 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/
#


# See also http://en.opensuse.org/openSUSE:Specfile_guidelines

Name:           shadowsocks-qt5
Version:        3.0.1
Release:        0
Summary:        A cross-platform shadowsocks GUI client

License:        LGPL-3.0
Group:          Productivity/Networking/Web/Proxy
Url:            https://github.com/shadowsocks/%{name}
Source0:        %{name}-%{version}.tar.gz
Patch:          desktop.patch
BuildRequires:  libqt5-qtbase-devel qrencode-devel libbotan-devel libzbar-devel libappindicator-devel
BuildRequires:  libQtShadowsocks-devel >= 2.0.0
BuildRequires:  update-desktop-files
Requires:       libQtShadowsocks2 >= 2.0.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Shadowsocks-Qt5 is a native and cross-platform shadowsocks GUI client with advanced features.

%prep
%setup -q
%patch -p1

%build
%cmake
make %{?_smp_mflags}

%install
%cmake_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc LICENSE README.md
%{_bindir}/ss-qt5
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/512x512/apps/%{name}.png