Rebuild man pages in RPM build

epel9
Benjamin A. Beasley 4 years ago
parent 9579451410
commit b604d72a27

@ -1,3 +1,5 @@
%bcond_without rebuild_mans
Name: wdiff Name: wdiff
Version: 1.2.2 Version: 1.2.2
Release: 17%{?dist} Release: 17%{?dist}
@ -17,7 +19,11 @@ BuildRequires: libtool
BuildRequires: gettext-devel BuildRequires: gettext-devel
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: help2man
BuildRequires: texinfo BuildRequires: texinfo
BuildRequires: texinfo-tex
BuildRequires: tex(latex)
BuildRequires: gnupg2 BuildRequires: gnupg2
@ -53,6 +59,11 @@ autoreconf -fiv
%configure --enable-experimental="mdiff wdiff2 unify" %configure --enable-experimental="mdiff wdiff2 unify"
%make_build %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 %install
%make_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 a %%check section and run the tests
- Add ncurses-devel BR for termcap/curses support - Add ncurses-devel BR for termcap/curses support
- Add missing BR on gcc - Add missing BR on gcc
- Rebuild man pages in RPM build
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-16 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

Loading…
Cancel
Save