Summary(pl.UTF-8): Ogólna biblioteka do zgłaszania różnych problemów
Name: libreport
Version: 2.9.5
-Release: 1
+Release: 7
License: GPL v2+
Group: Libraries
Source0: https://github.com/abrt/libreport/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: libtar-devel
BuildRequires: libtool >= 1:1.4.2
BuildRequires: libxml2-devel >= 2
+%{?with_tests:BuildRequires: lz4}
+BuildRequires: lz4-devel
BuildRequires: newt-devel
BuildRequires: nss-devel
BuildRequires: pkgconfig
-# /etc/system-release for non-empty os_release content
-%{?with_tests:BuildRequires: pld-release >= 3.0-8}
%{?with_python2:BuildRequires: python-devel >= 2}
%{?with_python3:BuildRequires: python3-devel >= 1:3}
BuildRequires: rpmbuild(macros) >= 1.612
BuildRequires: xmlrpc-c-client-devel
BuildRequires: xmlrpc-c-devel
BuildRequires: xmlto
+%if %{with tests}
+# findmnt
+BuildRequires: mount
+# /etc/system-release for non-empty os_release content
+BuildRequires: pld-release >= 3.0-8
+BuildRequires: sed >= 4.0
+%endif
Requires: glib2 >= 1:2.43
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
./gen-version
+# set_echo test from client.at fails on builders due to forkpty()
+%{__sed} -i -e '/client\.at/d' tests/testsuite.at
+# process_has_own_root randomly fails in chroot environment
+%{__sed} -i -e '/proc_helpers\.at/d' tests/testsuite.at
+
%build
%{__gettextize}
%{__intltoolize}
%{__make}
%if %{with tests}
-%{__make} check || (cat tests/test-suite.log && /bin/false)
+%{__make} check || (cat tests/testsuite.log && /bin/false)
%endif
%install
%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/report*/*.la
%endif
%if %{with python3}
+%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/report*/*.la
# automake uses $PYTHON for both versions, recompile using python3
%py_postclean %{py3_sitedir}
%py3_comp $RPM_BUILD_ROOT%{py3_sitedir}