1399246 - also package the spfquery man page.
This commit is contained in:
parent
04c35bb03a
commit
f9ae731fe4
@ -64,14 +64,16 @@ perl Build.PL installdirs=vendor
|
|||||||
# The spfquery and spfd will use alternatives
|
# The spfquery and spfd will use alternatives
|
||||||
%{__mv} -f %{buildroot}%{_bindir}/spfquery %{buildroot}%{_bindir}/spfquery.%{name}
|
%{__mv} -f %{buildroot}%{_bindir}/spfquery %{buildroot}%{_bindir}/spfquery.%{name}
|
||||||
%{__mv} -f %{buildroot}%{_sbindir}/spfd %{buildroot}%{_bindir}/spfd.%{name}
|
%{__mv} -f %{buildroot}%{_sbindir}/spfd %{buildroot}%{_bindir}/spfd.%{name}
|
||||||
touch %{buildroot}%{_bindir}/spfquery %{buildroot}%{_bindir}/spfd
|
%{__mv} -f %{buildroot}%{_mandir}/man1/spfquery.1 %{buildroot}%{_mandir}/man1/spfquery-%{name}.1
|
||||||
|
touch %{buildroot}%{_bindir}/spfquery %{buildroot}%{_bindir}/spfd %{buildroot}%{_mandir}/man1/spfquery.1.gz
|
||||||
|
|
||||||
%check
|
%check
|
||||||
./Build test
|
./Build test
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{_sbindir}/update-alternatives --install %{_bindir}/spfquery spf %{_bindir}/spfquery.%{name} 10 \
|
%{_sbindir}/update-alternatives --install %{_bindir}/spfquery spf %{_bindir}/spfquery.%{name} 10 \
|
||||||
--slave %{_bindir}/spfd spf-daemon %{_bindir}/spfd.%{name}
|
--slave %{_bindir}/spfd spf-daemon %{_bindir}/spfd.%{name} \
|
||||||
|
--slave %{_mandir}/man1/spfquery.1.gz spfquery-man-page %{_mandir}/man1/spfquery-%{name}.1.gz
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
@ -82,9 +84,11 @@ fi
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CHANGES README TODO bin/ sbin/
|
%doc CHANGES README TODO bin/ sbin/
|
||||||
%{perl_vendorlib}/*
|
%{perl_vendorlib}/*
|
||||||
|
%{_mandir}/man1/*
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
%ghost %{_bindir}/spfquery
|
%ghost %{_bindir}/spfquery
|
||||||
%ghost %{_bindir}/spfd
|
%ghost %{_bindir}/spfd
|
||||||
|
%ghost %{_mandir}/man1/spfquery.1.gz
|
||||||
%{_bindir}/spfquery.%{name}
|
%{_bindir}/spfquery.%{name}
|
||||||
%{_bindir}/spfd.%{name}
|
%{_bindir}/spfd.%{name}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user