2013-01-30 11:14:08 +01:00
|
|
|
|
#
|
|
|
|
|
# spec file for package datovka
|
|
|
|
|
#
|
2016-04-01 11:45:49 +02:00
|
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-01-30 11:14:08 +01: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.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: datovka
|
2016-10-19 22:52:39 +02:00
|
|
|
|
Version: 4.7.0
|
2013-01-30 11:14:08 +01:00
|
|
|
|
Release: 0
|
|
|
|
|
Summary: Library to access Czech eGov system \"Datove schranky\"
|
2013-07-16 17:39:58 +02:00
|
|
|
|
License: LGPL-2.0+
|
2013-01-30 11:14:08 +01:00
|
|
|
|
Group: Development/Libraries/Python
|
2015-02-13 08:35:29 +01:00
|
|
|
|
Url: https://labs.nic.cz/cs/nova-datovka.html
|
2016-10-19 22:52:39 +02:00
|
|
|
|
Source0: https://secure.nic.cz/files/datove_schranky/%{version}/%{name}-%{version}.tar.xz
|
2015-02-13 08:35:29 +01:00
|
|
|
|
# PATCH-FIX-UPSTREAM: remove some issues with current .pro file
|
|
|
|
|
Patch0: datovka-fix-pro.patch
|
|
|
|
|
BuildRequires: libqt5-linguist
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui) >= 5.2.0
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Network) >= 5.2.0
|
|
|
|
|
BuildRequires: pkgconfig(Qt5PrintSupport) >= 5.2.0
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Sql) >= 5.2.0
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
|
|
|
|
|
BuildRequires: pkgconfig(libisds)
|
2013-01-30 11:14:08 +01:00
|
|
|
|
Requires: dejavu
|
2015-02-13 08:35:29 +01:00
|
|
|
|
Requires: libqt5_sql_backend
|
2016-04-01 11:45:49 +02:00
|
|
|
|
Requires(post): hicolor-icon-theme
|
|
|
|
|
Requires(post): update-desktop-files
|
|
|
|
|
Requires(postun): hicolor-icon-theme
|
|
|
|
|
Requires(postun): update-desktop-files
|
2015-02-13 08:35:29 +01:00
|
|
|
|
Recommends: %{name}-lang
|
|
|
|
|
# Included inside with different approach
|
|
|
|
|
Obsoletes: python-dslib
|
2013-01-30 11:14:08 +01:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
|
|
%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
|
2015-02-24 13:46:27 +01:00
|
|
|
|
%setup -q
|
2016-04-01 11:45:49 +02:00
|
|
|
|
%patch0
|
2013-01-30 11:14:08 +01:00
|
|
|
|
sed -i \
|
2015-02-13 08:35:29 +01:00
|
|
|
|
-e 's:lrelease:lrelease-qt5:g' \
|
|
|
|
|
%{name}.pro
|
2013-01-30 11:14:08 +01:00
|
|
|
|
|
|
|
|
|
%build
|
2016-04-01 11:45:49 +02:00
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
|
export CXXFLAGS="%{optflags}"
|
2016-02-16 19:32:57 +01:00
|
|
|
|
lrelease-qt5 datovka.pro
|
2015-04-03 12:45:19 +02:00
|
|
|
|
%qmake5 PREFIX=%{_prefix} DISABLE_VERSION_CHECK_BY_DEFAULT=1
|
2015-02-13 08:35:29 +01:00
|
|
|
|
make %{?_smp_mflags}
|
2013-01-30 11:14:08 +01:00
|
|
|
|
|
|
|
|
|
%install
|
2015-02-13 08:35:29 +01:00
|
|
|
|
make install INSTALL_ROOT=%{buildroot}
|
2013-01-30 11:14:08 +01:00
|
|
|
|
|
2015-02-13 08:35:29 +01:00
|
|
|
|
# fix desktop file
|
|
|
|
|
sed -i \
|
2015-02-24 13:45:51 +01:00
|
|
|
|
-e 's:Office;:Office;Network;Email;:g' \
|
2015-02-13 08:35:29 +01:00
|
|
|
|
%{buildroot}%{_datadir}/applications/datovka.desktop
|
|
|
|
|
rm -rf %{buildroot}%{_datadir}/datovka/doc
|
2013-01-30 11:14:08 +01:00
|
|
|
|
|
2016-04-01 11:45:49 +02:00
|
|
|
|
%post
|
|
|
|
|
%desktop_database_post
|
|
|
|
|
%icon_theme_cache_post
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%desktop_database_postun
|
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
|
|
2013-01-30 11:14:08 +01:00
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
2015-09-05 09:12:44 +02:00
|
|
|
|
%doc AUTHORS COPYING ChangeLog
|
2015-02-13 08:35:29 +01:00
|
|
|
|
%{_bindir}/datovka
|
|
|
|
|
%{_datadir}/applications/datovka.desktop
|
2016-04-01 11:45:49 +02:00
|
|
|
|
%dir %{_datadir}/appdata
|
2015-02-24 13:45:51 +01:00
|
|
|
|
%{_datadir}/appdata/datovka.appdata.xml
|
2015-02-13 08:35:29 +01:00
|
|
|
|
%dir %{_datadir}/datovka
|
|
|
|
|
%dir %{_datadir}/datovka/localisations/
|
|
|
|
|
%{_datadir}/datovka/localisations/datovka_cs.qm
|
|
|
|
|
%{_datadir}/datovka/localisations/datovka_en.qm
|
2014-10-01 07:40:33 +02:00
|
|
|
|
%{_datadir}/icons/hicolor/*
|
2013-01-30 11:14:08 +01:00
|
|
|
|
|
|
|
|
|
%changelog
|