From feee7954a649701111ba8c0ea72486809880baee Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 22:37:28 +0100 Subject: [PATCH] install in %_bindir and remove /bin symlinks [release 5.1.0-3mamba;Tue Apr 27 2021] --- gawk.spec | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/gawk.spec b/gawk.spec index 341c061..a1da519 100644 --- a/gawk.spec +++ b/gawk.spec @@ -1,6 +1,6 @@ Name: gawk Version: 5.1.0 -Release: 2mamba +Release: 3mamba Summary: The GNU version of the awk text processing utility Group: Applications/Text Vendor: openmamba @@ -22,7 +22,8 @@ BuildRequires: glibc-devel BuildRequires: gettext-devel BuildRequires: bison Requires(post):%{__install_info} -BuildRoot: %{_tmppath}/%{name}-%{version}-root +Provides: /bin/awk +Provides: /bin/gawk %description The gawk packages contains the GNU version of awk, a text processing utility. @@ -47,7 +48,8 @@ This package contains libraries and header files for developing applications tha #%patch0 -p1 %build -%configure --bindir=/bin --libexecdir=%{_libexecdir}/awk \ +%configure \ + --libexecdir=%{_libexecdir}/awk \ LDFLAGS="-lncurses" %make @@ -56,12 +58,7 @@ This package contains libraries and header files for developing applications tha [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall -rm -f %{buildroot}/bin/{gawk,pgawk}-%{version} - -install -d %{buildroot}%{_bindir} -( cd %{buildroot}%{_bindir} - ln -sf /bin/gawk awk - ln -sf /bin/gawk gawk ) +rm -f %{buildroot}%{_bindir}/gawk-%{version} %find_lang %{name} @@ -84,9 +81,6 @@ install -d %{buildroot}%{_bindir} %defattr(-,root,root) %{_sysconfdir}/profile.d/gawk.csh %{_sysconfdir}/profile.d/gawk.sh -/bin/awk -/bin/gawk -#/bin/igawk %{_bindir}/awk %{_bindir}/gawk %dir %{_libdir}/gawk @@ -119,6 +113,9 @@ install -d %{buildroot}%{_bindir} %doc ChangeLog NEWS POSIX.STD README %changelog +* Tue Apr 27 2021 Silvan Calarco 5.1.0-3mamba +- install in %_bindir and remove /bin symlinks + * Sun Dec 06 2020 Silvan Calarco 5.1.0-2mamba - rebuilt with debug packge @@ -194,7 +191,7 @@ install -d %{buildroot}%{_bindir} * Thu Jul 03 2003 Silvan Calarco 3.1.1-1qilnx - going back to version 3.1.1 because 3.1.2 doesn't work with /proc files -* Mon Apr 16 2003 Silvan Calarco 3.1.2-3qilnx +* Wed Apr 16 2003 Silvan Calarco 3.1.2-3qilnx - removed /usr/share/info/dir - removed Prefix declaration