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 Name: gzip
Version: 1.10 Version: 1.10
Release: 2mamba Release: 4mamba
Summary: The GNU data compression program Summary: The GNU data compression program
Group: Applications/Archiving Group: Applications/Archiving
Vendor: openmamba Vendor: openmamba
@ -23,7 +23,10 @@ License: GPL
BuildRequires: glibc-devel BuildRequires: glibc-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
Requires(post):%{__install_info} 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 %description
The gzip package contains the popular GNU gzip data compression program. The gzip package contains the popular GNU gzip data compression program.
@ -47,19 +50,19 @@ Gzipped files have a .gz extension.
%build %build
export DEFS="NO_ASM" export DEFS="NO_ASM"
%configure --bindir=/bin %configure --bindir=%{_bindir}
%make %make
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall bindir=/bin %makeinstall bindir=%{_bindir}
# uncompress is a part of ncompress package # uncompress is a part of ncompress package
rm -f %{buildroot}/bin/uncompress rm -f %{buildroot}%{_bindir}/uncompress
# create symlink needed by some broken rpms ## create symlink needed by some broken rpms
install -d %{buildroot}%{_bindir} #install -d %{buildroot}%{_bindir}
ln -sf /bin/gzip %{buildroot}%{_bindir}/gzip #ln -sf /bin/gzip %{buildroot}%{_bindir}/gzip
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -74,20 +77,7 @@ ln -sf /bin/gzip %{buildroot}%{_bindir}/gzip
%files %files
%defattr(-,root,root) %defattr(-,root,root)
/bin/gunzip %{_bindir}/*
/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
%{_infodir}/gzip.* %{_infodir}/gzip.*
%{_mandir}/man1/gunzip.* %{_mandir}/man1/gunzip.*
%{_mandir}/man1/gzexe.* %{_mandir}/man1/gzexe.*
@ -104,6 +94,12 @@ ln -sf /bin/gzip %{buildroot}%{_bindir}/gzip
#NEWS README THANKS TODO #NEWS README THANKS TODO
%changelog %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 * Thu Nov 26 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10-2mamba
- added debug package - added debug package