diff --git a/gzip.spec b/gzip.spec index 345527c..1646cc8 100644 --- a/gzip.spec +++ b/gzip.spec @@ -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 1.10-4mamba +- add legacy /bin provides + +* Sat Apr 24 2021 Silvan Calarco 1.10-3mamba +- install binaries in %_bindir instead of /bin + * Thu Nov 26 2020 Silvan Calarco 1.10-2mamba - added debug package