File spectral.spec of Package spectral
#
# spec file for package spectral
#
# 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: spectral
Version: 854.8.gd600947
Release: 0
Summary: A glossy cross-platform Matrix client
License: GPL-3.0-only
Group: Productivity/Networking/Talk/Clients
URL: https://gitlab.com/b0/spectral
Source: %{name}-%{version}.tar.xz
BuildRequires: libqt5-linguist
BuildRequires: libqt5-qtbase-common-devel
BuildRequires: libqt5-qtbase-devel >= 5.6
BuildRequires: libqt5-qttools-devel
BuildRequires: olm-devel
BuildRequires: libqtolm-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libcmark)
BuildRequires: pkgconfig(Quotient)
BuildRequires: ninja
BuildRequires: cmake
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5Svg)
BuildRequires: cmake(Qt5Multimedia)
BuildRequires: cmake(Qt5QuickControls2)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: cmake(Qt5Keychain)
Requires: hicolor-icon-theme
%description
Spectral is a glossy cross-platform client for Matrix, the decentralized communication protocol for instant messaging.
%prep
%autosetup -p1
%build
%define __builder ninja
export PREFIX=%{_prefix}
%cmake \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_INTREE_LIBQMC=NO \
..
%cmake_build
%install
%cmake_install
find README.md -type f -perm /111 -exec chmod 644 {} \;
find LICENSE -type f -perm /111 -exec chmod 644 {} \;
find %{buildroot}/%{_datadir}/. -type f -executable -exec chmod -x "{}" \;
%files
%license LICENSE
%doc README.md
%{_bindir}/spectral
%{_datadir}/applications/org.eu.encom.spectral.desktop
%{_datadir}/icons/hicolor/
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/metainfo/org.eu.encom.spectral.appdata.xml
%changelog