Skip to content

Commit

Permalink
Remove manpages from RPM spec if they're disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
David Ozog committed Sep 18, 2023
1 parent b701314 commit 3740d41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ AC_ARG_ENABLE([manpages],
[AC_HELP_STRING([--enable-manpages],
[Include man pages in the installation (default:disabled)])])
AM_CONDITIONAL([ENABLE_MANPAGES], [test "$enable_manpages" = "yes"])
AS_IF([test "$enable_manpages" = "yes"], [SOS_RPM_MANPAGES=""], [SOS_RPM_MANPAGES="# DISABLED: "])
AC_SUBST([SOS_RPM_MANPAGES])

PKG_INSTALLDIR()

Expand Down
2 changes: 1 addition & 1 deletion sandia-openshmem.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ rm -rf %{buildroot}
%{_libdir}/*.a
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%{_mandir}/man[1-3]/*
@SOS_RPM_MANPAGES@%{_mandir}/man[1-3]/*

%files tests
%defattr(-,root,root)
Expand Down

0 comments on commit 3740d41

Please sign in to comment.