datovka/datovka.spec

133 lines
3.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package datovka
#
# Copyright (c) 2022 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.20.0
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
%if 0%{qt_version} == 6
BuildRequires: qt6-tools-linguist
%else
BuildRequires: libqt5-linguist
%endif
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}Widgets) >= %{qt_version_full}
BuildRequires: pkgconfig(libdatovka) >= 0.1.2
%if 0%{qt_version} == 6
Requires: qt6-sql-sqlite
%else
Requires: libqt5-sql-sqlite
%endif
Recommends: %{name}-lang
# Included inside with different approach
Obsoletes: python-dslib
Accepting request 535786 from home:jirislaby:branches:network - Update Version update to 4.9.3 * Fixed a problem when message list was not updated after account synchronisation when a message was selected. * Fixed a bug when database location may have been saved even though the databases reside in default location. This problem was visible especially on Windows. - Update Version update to 4.9.2 * Changed tag dialogue to contain two views when editing tag assignment. * Using the prefix 'ODZ_' for sent and 'DDZ_' for received data messages when uploading them into records management service. * Default documentation location can be changed when running qmake using the TEXT_FILES_INST_DIR variable. * Full-text data-box search does not block the search dialogue. * Full-text data-box search can be interrupted and restarted again without closing the dialogue. * Separated core and GUI code. Removed models from database interface. * Added new CLI option '--get-msg-ids'. * Command-line application without GUI can be built separately. This executable is going to be distributed in Windows packages together with the GUI application. - Update Version update to 4.9.1 * Added experimental support for new data-box and user types that are going to be introduced into the ISDS production environment and which are already present in the ISDS testing environment. Version 0.10.7 of libisds is required to build the application. * Updated building scripts for the Windows application to automatically pull Qt dependencies into the package. * Fixed issue when records management data have not been erased from message model after the service has been deactivated. * Fixed issues with records management logo not being displayed in message OBS-URL: https://build.opensuse.org/request/show/535786 OBS-URL: https://build.opensuse.org/package/show/network/datovka?expand=0&rev=23
2017-10-23 11:09:24 +00:00
%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
Accepting request 535786 from home:jirislaby:branches:network - Update Version update to 4.9.3 * Fixed a problem when message list was not updated after account synchronisation when a message was selected. * Fixed a bug when database location may have been saved even though the databases reside in default location. This problem was visible especially on Windows. - Update Version update to 4.9.2 * Changed tag dialogue to contain two views when editing tag assignment. * Using the prefix 'ODZ_' for sent and 'DDZ_' for received data messages when uploading them into records management service. * Default documentation location can be changed when running qmake using the TEXT_FILES_INST_DIR variable. * Full-text data-box search does not block the search dialogue. * Full-text data-box search can be interrupted and restarted again without closing the dialogue. * Separated core and GUI code. Removed models from database interface. * Added new CLI option '--get-msg-ids'. * Command-line application without GUI can be built separately. This executable is going to be distributed in Windows packages together with the GUI application. - Update Version update to 4.9.1 * Added experimental support for new data-box and user types that are going to be introduced into the ISDS production environment and which are already present in the ISDS testing environment. Version 0.10.7 of libisds is required to build the application. * Updated building scripts for the Windows application to automatically pull Qt dependencies into the package. * Fixed issue when records management data have not been erased from message model after the service has been deactivated. * Fixed issues with records management logo not being displayed in message OBS-URL: https://build.opensuse.org/request/show/535786 OBS-URL: https://build.opensuse.org/package/show/network/datovka?expand=0&rev=23
2017-10-23 11:09:24 +00:00
%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
Accepting request 535786 from home:jirislaby:branches:network - Update Version update to 4.9.3 * Fixed a problem when message list was not updated after account synchronisation when a message was selected. * Fixed a bug when database location may have been saved even though the databases reside in default location. This problem was visible especially on Windows. - Update Version update to 4.9.2 * Changed tag dialogue to contain two views when editing tag assignment. * Using the prefix 'ODZ_' for sent and 'DDZ_' for received data messages when uploading them into records management service. * Default documentation location can be changed when running qmake using the TEXT_FILES_INST_DIR variable. * Full-text data-box search does not block the search dialogue. * Full-text data-box search can be interrupted and restarted again without closing the dialogue. * Separated core and GUI code. Removed models from database interface. * Added new CLI option '--get-msg-ids'. * Command-line application without GUI can be built separately. This executable is going to be distributed in Windows packages together with the GUI application. - Update Version update to 4.9.1 * Added experimental support for new data-box and user types that are going to be introduced into the ISDS production environment and which are already present in the ISDS testing environment. Version 0.10.7 of libisds is required to build the application. * Updated building scripts for the Windows application to automatically pull Qt dependencies into the package. * Fixed issue when records management data have not been erased from message model after the service has been deactivated. * Fixed issues with records management logo not being displayed in message OBS-URL: https://build.opensuse.org/request/show/535786 OBS-URL: https://build.opensuse.org/package/show/network/datovka?expand=0&rev=23
2017-10-23 11:09:24 +00:00
%if 0%{?suse_version} < 1330
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
Accepting request 535786 from home:jirislaby:branches:network - Update Version update to 4.9.3 * Fixed a problem when message list was not updated after account synchronisation when a message was selected. * Fixed a bug when database location may have been saved even though the databases reside in default location. This problem was visible especially on Windows. - Update Version update to 4.9.2 * Changed tag dialogue to contain two views when editing tag assignment. * Using the prefix 'ODZ_' for sent and 'DDZ_' for received data messages when uploading them into records management service. * Default documentation location can be changed when running qmake using the TEXT_FILES_INST_DIR variable. * Full-text data-box search does not block the search dialogue. * Full-text data-box search can be interrupted and restarted again without closing the dialogue. * Separated core and GUI code. Removed models from database interface. * Added new CLI option '--get-msg-ids'. * Command-line application without GUI can be built separately. This executable is going to be distributed in Windows packages together with the GUI application. - Update Version update to 4.9.1 * Added experimental support for new data-box and user types that are going to be introduced into the ISDS production environment and which are already present in the ISDS testing environment. Version 0.10.7 of libisds is required to build the application. * Updated building scripts for the Windows application to automatically pull Qt dependencies into the package. * Fixed issue when records management data have not been erased from message model after the service has been deactivated. * Fixed issues with records management logo not being displayed in message OBS-URL: https://build.opensuse.org/request/show/535786 OBS-URL: https://build.opensuse.org/package/show/network/datovka?expand=0&rev=23
2017-10-23 11:09:24 +00:00
%endif
%files
%license COPYING
%doc AUTHORS ChangeLog
%{_bindir}/datovka
%{_datadir}/applications/datovka.desktop
Accepting request 876399 from home:jirislaby:branches:network - Update to 4.16.0 * Using libdatovka instead of libisds. Libdatovka is a fork of libisds and contains functionality which libisds still does not implement and which is needed by the application. * Added the possibility to manage data-box users which is similar to the functionality offered by the ISDS web interface. * Fixed sorting of Czech strings in table views when using Czech localisation. * Fixed application crashes on repeated full-text data-box searches. * Fixed navigation in table views in backup and restoration dialogue. * Added support for the EV6 event. * Improved tab order in send message window. * Added PostSignum Qualified CA 4 certificate. * Fixed a problem with shadow synchronisation after which a blank account name was sent in the records management report. * The notification dialogue informing the user about sending a postal data message can be disabled. * Added a short timeout before the immediate download of a freshly sent message. * Fixed error in ISDS type conversion code - invalid type string values have been fixed. Database-related incompatible code has been removed from code shared with mobile application. * Able to add contacts without name or address into recipient list when creating a message. * Fixed an error in remembering directory path when opening and viewing ZFO files from file system immediately after application start. * Replaced the 'Mark All as Read' action with 'Mark All Received as' sub-menu in the 'Data Box' menu of the top menu bar. * Renamed 'Authenticate Message' to 'Verify Message' in the 'Message' menu because it reflects better the performed operation. OBS-URL: https://build.opensuse.org/request/show/876399 OBS-URL: https://build.opensuse.org/package/show/network/datovka?expand=0&rev=39
2021-03-03 07:20:14 +00:00
%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