don't build doxygen documentation during modular build

This commit is contained in:
Dominika Hodovska 2017-04-19 16:32:59 +02:00 committed by Nils Philippsen
parent e8a1a29ed8
commit 99d8af5cbc

View File

@ -19,7 +19,7 @@
Summary: Dynamic host configuration protocol software Summary: Dynamic host configuration protocol software
Name: dhcp Name: dhcp
Version: 4.3.5 Version: 4.3.5
Release: 4%{?dist} Release: 5%{?dist}
# NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to # NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to
# dcantrell maintaining the package) made incorrect use of the epoch and # dcantrell maintaining the package) made incorrect use of the epoch and
# that's why it is at 12 now. It should have never been used, but it was. # that's why it is at 12 now. It should have never been used, but it was.
@ -90,7 +90,9 @@ BuildRequires: bind99-devel
BuildRequires: systemd systemd-devel BuildRequires: systemd systemd-devel
# dhcp-sd_notify.patch # dhcp-sd_notify.patch
BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(libsystemd)
%if ! 0%{?_module_build}
BuildRequires: doxygen BuildRequires: doxygen
%endif
%if %{sdt} %if %{sdt}
BuildRequires: systemtap-sdt-devel BuildRequires: systemtap-sdt-devel
%global tapsetdir /usr/share/systemtap/tapset %global tapsetdir /usr/share/systemtap/tapset
@ -391,9 +393,11 @@ CFLAGS="%{optflags} -fno-strict-aliasing" \
--enable-binary-leases \ --enable-binary-leases \
--with-systemd --with-systemd
make %{?_smp_mflags} make %{?_smp_mflags}
if ! 0%{?_module_build}
pushd doc pushd doc
make %{?_smp_mflags} devel make %{?_smp_mflags} devel
popd popd
%endif
%install %install
make DESTDIR=%{buildroot} install %{?_smp_mflags} make DESTDIR=%{buildroot} install %{?_smp_mflags}
@ -662,6 +666,9 @@ done
%doc doc/html/ %doc doc/html/
%changelog %changelog
* Wed Apr 19 2017 Dominika Hodovska <dhodovsk@redhat.com> - 12:4.3.5-5
- don't build doxygen documentation during modular build
* Tue Apr 04 2017 Pavel Zhukov <landgraf@fedoraproject.org> - 12:4.3.5-4 * Tue Apr 04 2017 Pavel Zhukov <landgraf@fedoraproject.org> - 12:4.3.5-4
- Add EnvironmentFile parameter for backward compatibility - Add EnvironmentFile parameter for backward compatibility