2013-01-30 10:14:08 +00:00
|
|
|
|
#
|
|
|
|
|
# spec file for package datovka
|
|
|
|
|
#
|
2022-02-01 06:53:58 +00:00
|
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2013-01-30 10:14:08 +00:00
|
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2018-10-23 08:13:00 +00:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-01-30 10:14:08 +00:00
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2022-02-01 07:57:07 +00:00
|
|
|
|
%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
|
|
|
|
|
|
2013-01-30 10:14:08 +00:00
|
|
|
|
Name: datovka
|
2022-02-01 06:53:58 +00:00
|
|
|
|
Version: 4.19.0
|
2013-01-30 10:14:08 +00:00
|
|
|
|
Release: 0
|
2017-07-19 12:44:48 +00:00
|
|
|
|
Summary: Library to access Czech eGov system "Datove schranky"
|
2018-10-23 08:13:00 +00:00
|
|
|
|
License: GPL-3.0-or-later
|
2013-01-30 10:14:08 +00:00
|
|
|
|
Group: Development/Libraries/Python
|
2018-10-23 08:13:00 +00:00
|
|
|
|
URL: https://www.datovka.cz
|
2016-10-19 20:52:39 +00:00
|
|
|
|
Source0: https://secure.nic.cz/files/datove_schranky/%{version}/%{name}-%{version}.tar.xz
|
2017-05-23 08:19:41 +00:00
|
|
|
|
Source1: https://secure.nic.cz/files/datove_schranky/%{version}/%{name}-%{version}.tar.xz.sha256
|
2015-02-13 07:35:29 +00:00
|
|
|
|
# PATCH-FIX-UPSTREAM: remove some issues with current .pro file
|
|
|
|
|
Patch0: datovka-fix-pro.patch
|
2022-02-01 07:57:07 +00:00
|
|
|
|
%if 0%{qt_version} == 6
|
|
|
|
|
BuildRequires: qt6-tools-linguist
|
|
|
|
|
%else
|
2015-02-13 07:35:29 +00:00
|
|
|
|
BuildRequires: libqt5-linguist
|
2022-02-01 07:57:07 +00:00
|
|
|
|
%endif
|
2015-02-13 07:35:29 +00:00
|
|
|
|
BuildRequires: openssl-devel
|
2018-10-23 08:13:00 +00:00
|
|
|
|
BuildRequires: pkgconfig
|
2022-02-01 07:57:07 +00:00
|
|
|
|
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}
|
2021-04-23 09:28:21 +00:00
|
|
|
|
BuildRequires: pkgconfig(libdatovka) >= 0.1.2
|
2022-02-01 07:57:07 +00:00
|
|
|
|
%if 0%{qt_version} == 6
|
|
|
|
|
Requires: qt6-sql-sqlite
|
|
|
|
|
%else
|
2022-02-02 07:31:48 +00:00
|
|
|
|
Requires: libqt5-sql-sqlite
|
2022-02-01 07:57:07 +00:00
|
|
|
|
%endif
|
2018-10-23 08:13:00 +00:00
|
|
|
|
Recommends: %{name}-lang
|
|
|
|
|
# Included inside with different approach
|
|
|
|
|
Obsoletes: python-dslib
|
2017-10-23 11:09:24 +00:00
|
|
|
|
%if 0%{?suse_version} < 1330
|
2016-04-01 09:45:49 +00:00
|
|
|
|
Requires(post): hicolor-icon-theme
|
|
|
|
|
Requires(post): update-desktop-files
|
2022-02-01 06:53:58 +00:00
|
|
|
|
Requires(postun):hicolor-icon-theme
|
|
|
|
|
Requires(postun):update-desktop-files
|
2017-10-23 11:09:24 +00:00
|
|
|
|
%endif
|
2013-01-30 10:14:08 +00:00
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A library for accessing ISDS (Informační system datovych schranek/
|
|
|
|
|
Data Box Information System) SOAP services as defined in Czech ISDS Act
|
|
|
|
|
(300/2008 Coll.) and implied documents.
|
|
|
|
|
|
|
|
|
|
%{?lang_package}
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-06-06 06:52:01 +00:00
|
|
|
|
%autosetup -p1
|
2013-01-30 10:14:08 +00:00
|
|
|
|
sed -i \
|
2022-02-01 07:57:07 +00:00
|
|
|
|
-e 's:lrelease:%{lrelease}:g' \
|
2015-02-13 07:35:29 +00:00
|
|
|
|
%{name}.pro
|
2013-01-30 10:14:08 +00:00
|
|
|
|
|
|
|
|
|
%build
|
2016-04-01 09:45:49 +00:00
|
|
|
|
export CFLAGS="%{optflags}"
|
2022-02-01 07:57:07 +00:00
|
|
|
|
%if 0%{qt_version} == 6
|
|
|
|
|
export CXXFLAGS="-std=c++17 %{optflags}"
|
|
|
|
|
%else
|
|
|
|
|
export CXXFLAGS="-std=c++11 %{optflags}"
|
|
|
|
|
%endif
|
|
|
|
|
%{lrelease} datovka.pro
|
|
|
|
|
%if 0%{qt_version} == 6
|
2022-02-01 08:16:02 +00:00
|
|
|
|
# QMAKE_LIBS_LIBATOMIC= is only temporary to fix:
|
|
|
|
|
# "Library 'libatomic' is not defined."
|
|
|
|
|
%qmake6 PREFIX=%{_prefix} DISABLE_VERSION_CHECK_BY_DEFAULT=1 QMAKE_LIBS_LIBATOMIC=
|
2022-02-01 07:57:07 +00:00
|
|
|
|
%qmake6_build
|
|
|
|
|
%else
|
2015-04-03 10:45:19 +00:00
|
|
|
|
%qmake5 PREFIX=%{_prefix} DISABLE_VERSION_CHECK_BY_DEFAULT=1
|
2017-02-17 14:49:17 +00:00
|
|
|
|
%make_jobs
|
2022-02-01 07:57:07 +00:00
|
|
|
|
%endif
|
2013-01-30 10:14:08 +00:00
|
|
|
|
|
|
|
|
|
%install
|
2022-02-01 07:57:07 +00:00
|
|
|
|
%if 0%{qt_version} == 6
|
|
|
|
|
%qmake6_install
|
|
|
|
|
%else
|
2017-02-17 14:49:17 +00:00
|
|
|
|
%qmake5_install
|
2022-02-01 07:57:07 +00:00
|
|
|
|
%endif
|
2013-01-30 10:14:08 +00:00
|
|
|
|
|
2015-02-13 07:35:29 +00:00
|
|
|
|
# fix desktop file
|
|
|
|
|
sed -i \
|
2015-02-24 12:45:51 +00:00
|
|
|
|
-e 's:Office;:Office;Network;Email;:g' \
|
2015-02-13 07:35:29 +00:00
|
|
|
|
%{buildroot}%{_datadir}/applications/datovka.desktop
|
|
|
|
|
rm -rf %{buildroot}%{_datadir}/datovka/doc
|
2013-01-30 10:14:08 +00:00
|
|
|
|
|
2017-10-23 11:09:24 +00:00
|
|
|
|
%if 0%{?suse_version} < 1330
|
2016-04-01 09:45:49 +00:00
|
|
|
|
%post
|
|
|
|
|
%desktop_database_post
|
|
|
|
|
%icon_theme_cache_post
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%desktop_database_postun
|
|
|
|
|
%icon_theme_cache_postun
|
2017-10-23 11:09:24 +00:00
|
|
|
|
%endif
|
2016-04-01 09:45:49 +00:00
|
|
|
|
|
2013-01-30 10:14:08 +00:00
|
|
|
|
%files
|
2018-10-23 08:13:00 +00:00
|
|
|
|
%license COPYING
|
|
|
|
|
%doc AUTHORS ChangeLog
|
2015-02-13 07:35:29 +00:00
|
|
|
|
%{_bindir}/datovka
|
|
|
|
|
%{_datadir}/applications/datovka.desktop
|
2021-03-03 07:20:14 +00:00
|
|
|
|
%dir %{_datadir}/metainfo
|
|
|
|
|
%{_datadir}/metainfo/datovka.metainfo.xml
|
2015-02-13 07:35:29 +00:00
|
|
|
|
%dir %{_datadir}/datovka
|
|
|
|
|
%dir %{_datadir}/datovka/localisations/
|
|
|
|
|
%{_datadir}/datovka/localisations/datovka_cs.qm
|
|
|
|
|
%{_datadir}/datovka/localisations/datovka_en.qm
|
2022-02-01 07:57:07 +00:00
|
|
|
|
%dir %{_datadir}/icons/hicolor/
|
2014-10-01 05:40:33 +00:00
|
|
|
|
%{_datadir}/icons/hicolor/*
|
2013-01-30 10:14:08 +00:00
|
|
|
|
|
|
|
|
|
%changelog
|