File AusweisApp2.spec of Package AusweisApp2

# spec file for package AusweisApp2
# Copyright (c) 2020 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

Name:           AusweisApp2
Version:        1.22.0
Release:        0
Summary:        Official authentication app for German ID cards and residence permits
License:        EUPL-1.2
Group:          Productivity/Security
Patch0:         0001-fix-manpage-path.patch
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:  libQt5Concurrent-devel
BuildRequires:  libQt5Core-devel
BuildRequires:  libQt5Network-devel
BuildRequires:  libQt5QuickControls2-devel
BuildRequires:  libQt5QuickTemplates2-devel
BuildRequires:  libQt5Svg-devel
BuildRequires:  libQt5Xml-devel
BuildRequires:  libopenssl-1_1-devel
BuildRequires:  libqt5-linguist-devel
BuildRequires:  libqt5-qtdeclarative-devel
BuildRequires:  libqt5-qttools-devel
BuildRequires:  libqt5-qtwebsockets-devel
BuildRequires:  ninja
BuildRequires:  pcsc-lite-devel
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(libudev)
Requires:       hicolor-icon-theme
Requires:       libqt5-qtgraphicaleffects
Requires:       libqt5-qtquickcontrols2

This app is developed and issued by the German government to be
used for online authentication with electronic German ID cards
and residence permits. To use this app, a supported RFID card
reader or compatible NFC smart phone is required.

%setup -q
%patch0 -p1

export CFLAGS="%{optflags} -fPIC"
export CXXFLAGS="%{optflags} -fPIC"
%define __builder ninja


%suse_update_desktop_file com.governikus.ausweisapp2 X-SuSE-DesktopUtility
install -DTm644 %{_builddir}/%{name}-%{version}/resources/images/npa.png %{buildroot}/%{_datadir}/icons/hicolor/96x96/apps/AusweisApp2.png

%fdupes -s %{buildroot}/%{_prefix}

%doc README.rst
%license LICENSE.txt LICENSE.officially.txt

openSUSE Build Service is sponsored by