Skip to content

Commit

Permalink
firewalld.spec: Build doc and po files only for Python2 or Python3
Browse files Browse the repository at this point in the history
  • Loading branch information
t-woerner committed Jun 9, 2017
1 parent cf50bd0 commit b2eb576
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions firewalld.spec
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,20 @@ sed -i 's|/usr/bin/python|%{__python3}|' %{py3dir}/config/lockdown-whitelist.xml

%build
%configure --enable-sysconfig --enable-rpmmacros
%if 0%{?use_python3}
make -C src %{?_smp_mflags}
%else
make %{?_smp_mflags}
%endif

%if 0%{?with_python3}
pushd %{py3dir}
%configure --enable-sysconfig --enable-rpmmacros PYTHON=%{__python3}
%if 0%{?use_python3}
make %{?_smp_mflags}
%else
make -C src %{?_smp_mflags}
%endif
popd
%endif #0%{?with_python3}

Expand Down

0 comments on commit b2eb576

Please sign in to comment.