Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:FactoryCandidates
datovka
datovka.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File datovka.spec of Package datovka
# # 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.24.2 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://datovka.nic.cz/%{version}/%{name}-%{version}.tar.xz Source1: https://datovka.nic.cz/%{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) SOAP services 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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor