install in %_bindir and remove /bin symlinks [release 5.1.0-3mamba;Tue Apr 27 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 22:37:28 +01:00
parent a2611756ff
commit feee7954a6

View File

@ -1,6 +1,6 @@
Name: gawk Name: gawk
Version: 5.1.0 Version: 5.1.0
Release: 2mamba Release: 3mamba
Summary: The GNU version of the awk text processing utility Summary: The GNU version of the awk text processing utility
Group: Applications/Text Group: Applications/Text
Vendor: openmamba Vendor: openmamba
@ -22,7 +22,8 @@ BuildRequires: glibc-devel
BuildRequires: gettext-devel BuildRequires: gettext-devel
BuildRequires: bison BuildRequires: bison
Requires(post):%{__install_info} Requires(post):%{__install_info}
BuildRoot: %{_tmppath}/%{name}-%{version}-root Provides: /bin/awk
Provides: /bin/gawk
%description %description
The gawk packages contains the GNU version of awk, a text processing utility. 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 #%patch0 -p1
%build %build
%configure --bindir=/bin --libexecdir=%{_libexecdir}/awk \ %configure \
--libexecdir=%{_libexecdir}/awk \
LDFLAGS="-lncurses" LDFLAGS="-lncurses"
%make %make
@ -56,12 +58,7 @@ This package contains libraries and header files for developing applications tha
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall %makeinstall
rm -f %{buildroot}/bin/{gawk,pgawk}-%{version} rm -f %{buildroot}%{_bindir}/gawk-%{version}
install -d %{buildroot}%{_bindir}
( cd %{buildroot}%{_bindir}
ln -sf /bin/gawk awk
ln -sf /bin/gawk gawk )
%find_lang %{name} %find_lang %{name}
@ -84,9 +81,6 @@ install -d %{buildroot}%{_bindir}
%defattr(-,root,root) %defattr(-,root,root)
%{_sysconfdir}/profile.d/gawk.csh %{_sysconfdir}/profile.d/gawk.csh
%{_sysconfdir}/profile.d/gawk.sh %{_sysconfdir}/profile.d/gawk.sh
/bin/awk
/bin/gawk
#/bin/igawk
%{_bindir}/awk %{_bindir}/awk
%{_bindir}/gawk %{_bindir}/gawk
%dir %{_libdir}/gawk %dir %{_libdir}/gawk
@ -119,6 +113,9 @@ install -d %{buildroot}%{_bindir}
%doc ChangeLog NEWS POSIX.STD README %doc ChangeLog NEWS POSIX.STD README
%changelog %changelog
* Tue Apr 27 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.1.0-3mamba
- install in %_bindir and remove /bin symlinks
* Sun Dec 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.1.0-2mamba * Sun Dec 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.1.0-2mamba
- rebuilt with debug packge - rebuilt with debug packge
@ -194,7 +191,7 @@ install -d %{buildroot}%{_bindir}
* Thu Jul 03 2003 Silvan Calarco <silvan.calarco@qinet.it> 3.1.1-1qilnx * Thu Jul 03 2003 Silvan Calarco <silvan.calarco@qinet.it> 3.1.1-1qilnx
- going back to version 3.1.1 because 3.1.2 doesn't work with /proc files - going back to version 3.1.1 because 3.1.2 doesn't work with /proc files
* Mon Apr 16 2003 Silvan Calarco <silvan.calarco@qinet.it> 3.1.2-3qilnx * Wed Apr 16 2003 Silvan Calarco <silvan.calarco@qinet.it> 3.1.2-3qilnx
- removed /usr/share/info/dir - removed /usr/share/info/dir
- removed Prefix declaration - removed Prefix declaration