From ef7782ce32c5b9061f51468809fe56e67b288ebd Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Aug 15 2022 08:34:24 +0000 Subject: Ensure /usr/bin/animalsay mode is 0755 Ensure /usr/bin/animalsay mode is 0755 (not 0775). File mode 0775 has happened at least for my mockbuild environment. To achieve a certain file mode of 0755, we * change the git permissions of animalsay from 0664 to 0644 * use "install" instead of "cp" for installing the file * explicitly tell "install" to install with -m 0755 --- diff --git a/animalsay b/animalsay old mode 100644 new mode 100755 diff --git a/cowsay.spec b/cowsay.spec index e32e885..8451fb9 100644 --- a/cowsay.spec +++ b/cowsay.spec @@ -3,7 +3,7 @@ Name: cowsay Version: 3.7.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Configurable speaking/thinking cow License: GPLv3+ URL: https://github.com/cowsay-org/cowsay @@ -38,16 +38,15 @@ mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/%{name}/cows,%{_ cp -p %{name} $RPM_BUILD_ROOT%{_bindir} cp -p share/cows/* $RPM_BUILD_ROOT%{_datadir}/%{name}/cows cp -p %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1 -cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir} # License issue rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/cows/daemon.cow -chmod +x $RPM_BUILD_ROOT%{_bindir}/animalsay ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/cowthink ln -s %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/cowthink.1 mkdir -p $RPM_BUILD_ROOT%{compdir}/ cp %{SOURCE1} $RPM_BUILD_ROOT%{compdir}/ +install -p -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_bindir} %files %doc ChangeLog LICENSE.txt README* @@ -61,6 +60,9 @@ cp %{SOURCE1} $RPM_BUILD_ROOT%{compdir}/ %(dirname %{compdir}) %changelog +* Mon Aug 15 2022 Hans Ulrich Niedermann - 3.7.0-5 +- Ensure /usr/bin/animalsay file mode is 0755 + * Wed Aug 10 2022 Hans Ulrich Niedermann - 3.7.0-4 - Stop packaging cows in the unsupported *.pm format