#49803 SPEC file fails to build on EL7 with no python files found in buildroot
Closed: wontfix Opened by srakitnican.

Issue Description

There is a conditional that disables build of python3 packages on EL7, but there is no such conditional for %files section, which makes the package build fail. Something like the following worked:

@@ -796,6 +796,7 @@
 %{_mandir}/man1/ldap-agent.1.gz
 %{_unitdir}/%{pkgname}-snmp.service
+%if 0%{?rhel} > 7 || 0%{?fedora}
 %files -n python%{python3_pkgversion}-lib389
 %defattr(-,root,root,-)
 %doc LICENSE LICENSE.GPLv3+
@@ -805,6 +806,7 @@
 %defattr(-,root,root,-)
 %doc LICENSE LICENSE.GPLv3+
 %{python3_sitelib}/dirsrvtests*
+%endif
 %files -n cockpit-389-ds -f cockpit.list
 %defattr(-,root,root,-)

Package Version and Platform

1.4.0.11 EL7

Steps to reproduce

  1. 2.
    3.

Actual results

Expected results


This does not apply to master, as it works correctly in1.3.8

Metadata Update from @mreynolds:
- Custom field component adjusted to None
- Custom field origin adjusted to None
- Custom field reviewstatus adjusted to None
- Custom field type adjusted to None
- Custom field version adjusted to None
- Issue close_status updated to: invalid
- Issue status updated to: Closed (was: Open)

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/2862

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: invalid)

Metadata