diff --git a/module-build-service.spec b/module-build-service.spec index 3d8b78a..3d7bd2a 100644 --- a/module-build-service.spec +++ b/module-build-service.spec @@ -227,13 +227,14 @@ sed -i '/enum34/d' requirements.txt %py2_install %endif -%if 0%{?with_epel} - %if 0%{?with_python3} export PYTHONPATH=%{buildroot}%{python3_sitelib} %else export PYTHONPATH=%{buildroot}%{python2_sitelib} %endif + +# The version of kobo required is not in RHEL/EPEL, so these commands will fail +%if 0%{?fedora} mkdir -p %{buildroot}/%{_mandir}/man1 for command in mbs-manager mbs-frontend mbs-upgradedb ; do MBS_CONFIG_FILE=conf/config.py %{buildroot}/%{_bindir}/$command --help || true @@ -243,7 +244,6 @@ MBS_CONFIG_FILE=conf/config.py help2man -N --version-string=%{version} \ done %endif - %check # https://pagure.io/fm-orchestrator/issue/664 #nosetests-%{python2_version} -v @@ -280,11 +280,10 @@ done %exclude %{python2_sitelib}/tests/ %endif -%if 0%{?with_epel} +%if 0%{?fedora} %{_mandir}/man1/mbs-*.1* %endif - %changelog * Wed Jan 09 2019 mprahl - 2.11.1-2 - Add python-pungi as a dependency for Fedora builds