File communi-desktop.spec of Package communi-desktop

#
# spec file for package communi-desktop
#
# Copyright (c) 2024 SUSE LLC
#
# 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:           communi-desktop
Version:        3.6.0+20240504.g42be7b1
Release:        0
Summary:        An IRC client for desktop environments
License:        BSD-3-Clause
Group:          Productivity/Networking/IRC
URL:            https://communi.github.io/
Source0:        %{name}-%{version}.tar.xz
Patch0:         0001-TextDocument-reduce-maximum-block-count-for-performa.patch
BuildRequires:  c++_compiler
BuildRequires:  hicolor-icon-theme
BuildRequires:  libcommuni-devel
BuildRequires:  libqt5-qtbase-devel
BuildRequires:  libqt5-qtdeclarative-devel

%description
A simple and elegant cross-platform IRC client for desktop platforms,
based on Qt and the Communi IRC framework.

%prep
%autosetup -p1

%build
%qmake5 CONFIG+=no_rpath COMMUNI_INSTALL_LIBS="%{_libdir}"
%make_build

%install
%make_install INSTALL_ROOT=%{buildroot}
chmod 644 %{buildroot}%{_datadir}/themes/communi/material/Open_Sans/LICENSE.txt

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%license LICENSE
%doc AUTHORS README.md
%{_bindir}/communi
%exclude %{_libdir}/libCommuni.so
%{_libdir}/libCommuni.so.*
%{_libdir}/qt5/plugins/communi
%{_datadir}/applications/communi.desktop
%{_datadir}/icons/hicolor/*/apps/communi.png
%{_datadir}/themes/communi

%changelog
openSUSE Build Service is sponsored by