File xrview.spec of Package xrview
#
# spec file for package xrview
#
# 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: xrview
Version: 1.1
Release: 0
Summary: Viewer for electronic invoices in XRechnung format
License: GPL-3.0-only
URL: https://codeberg.org/dragotin/xrechnung
Source: https://codeberg.org/dragotin/xrechnung/arch/refs/tags/v%{version}.tar.gz#/xrview-%{version}.tar.gz
# PATCH-FIX-UPSTREAM desktop-file.patch deprecate update-desktop-file
Patch0: desktop-file.patch
BuildRequires: kf6-extra-cmake-modules
BuildRequires: cmake(KF6Archive)
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6Gui)
BuildRequires: cmake(Qt6LinguistTools)
BuildRequires: cmake(Qt6WebEngineWidgets)
BuildRequires: cmake(Qt6Widgets)
BuildRequires: cmake(Qt6Xml)
ExclusiveArch: x86_64 %{x86_64} aarch64 riscv64
%description
a desktop viewer application for electronic invoice files in the XRechnung format.
It uses the official stylesheets provided by the IT Koordinierungsstelle in Germany.
%prep
%autosetup -p1
%build
%cmake_qt6 -DCMAKE_SKIP_RPATH=ON
%qt6_build
%install
%{qt6_install}
%files
%license LICENSE
%{_bindir}/xrview
%{_datadir}/applications/de.volle-kraft-voraus.xrview.desktop
%{_datadir}/metainfo/de.volle-kraft-voraus.xrview.appdata.xml
%doc README.md DEPENDENCIES.md
%changelog