File rssguard.spec of Package rssguard
#
# spec file for package rssguard
#
# 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/
#
Name: rssguard
Version: 3.5.6
Release: 0
Summary: RSS/ATOM/RDF feed reader
License: GPL-3.0-only AND AGPL-3.0-or-later
Group: Productivity/Networking/News/Utilities
Url: https://github.com/martinrotter/rssguard
Source0: https://github.com/martinrotter/rssguard/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: %{name}.changes
# PATCH-FIX-UPSTREAM rssguard-3.5.2-fix_no_return_nonvoid.patch
Patch0: rssguard-3.5.2-fix_no_return_nonvoid.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libqt5-linguist
BuildRequires: libqt5-qtbase-common-devel
BuildRequires: make
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5Core) >= 5.8
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5WebEngine)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
Obsoletes: %{name}-lang < %{version}
Provides: %{name}-lang = %{version}
%description
RSS Guard is a RSS/ATOM feed aggregator developed using the Qt framework.
It supports online feed synchronization.
%prep
%setup -q
%patch0 -p1
# Remove build time references so build-compare can do its work
FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{SOURCE1} '+%%H:%%M')
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{SOURCE1} '+%%b %%e %%Y')
sed -e "s/__TIME__/\"$FAKE_BUILDTIME\"/" -i src/gui/dialogs/formabout.cpp
sed -e "s/__DATE__/\"$FAKE_BUILDDATE\"/" -i src/gui/dialogs/formabout.cpp
%build
lrelease-qt5 rssguard.pro
%qmake5 PREFIX=%{_prefix} USE_WEBENGINE=true
%make_jobs
%install
%qmake5_install
# install desktop icon & autostart
mkdir -pv %{buildroot}%{_datadir}/autostart
install -m0644 resources/desktop/com.github.%{name}.desktop.autostart -t %{buildroot}%{_datadir}/autostart
chmod -x %{buildroot}%{_datadir}/metainfo/com.github.%{name}.appdata.xml
%fdupes -s %{buildroot}
%files
%doc LICENSE.md
%dir %{_datadir}/applications
%dir %{_datadir}/autostart
%dir %{_datadir}/metainfo
%{_bindir}/%{name}
%{_datadir}/applications/com.github.%{name}.desktop
%{_datadir}/autostart/com.github.%{name}.desktop.autostart
%{_datadir}/metainfo/com.github.%{name}.appdata.xml
%{_datadir}/pixmaps/%{name}.png
%changelog