File rssguard.spec of Package rssguard
#
# spec file for package rssguard
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2026 Boian Berberov
#
# 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/
#
%global litehtml_rev 8836bc1bc35ca0cfd71dc0386ef841d5cbc3bd5e
%global qtlinq_rev 02843d089f115d1bb0dfcd142dc8b6669fe71409
Name: rssguard
Version: 5.0.4
Release: 0%{?dist}
Group: Productivity/Networking/News/Clients
Summary: A cross-platform feed (RSS/ATOM/JSON) reader
License: GPL-3.0-only
URL: https://github.com/martinrotter/rssguard
Source0: %{url}/archive/refs/tags/%{version}.tar.gz
Source1: https://github.com/litehtml/litehtml/archive/%{litehtml_rev}.tar.gz
Source2: https://github.com/martinrotter/qtlinq/archive/%{qtlinq_rev}.tar.gz
BuildRequires: cmake >= 3.14
BuildRequires: cmake(Qt6Core) >= 6.3.0
BuildRequires: cmake(Qt6Concurrent)
BuildRequires: cmake(Qt6DBus)
BuildRequires: cmake(Qt6Gui)
BuildRequires: cmake(Qt6LinguistTools)
BuildRequires: cmake(Qt6Multimedia)
BuildRequires: cmake(Qt6Network)
BuildRequires: cmake(Qt6Qml)
BuildRequires: cmake(Qt6Sql)
BuildRequires: cmake(Qt6Widgets)
BuildRequires: cmake(Qt6Xml)
BuildRequires: cmake(Qt6MultimediaWidgets)
BuildRequires: cmake(Qt6OpenGL)
BuildRequires: cmake(QXmppQt6)
BuildRequires: pkgconfig(icu-uc)
BuildRequires: pkgconfig(zlib)
Requires: qt6-sql-mysql
Requires: qt6-sql-sqlite
Requires: lib%{name} == %{version}
%description
A cross-platform feed (RSS/ATOM/JSON) reader
%package -n lib%{name}
Summary: Shared library for %{name}
%description -n lib%{name}
Shared library for %{name} to be used by external plugins.
%package -n lib%{name}-devel
Group: Development/Libraries/C and C++
Summary: Development headers for lib%{name}
Requires: lib%{name} == %{version}
%description -n lib%{name}-devel
Development headers to be used with lib%{name}
%prep
%setup -q
%__rpmuncompress -x --path=%{_builddir}/%{name}-%{version}/src/librssguard/3rd-party/litehtml %{SOURCE1}
%__rpmuncompress -x --path=%{_builddir}/%{name}-%{version}/src/librssguard/3rd-party/qtlinq %{SOURCE2}
# NOTE: Don't build article-extractor
%__sed -i -e '/article-extractor/d' CMakeLists.txt
%build
%cmake \
-DIS_DEVBUILD=OFF \
-DBUILD_WITH_QT6=ON \
-DBUILD_MSYS2=OFF \
-DUPDATE_TRANSLATIONS=OFF \
-DFORCE_COLORED_OUTPUT=OFF \
-DLOAD_PLUGINS_FROM_PARENT=OFF \
-DREVISION_FROM_GIT=OFF \
-DNO_UPDATE_CHECK=ON \
-DIS_FLATPAK_BUILD=OFF \
-DRUN_GO_MOD_TIDY=OFF \
-DFORCE_BUNDLE_ICONS=OFF \
-DENABLE_TESTS=OFF \
-DENABLE_ICU=OFF \
-DENABLE_COMPRESSED_SITEMAP=ON \
-DENABLE_MEDIAPLAYER_QTMULTIMEDIA=ON \
-DENABLE_MEDIAPLAYER_LIBMPV=OFF \
-DMEDIAPLAYER_FORCE_OPENGL=OFF \
-DUSE_SYSTEM_QXMPP=ON \
-DBUILD_XMPP_PLUGIN=ON
%cmake_build
%install
%cmake_install
%files
%license LICENSE.md
%dir /usr/share/icons/hicolor
%dir /usr/share/icons/hicolor/512x512
%dir /usr/share/icons/hicolor/512x512/apps
%{_bindir}/%{name}
%{_datadir}/applications/io.github.martinrotter.rssguard.desktop
%{_datadir}/icons/hicolor/512x512/apps/io.github.martinrotter.rssguard.png
%{_datadir}/metainfo/io.github.martinrotter.rssguard.metainfo.xml
%files -n lib%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/%{name}/
%files -n lib%{name}-devel
%{_includedir}/lib%{name}/
%changelog
* Wed Apr 1 2026 Boian Berberov
- Added changelog for openSUSE Leap 16