From 72cc04c4254a6417e6ee7903e1d64bc4e2dcbd9c Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Apr 28 2018 12:25:36 +0000 Subject: Don't build and install manpages on el7. --- diff --git a/waiverdb.spec b/waiverdb.spec index 9fb5212..449dcef 100644 --- a/waiverdb.spec +++ b/waiverdb.spec @@ -141,6 +141,7 @@ install -m0644 \ conf/client.conf.example \ %{buildroot}%{_sysconfdir}/waiverdb/client.conf +%if 0%{?fedora} || 0%{?rhel} > 7 install -D -m0644 \ docs/_build/man/waiverdb-cli.1 \ %{buildroot}%{_mandir}/man1/waiverdb-cli.1 @@ -148,6 +149,7 @@ install -D -m0644 \ install -D -m0644 \ docs/_build/man/waiverdb.7 \ %{buildroot}%{_mandir}/man7/waiverdb.7 +%endif # Tests don't make sense here now that we require postgres to run them. #%%check @@ -184,8 +186,11 @@ install -D -m0644 \ %endif %attr(755,root,root) %{_bindir}/waiverdb-cli %config(noreplace) %{_sysconfdir}/waiverdb/client.conf + +%if 0%{?fedora} || 0%{?rhel} > 7 %{_mandir}/man1/waiverdb-cli.1* %{_mandir}/man7/waiverdb.7* +%endif %post %systemd_post %{name}.service