From f9ae731fe4e5f6d614155676050cfe359eee5fc8 Mon Sep 17 00:00:00 2001
From: Jan Pazdziora <[email protected]>
Date: Tue, 30 May 2017 10:29:35 +0200
Subject: 1399246 - also package the spfquery man page.
---
perl-Mail-SPF.spec | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/perl-Mail-SPF.spec b/perl-Mail-SPF.spec
index 8448849..f4b62ef 100644
--- a/perl-Mail-SPF.spec
+++ b/perl-Mail-SPF.spec
@@ -64,14 +64,16 @@ perl Build.PL installdirs=vendor
# The spfquery and spfd will use alternatives
%{__mv} -f %{buildroot}%{_bindir}/spfquery
%{buildroot}%{_bindir}/spfquery.%{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
./Build test
%post
%{_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
if [ $1 -eq 0 ] ; then
@@ -82,9 +84,11 @@ fi
%license LICENSE
%doc CHANGES README TODO bin/ sbin/
%{perl_vendorlib}/*
+%{_mandir}/man1/*
%{_mandir}/man3/*
%ghost %{_bindir}/spfquery
%ghost %{_bindir}/spfd
+%ghost %{_mandir}/man1/spfquery.1.gz
%{_bindir}/spfquery.%{name}
%{_bindir}/spfd.%{name}
--
cgit v1.1
https://src.fedoraproject.org/cgit/perl-Mail-SPF.git/commit/?h=f26&id=f9ae731fe4e5f6d614155676050cfe359eee5fc8
_______________________________________________
perl-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]