diff --git a/openssl-3.changes b/openssl-3.changes index 3ee8f15..c7ec33f 100644 --- a/openssl-3.changes +++ b/openssl-3.changes @@ -3,7 +3,7 @@ Wed May 20 12:46:24 UTC 2020 - Vítězslav Čížek - Obsolete openssl 1.1 - Update baselibs.conf -- Fix file permissions +- Set man page permissions to 644 ------------------------------------------------------------------- Fri May 15 15:29:05 UTC 2020 - Vítězslav Čížek diff --git a/openssl-3.spec b/openssl-3.spec index 17a23d8..8854584 100644 --- a/openssl-3.spec +++ b/openssl-3.spec @@ -105,8 +105,7 @@ This package contains optional documentation provided in addition to this package's base documentation. %prep -%setup -q -n %{_rname}-%{dash_version} -%autopatch -p1 +%autosetup -p1 -n %{_rname}-%{dash_version} %build %ifarch armv5el armv5tel @@ -167,26 +166,27 @@ mv %{buildroot}/%{ssletcdir}/misc %{buildroot}/%{_datadir}/ssl/ # avoid file conflicts with man pages from other packages # pushd %{buildroot}/%{_mandir} +find . -type f -exec chmod 644 {} \; # some man pages now contain spaces. This makes several scripts go havoc, among them /usr/sbin/Check. # replace spaces by underscores #for i in man?/*\ *; do mv -v "$i" "${i// /_}"; done which readlink &>/dev/null || function readlink { ( set +x; target=$(file $1 2>/dev/null); target=${target//* }; test -f $target && echo $target; ) } for i in man?/*; do - if test -L $i ; then - LDEST=`readlink $i` - rm -f $i ${i}ssl - ln -sf ${LDEST}ssl ${i}ssl - else - mv $i ${i}ssl - fi - case "$i" in - *.1) - # these are the pages mentioned in openssl(1). They go into the main package. - echo %doc %{_mandir}/${i}ssl%{?ext_man} >> $OLDPWD/filelist;; - *) - # the rest goes into the openssl-doc package. - echo %doc %{_mandir}/${i}ssl%{?ext_man} >> $OLDPWD/filelist.doc;; - esac + if test -L $i ; then + LDEST=`readlink $i` + rm -f $i ${i}ssl + ln -sf ${LDEST}ssl ${i}ssl + else + mv $i ${i}ssl + fi + case "$i" in + *.1) + # these are the pages mentioned in openssl(1). They go into the main package. + echo %doc %{_mandir}/${i}ssl%{?ext_man} >> $OLDPWD/filelist;; + *) + # the rest goes into the openssl-doc package. + echo %doc %{_mandir}/${i}ssl%{?ext_man} >> $OLDPWD/filelist.doc;; + esac done popd