LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File qwx.spec of Package qwx (Project home:Luke2015)

# spec file for package qwx
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 Hillwood Yang <hillwood@opensuse.org>
# 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/

%define qt5version 5.2

Name:           qwx
Summary:        WeChat for linux
Version:        0.2
Release:        1
License:        GPL-3.0
Url:            https://github.com/xiangzhai/qwx
Group:          Productivity/Networking/Instant Messenger
Source:        %{name}-%{version}.tar.gz
%if 0%{?fedora}
BuildRequires:  qt5-qtbase-devel >= %{qt5version}
%if 0%{?suse_version}
BuildRequires:  libqt5-qtbase-common-devel >= %{qt5version}
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt5Xml) >= %{qt5version}
BuildRequires:  pkgconfig(Qt5Network) >= %{qt5version}
BuildRequires:  pkgconfig(Qt5QuickParticles) >= %{qt5version}
BuildRequires:  pkgconfig(Qt5Declarative) >= %{qt5version}
%if 0%{?suse_version}
Requires:       libqt5-qtquickcontrols >= %{qt5version}
%if 0%{?fedora}
Requires:       qt5-qtquickcontrols >= %{qt5version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

WeChat for linux, base with QT5.

%setup -q 

qmake-qt5 QWX_DEBUG=ON PREFIX=%{buildroot}%{_prefix}

make install
%if 0%{?suse_version}
%suse_update_desktop_file -r %{name} InstantMessaging

%defattr(-, root, root, -)