datovka/datovka.spec

85 lines
2.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package datovka
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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
Version: 4.1.0
Release: 0
Summary: Library to access Czech eGov system \"Datove schranky\"
License: LGPL-2.0+
Group: Development/Libraries/Python
Url: https://labs.nic.cz/cs/nova-datovka.html
Source0: https://secure.nic.cz/files/datove_schranky/%{version}/%{name}-%{version}-src.tar.xz
# 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)
Requires: dejavu
Requires: libqt5_sql_backend
Recommends: %{name}-lang
# Included inside with different approach
Obsoletes: python-dslib
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
%setup -q -c %{name}
%patch0 -p1
sed -i \
-e 's:lrelease:lrelease-qt5:g' \
%{name}.pro
%build
CFLAGS="%{optflags}" \
%qmake5 PREFIX=%{_prefix}
make %{?_smp_mflags}
%install
make install INSTALL_ROOT=%{buildroot}
# fix desktop file
sed -i \
-e 's:Office:Office;Network;Email;:g' \
%{buildroot}%{_datadir}/applications/datovka.desktop
rm -rf %{buildroot}%{_datadir}/datovka/doc
%files
%defattr(-,root,root)
%doc AUTHORS COPYING
%{_bindir}/datovka
%{_datadir}/applications/datovka.desktop
%dir %{_datadir}/datovka
%dir %{_datadir}/datovka/localisations/
%{_datadir}/datovka/localisations/datovka_cs.qm
%{_datadir}/datovka/localisations/datovka_en.qm
%{_datadir}/icons/hicolor/*
%changelog