This is an automated email from the git hooks/post-receive script.
vashirov pushed a commit to branch master
in repository 389-ds-base.
commit f4d86bb9d65c5c69e497c0110cfb54cf684c182a
Author: Viktor Ashirov <vashirov(a)redhat.com>
Date: Mon Oct 30 19:06:45 2017 +0100
Issue 49434 - RPM build errors
Bug Description:
When rpm is built on epel-7 (using mock), build fails because
python libraries and tests are installed, but not packaged.
Fix Description:
Don't install files if we don't plan to package them.
https://pagure.io/389-ds-base/issue/49434
Reviewed by: mreynolds (Thanks!)
---
rpm/389-ds-base.spec.in | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/rpm/389-ds-base.spec.in b/rpm/389-ds-base.spec.in
index 52e1095..2fac560 100644
--- a/rpm/389-ds-base.spec.in
+++ b/rpm/389-ds-base.spec.in
@@ -282,6 +282,7 @@ autoreconf -fiv
$NSSARGS $TCMALLOC_FLAGS $ASAN_FLAGS \
--enable-cmocka
+%if 0%{?rhel} >= 8 || 0%{?fedora}
make setup.py
# lib389
@@ -291,7 +292,7 @@ popd
# tests
%py3_build
-
+%endif
# Generate symbolic info for debuggers
export XCFLAGS=$RPM_OPT_FLAGS
@@ -307,6 +308,7 @@ make DESTDIR="$RPM_BUILD_ROOT" install
# Copy in our docs from doxygen.
cp -r %{_builddir}/%{name}-%{version}%{?prerel}/man/man3 $RPM_BUILD_ROOT/%{_mandir}/man3
+%if 0%{?rhel} >= 8 || 0%{?fedora}
# lib389
pushd src/lib389
%py3_install
@@ -314,6 +316,7 @@ popd
# tests
%py3_install
+%endif
mkdir -p $RPM_BUILD_ROOT/var/log/%{pkgname}
mkdir -p $RPM_BUILD_ROOT/var/lib/%{pkgname}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.