X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=libreport.spec;h=04979ca55b93b7f75b69013605a75735e95a4a26;hb=a5cee3b;hp=b6629d67ae543f55ed615a471113bd67b4e17a2f;hpb=245994d9067255efd2fe028845372e0ad8b5b2c8;p=packages%2Flibreport.git diff --git a/libreport.spec b/libreport.spec index b6629d6..04979ca 100644 --- a/libreport.spec +++ b/libreport.spec @@ -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: 5 License: GPL v2+ Group: Libraries Source0: https://github.com/abrt/libreport/archive/%{version}/%{name}-%{version}.tar.gz @@ -34,8 +34,6 @@ BuildRequires: libxml2-devel >= 2 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 +42,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 +373,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 +395,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 +413,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}