hack html-docs for rhel7

epel8
Rex Dieter 7 years ago
parent 98ecd67e75
commit 3540e9972f

@ -28,6 +28,7 @@ BuildRequires: kf5-ki18n-devel >= %{majmin}
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel
%if 0%{?fedora} || 0%{?rhel} > 7
%global _with_html --with-html
BuildRequires: perl-generators
BuildRequires: perl(Any::URI::Escape)
%else
@ -72,7 +73,7 @@ popd
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%find_lang %{name} --all-name --with-man
%find_lang %{name} --all-name --with-man %{?_with_html}
%ldconfig_scriptlets
@ -87,6 +88,9 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%{_kf5_mandir}/man1/*.1*
%{_kf5_mandir}/man7/*.7*
%{_kf5_datadir}/kf5/kdoctools/
%if !0%{?_with_html:1}
%{_kf5_docdir}/HTML/*/kdoctools5-common/
%endif
%files devel
%{_kf5_includedir}/KDocTools/

Loading…
Cancel
Save