datovka/datovka.spec
Dirk Mueller 6ef158ece4 - update to 4.23.6:
* Fixed MIME name detection of ZFO files consiting of a ZIP
    archive and which don't contain a data message nor a delivert info.
  * Fixed crashes of message detail dialogue when invalid ZFO
    content is attempted to be displayed.
  * Fixed some memory-related performance issues reported by
    Coverity.
  * Fixed blocked MEP login loop on newer macOS versions.
  * Fixed sending of ZIP archives in normal (non VoDZ) messages
    by explicitly setting their MIME type.
  * Lowered the limit for maximum attachment count to 50 files.
  * Extended the list of allowed attachment file types.
  * Showing total number of attached files in the send message
    dialogue.
  * Fixed restoration of databases without VoDZ content.
  * Fixed tag ordering. Tag sorting is now locale-aware.
  * Fixed problems with HOTP authorisation on Windows. There have
    been problems with the bundled libisds. MinGW does not handle
    POSIX extensions of printf formatting strings properly. Patch
  * Fixed a non-working PRAGMA statement when asking for a database
  * The --version command-line argument now also prints the version
  * Automatic background downloads didn't cause the deactivation of
    download buttons that could still be triggered. Triggering those
  * Adding new account caused the account tree to collapse. This has
  * The logging of libisds actions has been restricted on Windows
    because there are discrepancies from standard-defined behaviour
  * Improved behaviour when message download fails. The error
    dialogue is only shown when an explicit message download fails.
  * A message in the notification area appears when the download
    has been triggered by downloading message list. This should

OBS-URL: https://build.opensuse.org/package/show/network/datovka?expand=0&rev=62
2024-03-24 18:04:12 +00:00

135 lines
4.0 KiB
RPMSpec
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package datovka
#
# 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/
#
%if 0%{?suse_version} > 1500
%define qt_version 6
%define qt_version_full 6.2.0
%define lrelease lrelease6
%else
%define qt_version 5
%define qt_version_full 5.4.1
%define lrelease lrelease-qt5
%endif
Name: datovka
Version: 4.23.6
Release: 0
Summary: Library to access Czech eGov system "Datove schranky"
License: GPL-3.0-or-later
Group: Development/Libraries/Python
URL: https://www.datovka.cz
Source0: https://secure.nic.cz/files/datove_schranky/%{version}/%{name}-%{version}.tar.xz
Source1: https://secure.nic.cz/files/datove_schranky/%{version}/%{name}-%{version}.tar.xz.sha256
# PATCH-FIX-UPSTREAM: remove some issues with current .pro file
Patch0: datovka-fix-pro.patch
BuildRequires: openssl-devel
BuildRequires: pkgconfig
BuildRequires: cmake(Qt%{qt_version}Core) >= %{qt_version_full}
BuildRequires: cmake(Qt%{qt_version}Gui) >= %{qt_version_full}
BuildRequires: cmake(Qt%{qt_version}Network) >= %{qt_version_full}
BuildRequires: cmake(Qt%{qt_version}PrintSupport) >= %{qt_version_full}
BuildRequires: cmake(Qt%{qt_version}Sql) >= %{qt_version_full}
BuildRequires: cmake(Qt%{qt_version}Svg) >= %{qt_version_full}
BuildRequires: cmake(Qt%{qt_version}WebSockets) >= %{qt_version_full}
BuildRequires: cmake(Qt%{qt_version}Widgets) >= %{qt_version_full}
BuildRequires: cmake(QuaZip-Qt%{qt_version})
BuildRequires: pkgconfig(libdatovka) >= 0.6.0
Recommends: %{name}-lang
# Included inside with different approach
Obsoletes: python-dslib
%if 0%{qt_version} == 6
BuildRequires: qt6-tools-linguist
%else
BuildRequires: libqt5-linguist
%endif
%if 0%{qt_version} == 6
BuildRequires: cmake(Qt6Core5Compat) >= %{qt_version_full}
Requires: qt6-sql-sqlite
%else
Requires: libqt5-sql-sqlite
%endif
%if 0%{?suse_version} < 1330
Requires(post): hicolor-icon-theme
Requires(post): update-desktop-files
Requires(postun): hicolor-icon-theme
Requires(postun): update-desktop-files
%endif
%description
A library for accessing ISDS (Informační system datovych schranek/
Data Box Information System) SOAPservices as defined in Czech ISDS Act
(300/2008 Coll.) and implied documents.
%{?lang_package}
%prep
%autosetup -p1
sed -i \
-e 's:lrelease:%{lrelease}:g' \
%{name}.pro
%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
%{lrelease} datovka.pro
%if 0%{qt_version} == 6
%{qmake6} PREFIX=%{_prefix} DISABLE_VERSION_CHECK_BY_DEFAULT=1
%{qmake6_build}
%else
%qmake5 PREFIX=%{_prefix} DISABLE_VERSION_CHECK_BY_DEFAULT=1
%make_jobs
%endif
%install
%if 0%{qt_version} == 6
%{qmake6_install}
%else
%qmake5_install
%endif
# fix desktop file
sed -i \
-e 's:Office;:Office;Network;Email;:g' \
%{buildroot}%{_datadir}/applications/datovka.desktop
rm -rf %{buildroot}%{_datadir}/datovka/doc
%if 0%{?suse_version} < 1330
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files
%license COPYING
%doc AUTHORS ChangeLog
%{_bindir}/datovka
%{_datadir}/applications/datovka.desktop
%dir %{_datadir}/metainfo
%{_datadir}/metainfo/datovka.metainfo.xml
%dir %{_datadir}/datovka
%dir %{_datadir}/datovka/localisations/
%{_datadir}/datovka/localisations/datovka_cs.qm
%{_datadir}/datovka/localisations/datovka_en.qm
%dir %{_datadir}/icons/hicolor/
%{_datadir}/icons/hicolor/*
%changelog