]> git.pld-linux.org Git - packages/libreport.git/blobdiff - libreport.spec
- rebuild with python 3.8
[packages/libreport.git] / libreport.spec
index b6629d67ae543f55ed615a471113bd67b4e17a2f..de54b5a8e82cd3f11c2f730f97bca39e30e78f6f 100644 (file)
@@ -8,7 +8,7 @@ Summary:        Generic library for reporting various problems
 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
@@ -31,11 +31,11 @@ BuildRequires:      libproxy-devel
 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
@@ -44,6 +44,13 @@ BuildRequires:       systemd-devel
 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)
 
@@ -368,6 +375,11 @@ zgłaszania błędów w systemach RHEL.
 
 ./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}
@@ -385,7 +397,7 @@ zgłaszania błędów w systemach RHEL.
 %{__make}
 
 %if %{with tests}
-%{__make} check
+%{__make} check || (cat tests/testsuite.log && /bin/false)
 %endif
 
 %install
@@ -403,6 +415,7 @@ rm -rf $RPM_BUILD_ROOT
 %{__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}
This page took 0.211145 seconds and 4 git commands to generate.