diff --git a/wdiff.spec b/wdiff.spec index 7dd0c57..22608e8 100644 --- a/wdiff.spec +++ b/wdiff.spec @@ -1,3 +1,5 @@ +%bcond_without rebuild_mans + Name: wdiff Version: 1.2.2 Release: 17%{?dist} @@ -17,7 +19,11 @@ BuildRequires: libtool BuildRequires: gettext-devel BuildRequires: ncurses-devel + +BuildRequires: help2man BuildRequires: texinfo +BuildRequires: texinfo-tex +BuildRequires: tex(latex) BuildRequires: gnupg2 @@ -53,6 +59,11 @@ autoreconf -fiv %configure --enable-experimental="mdiff wdiff2 unify" %make_build +%if %{with rebuild_mans} +rm -v man/mdiff.1 man/%{name}.1 man/%{name}2.1 man/unify.1 +%make_build -C man mdiff.1 %{name}.1 %{name}2.1 unify.1 +%endif + %install %make_install @@ -102,6 +113,7 @@ find '%{buildroot}' -type f -name '*gnulib.mo' -print -delete - Add a %%check section and run the tests - Add ncurses-devel BR for termcap/curses support - Add missing BR on gcc +- Rebuild man pages in RPM build * Wed Jan 27 2021 Fedora Release Engineering - 1.2.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild