File datovka.spec of Package datovka

Name: datovka
Version: 4.17.0
Release: 1%{?dist}
Summary: A free graphical interface for Czech Databox (Datové schránky)

License: GPLv3+ with exceptions
Source0: datovka_%{version}.orig.tar.xz
%if 0%{?rhel}
# gcc in Centos 7 does not understand the -Wdate-time parameter
Patch0: 0002-Disable-Wdate-time-to-fix-FTBFS-with-older-gcc.patch

BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: desktop-file-utils
BuildRequires: libdatovka-devel >= 0.1.2
BuildRequires: openssl-devel
%if "x%{?rhel}" == "x"
BuildRequires: pkgconf-pkg-config
%if "x%{?rhel}" == "x"
BuildRequires: pkgconfig
BuildRequires: qt5-linguist
# qt5-qtbase provides SQLite driver
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtsvg-devel
BuildRequires: qt5-qttools-devel
BuildRequires: sed
Requires: qt5-qttranslations

GUI application allowing access to Czech Databox - an electronic communication
interface endorsed by the Czech government.

%setup -q
%if 0%{?rhel}
%patch0 -p1

make %{?_smp_mflags}

mkdir -p %{buildroot}%{_bindir}
make install INSTALL_ROOT=%{buildroot}
%find_lang %{name} --with-qt
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop

#/bin/touch --no-create %%{_datadir}/icons/hicolor &>/dev/null || :

#if [ $1 -eq 0 ] ; then
#    /bin/touch --no-create %%{_datadir}/icons/hicolor &>/dev/null
#    /usr/bin/gtk-update-icon-cache %%{_datadir}/icons/hicolor &>/dev/null || :

#/usr/bin/gtk-update-icon-cache %%{_datadir}/icons/hicolor &>/dev/null || :

%files -f %{name}.lang
%if "x%{?rhel}" == "x"
%doc %{_pkgdocdir}
%if 0%{?rhel}
%doc %{_docdir}/%{name}

* Thu Mar 29 2018 Karel Slany <> - 4.10.2-1
- see NEWS or
- moved spec file to OBS
openSUSE Build Service is sponsored by