AusweisApp/AusweisApp.spec
Marcus Meissner 2e1983f1ba Accepting request 1125583 from home:glaubitz:branches:security
- New upstream release
  + Version 2.0.0
    - Renamed AusweisApp2 to AusweisApp.
    - Completely revised graphical user interface.
    - Dark mode is now supported on all platforms.
    - The display in landscape mode has been
      optimized and is now set automatically.
    - System font and size are now honored by the app.
    - Optimized usability of the title bar.
    - Online help is no longer available.
    - The provider list is no longer integrated in AusweisApp
      but can now be accessed via the AusweisApp website.
    - History of authentication processes has been removed.
    - The PDF export function for personal data has been removed.
    - macOS Catalina 10.15 is no longer supported.
    - Android 7 is no longer supported.
    - iOS 13 is no longer supported.
    - Updated Qt to version 6.5.3.
    - Updated OpenSSL to version 3.1.4.
- Pass adjusted source tree name to %setup macro
- Use adjusted source tree name in %install section
- Rename package from AusweisApp2 to AusweisApp
- Drop patches for issues fixed upstream
  + 0001-fix-ftbfs-with-qt6.6.patch
  + 0002-update-qml-for-qt6.6.patch

OBS-URL: https://build.opensuse.org/request/show/1125583
OBS-URL: https://build.opensuse.org/package/show/security/AusweisApp?expand=0&rev=1
2023-11-13 13:47:54 +00:00

97 lines
2.9 KiB
RPMSpec

#
# spec file for package AusweisApp
#
# Copyright (c) 2023 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: AusweisApp
Version: 2.0.0
Release: 0
Summary: Official authentication app for German ID cards and residence permits
License: EUPL-1.2
Group: Productivity/Security
URL: https://www.ausweisapp.bund.de
Source0: https://github.com/Governikus/AusweisApp2/archive/%{version}.tar.gz
BuildRequires: cmake
%if 0%{?suse_version} > 1500
BuildRequires: gcc-c++
%else
BuildRequires: gcc11-c++
%endif
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: libopenssl-devel
BuildRequires: ninja
BuildRequires: pcsc-lite-devel
BuildRequires: pkgconfig
BuildRequires: qt6-concurrent-devel
BuildRequires: qt6-core-devel
BuildRequires: qt6-core-private-devel
BuildRequires: qt6-linguist-devel
BuildRequires: qt6-network-devel
BuildRequires: qt6-qml-devel
BuildRequires: qt6-qmlworkerscript-devel
BuildRequires: qt6-quick-devel
BuildRequires: qt6-quickcontrols2-devel
BuildRequires: qt6-shadertools-devel
BuildRequires: qt6-statemachine-devel
BuildRequires: qt6-svg-devel
BuildRequires: qt6-websockets-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(libudev)
Provides: AusweisApp2 = 2.0.0
Obsoletes: AusweisApp2 < 2.0.0
Requires: hicolor-icon-theme
%description
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.
%prep
%setup -q -n %{name}2-%{version}
%build
%if 0%{?suse_version} <= 1500
export CC=gcc-11
export CXX=g++-11
%endif
export CFLAGS="%{optflags} -fPIC"
export CXXFLAGS="%{optflags} -fPIC"
%define __builder ninja
%cmake -DBUILD_SHARED_LIBS=OFF
ninja
%install
%cmake_install
%suse_update_desktop_file com.governikus.ausweisapp2 X-SuSE-DesktopUtility
install -DTm644 %{_builddir}/%{name}2-%{version}/resources/images/npa.png %{buildroot}/%{_datadir}/icons/hicolor/96x96/apps/AusweisApp.png
%fdupes -s %{buildroot}/%{_prefix}
%files
%doc README.rst
%license LICENSE.txt LICENSE.officially.txt
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/metainfo
%{_datadir}/applications/com.governikus.ausweisapp2.desktop
%{_datadir}/icons/hicolor
%{_mandir}/man1/%{name}.1%{?ext_man}
%changelog