Accepting request 867177 from home:lnussel:usrmove
- prepare usrmerge (boo#1029961) - remove use of obsolete %install_info OBS-URL: https://build.opensuse.org/request/show/867177 OBS-URL: https://build.opensuse.org/package/show/Base:System/gawk?expand=0&rev=81
This commit is contained in:
parent
beac6968c1
commit
d23e4f7b39
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 14 16:06:16 UTC 2020 - Ludwig Nussel <lnussel@suse.de>
|
||||||
|
|
||||||
|
- prepare usrmerge (boo#1029961)
|
||||||
|
- remove use of obsolete %install_info
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 15 08:48:59 UTC 2020 - Paolo Stivanin <info@paolostivanin.com>
|
Wed Apr 15 08:48:59 UTC 2020 - Paolo Stivanin <info@paolostivanin.com>
|
||||||
|
|
||||||
|
28
gawk.spec
28
gawk.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package gawk
|
# spec file for package gawk
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -60,30 +60,36 @@ make check %{?_smp_mflags}
|
|||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
#UsrMerge
|
%if !0%{?usrmerged}
|
||||||
install -d %{buildroot}/bin
|
install -d %{buildroot}/bin
|
||||||
ln -sf %{_bindir}/gawk %{buildroot}/bin
|
ln -sf %{_bindir}/gawk %{buildroot}/bin
|
||||||
ln -s %{_sysconfdir}/alternatives/awk %{buildroot}/bin/awk
|
ln -s %{_sysconfdir}/alternatives/awk %{buildroot}/bin/awk
|
||||||
#EndUsrMerge
|
%endif
|
||||||
rm -f %{buildroot}%{_bindir}/*-%{version} %{buildroot}%{_bindir}/awk
|
rm -f %{buildroot}%{_bindir}/*-%{version} %{buildroot}%{_bindir}/awk
|
||||||
|
|
||||||
# create symlinks for update-alternatives
|
# create symlinks for update-alternatives
|
||||||
|
%if !0%{?usrmerged}
|
||||||
ln -s %{_sysconfdir}/alternatives/usr-bin-awk %{buildroot}%{_bindir}/awk
|
ln -s %{_sysconfdir}/alternatives/usr-bin-awk %{buildroot}%{_bindir}/awk
|
||||||
|
%else
|
||||||
|
ln -s %{_sysconfdir}/alternatives/awk %{buildroot}%{_bindir}/awk
|
||||||
|
%endif
|
||||||
ln -s %{_sysconfdir}/alternatives/awk.1%{?ext_man} %{buildroot}%{_mandir}/man1/awk.1%{?ext_man}
|
ln -s %{_sysconfdir}/alternatives/awk.1%{?ext_man} %{buildroot}%{_mandir}/man1/awk.1%{?ext_man}
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
%if !0%{?usrmerged}
|
||||||
%{_sbindir}/update-alternatives \
|
%{_sbindir}/update-alternatives \
|
||||||
--install /bin/awk awk %{_bindir}/gawk 20 \
|
--install /bin/awk awk %{_bindir}/gawk 20 \
|
||||||
--slave %{_bindir}/awk usr-bin-awk %{_bindir}/gawk \
|
--slave %{_bindir}/awk usr-bin-awk %{_bindir}/gawk \
|
||||||
--slave %{_mandir}/man1/awk.1.gz awk.1%{?ext_man} %{_mandir}/man1/gawk.1%{?ext_man}
|
--slave %{_mandir}/man1/awk.1.gz awk.1%{?ext_man} %{_mandir}/man1/gawk.1%{?ext_man}
|
||||||
%install_info --info-dir=%{_infodir} %{_infodir}/gawk.info.gz
|
%else
|
||||||
%install_info --info-dir=%{_infodir} %{_infodir}/gawkinet.info.gz
|
%{_sbindir}/update-alternatives \
|
||||||
|
--install %{_bindir}/awk awk %{_bindir}/gawk 20 \
|
||||||
|
--slave %{_mandir}/man1/awk.1.gz awk.1%{?ext_man} %{_mandir}/man1/gawk.1%{?ext_man}
|
||||||
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gawk.info.gz
|
|
||||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gawkinet.info.gz
|
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
%{_sbindir}/update-alternatives --remove awk %{_bindir}/gawk
|
%{_sbindir}/update-alternatives --remove awk %{_bindir}/gawk
|
||||||
fi
|
fi
|
||||||
@ -91,19 +97,19 @@ fi
|
|||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%config %{_sysconfdir}/profile.d/gawk.csh
|
%config %{_sysconfdir}/profile.d/gawk.csh
|
||||||
%config %{_sysconfdir}/profile.d/gawk.sh
|
%config %{_sysconfdir}/profile.d/gawk.sh
|
||||||
|
%if !0%{?usrmerged}
|
||||||
#UsrMerge
|
#UsrMerge
|
||||||
/bin/awk
|
/bin/awk
|
||||||
|
/bin/gawk
|
||||||
|
%ghost %{_sysconfdir}/alternatives/usr-bin-awk
|
||||||
#EndUsrMerge
|
#EndUsrMerge
|
||||||
|
%endif
|
||||||
%{_bindir}/awk
|
%{_bindir}/awk
|
||||||
%{_mandir}/man1/awk.1%{?ext_man}
|
%{_mandir}/man1/awk.1%{?ext_man}
|
||||||
%ghost %{_sysconfdir}/alternatives/awk
|
%ghost %{_sysconfdir}/alternatives/awk
|
||||||
%ghost %{_sysconfdir}/alternatives/usr-bin-awk
|
|
||||||
%ghost %{_sysconfdir}/alternatives/awk.1%{?ext_man}
|
%ghost %{_sysconfdir}/alternatives/awk.1%{?ext_man}
|
||||||
%license COPYING*
|
%license COPYING*
|
||||||
%doc AUTHORS NEWS POSIX.STD README ChangeLog*
|
%doc AUTHORS NEWS POSIX.STD README ChangeLog*
|
||||||
#UsrMerge
|
|
||||||
/bin/gawk
|
|
||||||
#EndUsrMerge
|
|
||||||
%{_bindir}/gawk
|
%{_bindir}/gawk
|
||||||
%{_libexecdir}/awk
|
%{_libexecdir}/awk
|
||||||
%{_libdir}/gawk
|
%{_libdir}/gawk
|
||||||
|
Loading…
Reference in New Issue
Block a user