add legacy /bin provides [release 1.10-4mamba;Sat Apr 24 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 23:37:11 +01:00
parent d311b4ce72
commit 3095f760df

View File

@ -1,6 +1,6 @@
Name: gzip
Version: 1.10
Release: 2mamba
Release: 4mamba
Summary: The GNU data compression program
Group: Applications/Archiving
Vendor: openmamba
@ -23,7 +23,10 @@ License: GPL
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
Requires(post):%{__install_info}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires(post): filesystem >= 2.3-4mamba
Provides: /bin/gunzip
Provides: /bin/gzip
Provides: /bin/zcat
%description
The gzip package contains the popular GNU gzip data compression program.
@ -47,19 +50,19 @@ Gzipped files have a .gz extension.
%build
export DEFS="NO_ASM"
%configure --bindir=/bin
%configure --bindir=%{_bindir}
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall bindir=/bin
%makeinstall bindir=%{_bindir}
# uncompress is a part of ncompress package
rm -f %{buildroot}/bin/uncompress
rm -f %{buildroot}%{_bindir}/uncompress
# create symlink needed by some broken rpms
install -d %{buildroot}%{_bindir}
ln -sf /bin/gzip %{buildroot}%{_bindir}/gzip
## create symlink needed by some broken rpms
#install -d %{buildroot}%{_bindir}
#ln -sf /bin/gzip %{buildroot}%{_bindir}/gzip
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -74,20 +77,7 @@ ln -sf /bin/gzip %{buildroot}%{_bindir}/gzip
%files
%defattr(-,root,root)
/bin/gunzip
/bin/gzexe
/bin/gzip
/bin/zcat
/bin/zcmp
/bin/zdiff
/bin/zegrep
/bin/zfgrep
/bin/zforce
/bin/zgrep
/bin/zless
/bin/zmore
/bin/znew
%{_bindir}/gzip
%{_bindir}/*
%{_infodir}/gzip.*
%{_mandir}/man1/gunzip.*
%{_mandir}/man1/gzexe.*
@ -104,6 +94,12 @@ ln -sf /bin/gzip %{buildroot}%{_bindir}/gzip
#NEWS README THANKS TODO
%changelog
* Sat Apr 24 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10-4mamba
- add legacy /bin provides
* Sat Apr 24 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10-3mamba
- install binaries in %_bindir instead of /bin
* Thu Nov 26 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10-2mamba
- added debug package