%global _hardened_build 1 %define debug_package %{nil} Name: web-eid Version: 2.5.0 Release: 1 Summary: Web eID browser extension helper application License: MIT URL: https://github.com/web-eid/web-eid-app Source0: %{name}-%{version}.tar.gz BuildRequires: bash BuildRequires: desktop-file-utils BuildRequires: git BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtsvg-devel BuildRequires: qt5-qttools-devel BuildRequires: pcsc-lite BuildRequires: pcsc-lite-devel BuildRequires: clang BuildRequires: git-clang-format BuildRequires: valgrind BuildRequires: gtest BuildRequires: gtest-devel BuildRequires: openssl-devel Requires: hicolor-icon-theme Requires: libstdc++ Requires: mozilla-filesystem Requires: openssl-libs Requires: pcsc-lite-libs Requires: qt5-qtbase Requires: qt5-qtsvg %description The Web eID application performs cryptographic digital signing and authentication operations with electronic ID smart cards for the Web eID browser extension (it is the native messaging host for the extension). Also works standalone without the extension in command-line mode. %prep %autosetup -N %build pushd web-eid-app %cmake %cmake_build %install pushd web-eid-app %cmake_install install -m 644 -Dt %{buildroot}/%{_sysconfdir}/chromium/native-messaging-hosts %{buildroot}/%{_datadir}/web-eid/eu.webeid.json install -m 644 -Dt %{buildroot}/%{_sysconfdir}/opt/chrome/native-messaging-hosts %{buildroot}/%{_datadir}/web-eid/eu.webeid.json rm -f %{buildroot}/%{_datadir}/web-eid/eu.webeid.json %check pushd web-eid-app export QT_QPA_PLATFORM='offscreen' # needed for running headless tests %ctest desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files %defattr(-,root,root,-) %{_bindir}/%{name} %{_sysconfdir}/chromium/native-messaging-hosts/ %{_sysconfdir}/opt/chrome/native-messaging-hosts/ %{_libdir}/mozilla/native-messaging-hosts/ %{_datadir}/applications/%{name}.desktop %{_datadir}/google-chrome/extensions/ %{_datadir}/icons/hicolor/*/apps/%{name}.png %changelog * Thu Nov 07 2024 Raiko Koosaar 2.5.0-1 - v2.5.0 release (koosaar@live.com) * Thu Nov 07 2024 Raiko Koosaar 2.4.0-2 - adding version 2.4.0-2 (koosaar@live.com) * Thu Nov 07 2024 Raiko Koosaar 2.4.0-1 - adding version 2.4.0 (koosaar@live.com) * Thu Nov 07 2024 Raiko Koosaar 2.3.1-1 - adding version 2.3.1 (koosaar@live.com) - mozilla extensions missing (koosaar@live.com) * Thu Nov 07 2024 Raiko Koosaar 2.3.0-1 - new package (2.3.0) built with tito