From 6759ff9a7d01d3b41e2cd3e38009269e54f98d5d Mon Sep 17 00:00:00 2001 From: B Stack Date: Wed, 18 Sep 2019 16:57:41 -0400 Subject: adding experimental man page renaming struggling with the %suffix macro --- openssl-freefilesync/openssl.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/openssl-freefilesync/openssl.spec b/openssl-freefilesync/openssl.spec index 2e23c2c..6815465 100644 --- a/openssl-freefilesync/openssl.spec +++ b/openssl-freefilesync/openssl.spec @@ -16,6 +16,7 @@ # for openssl-freefilesync %define fullname openssl-freefilesync %define shortname openssl +%define suffix 111c # Arches on which we need to prevent arch conflicts on opensslconf.h, must # also be handled in opensslconf-new.h. @@ -406,13 +407,22 @@ install -m644 %{SOURCE9} \ LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} export LD_LIBRARY_PATH +# for openssl-freefilesync +pushd ${RPM_BUILD_ROOT}%{_mandir} +for word in $( find . ! -type d -print ) ; +do + mv "${word}" "${word}%{suffix}" +done +popd +mv %{RPM_BUILD_ROOT}%{_bindir}/openssl{,%{suffix}} + %files %{!?_licensedir:%global license %%doc} %license LICENSE %doc FAQ NEWS README README.FIPS %{_bindir}/make-dummy-cert %{_bindir}/renew-dummy-cert -%{_bindir}/openssl +%{_bindir}/openssl%{suffix} %{_mandir}/man1*/* %{_mandir}/man5*/* %{_mandir}/man7*/* -- cgit