Accepting request 851923 from home:lnussel:usrmove
- remove obsolete info macros - prepare usrmerge (boo#1029961) OBS-URL: https://build.opensuse.org/request/show/851923 OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=322
This commit is contained in:
parent
f6ff89c36a
commit
253474743b
10
bash.changes
10
bash.changes
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 19 15:47:13 UTC 2020 - Ludwig Nussel <lnussel@suse.de>
|
||||||
|
|
||||||
|
- remove obsolete info macros
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 16 07:08:31 UTC 2020 - Ludwig Nussel <lnussel@suse.de>
|
||||||
|
|
||||||
|
- prepare usrmerge (boo#1029961)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 23 16:30:31 UTC 2020 - Stefan Dirsch <sndirsch@suse.com>
|
Wed Sep 23 16:30:31 UTC 2020 - Stefan Dirsch <sndirsch@suse.com>
|
||||||
|
|
||||||
|
43
bash.spec
43
bash.spec
@ -88,9 +88,11 @@ BuildRequires: sed
|
|||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun): update-alternatives
|
Requires(preun): update-alternatives
|
||||||
|
Provides: /bin/bash
|
||||||
|
Provides: /bin/sh
|
||||||
%global _sysconfdir /etc
|
%global _sysconfdir /etc
|
||||||
%global _incdir %{_includedir}
|
%global _incdir %{_includedir}
|
||||||
%global _ldldir /%{_lib}/bash
|
%global _ldldir /%{_libdir}/bash
|
||||||
%global _minsh 0
|
%global _minsh 0
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -105,7 +107,6 @@ Summary: Documentation how to Use the GNU Bourne-Again Shell
|
|||||||
Group: Documentation/HTML
|
Group: Documentation/HTML
|
||||||
Provides: bash:%{_infodir}/bash.info.gz
|
Provides: bash:%{_infodir}/bash.info.gz
|
||||||
Supplements: packageand(bash:patterns-base-documentation)
|
Supplements: packageand(bash:patterns-base-documentation)
|
||||||
PreReq: %install_info_prereq
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
@ -192,6 +193,17 @@ unlink Remove a directory entry.
|
|||||||
|
|
||||||
whoami Print out username of current user.
|
whoami Print out username of current user.
|
||||||
|
|
||||||
|
%if 0%{?usrmerged}
|
||||||
|
%package legacybin
|
||||||
|
Summary: Legacy usrmove helper files
|
||||||
|
Group: System/Shells
|
||||||
|
Requires: bash = %{version}-%{release}
|
||||||
|
Requires: this-is-only-for-build-envs
|
||||||
|
Conflicts: rpmlib(X-CheckUnifiedSystemdir)
|
||||||
|
|
||||||
|
%description legacybin
|
||||||
|
Legacy usrmove helper files for the build system. Do not install.
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%if %{with sjis}
|
%if %{with sjis}
|
||||||
@ -440,13 +452,11 @@ test ${rl1[2]} = ${rl2[2]} || exit 1
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
make -C examples/loadables/ install-supported DESTDIR=%{buildroot} libdir=/%{_lib}
|
make -C examples/loadables/ install-supported DESTDIR=%{buildroot} libdir=%{_libdir}
|
||||||
mv -vf %{buildroot}%{_ldldir}/*.h %{buildroot}%{_includedir}/bash/
|
mv -vf %{buildroot}%{_ldldir}/*.h %{buildroot}%{_includedir}/bash/
|
||||||
mv -vf %{buildroot}%{_ldldir}/*.inc %{buildroot}%{_datadir}/bash
|
mv -vf %{buildroot}%{_ldldir}/*.inc %{buildroot}%{_datadir}/bash
|
||||||
rm -rf %{buildroot}%{_libdir}/bash
|
|
||||||
rm -rf %{buildroot}/%{_lib}/pkgconfig
|
rm -rf %{buildroot}/%{_lib}/pkgconfig
|
||||||
sed -ri '/CC = gcc/s@(CC = gcc).*@\1@' %{buildroot}%{_libdir}/pkgconfig/bash.pc
|
sed -ri '/CC = gcc/s@(CC = gcc).*@\1@' %{buildroot}%{_libdir}/pkgconfig/bash.pc
|
||||||
mkdir -p %{buildroot}/bin
|
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
#
|
#
|
||||||
# It should be noted that the move of /bin/bash to /usr/bin/bash
|
# It should be noted that the move of /bin/bash to /usr/bin/bash
|
||||||
@ -454,6 +464,7 @@ test ${rl1[2]} = ${rl2[2]} || exit 1
|
|||||||
# remains here :(
|
# remains here :(
|
||||||
# The same had happen for the system POSIX shell /bin/sh
|
# The same had happen for the system POSIX shell /bin/sh
|
||||||
#
|
#
|
||||||
|
mkdir -p %{buildroot}/bin
|
||||||
ln -sf %{_bindir}/bash %{buildroot}/bin/bash
|
ln -sf %{_bindir}/bash %{buildroot}/bin/bash
|
||||||
ln -sf %{_bindir}/sh %{buildroot}/bin/sh
|
ln -sf %{_bindir}/sh %{buildroot}/bin/sh
|
||||||
ln -sf bash %{buildroot}%{_bindir}/rbash
|
ln -sf bash %{buildroot}%{_bindir}/rbash
|
||||||
@ -495,24 +506,18 @@ EOF
|
|||||||
%fdupes -s %{buildroot}%{_datadir}/bash/helpfiles
|
%fdupes -s %{buildroot}%{_datadir}/bash/helpfiles
|
||||||
sed -ri '1{ s@/bin/sh@/bin/bash@ }' %{buildroot}%{_bindir}/bashbug
|
sed -ri '1{ s@/bin/sh@/bin/bash@ }' %{buildroot}%{_bindir}/bashbug
|
||||||
|
|
||||||
%post -p /bin/bash
|
%post -p /usr/bin/bash
|
||||||
%{_sbindir}/update-alternatives --quiet --force \
|
%{_sbindir}/update-alternatives --quiet --force \
|
||||||
--install %{_bindir}/sh sh %{_bindir}/bash 10100
|
--install %{_bindir}/sh sh %{_bindir}/bash 10100
|
||||||
|
|
||||||
%preun -p /bin/bash
|
%preun -p /usr/bin/bash
|
||||||
if test "$1" = 0; then
|
if test "$1" = 0; then
|
||||||
%{_sbindir}/update-alternatives --quiet --remove sh %{_bindir}/bash
|
%{_sbindir}/update-alternatives --quiet --remove sh %{_bindir}/bash
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post doc
|
|
||||||
%install_info --info-dir=%{_infodir} %{_infodir}/bash.info.gz
|
|
||||||
|
|
||||||
%preun doc
|
|
||||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/bash.info.gz
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
LD_LIBRARY_PATH=%{buildroot}/%{_lib} \
|
LD_LIBRARY_PATH=%{buildroot}/%{_libdir} \
|
||||||
ldd -u -r %{buildroot}/bin/bash || true
|
ldd -u -r %{buildroot}%{_bindir}/bash || true
|
||||||
%{?buildroot: %__rm -rf %{buildroot}}
|
%{?buildroot: %__rm -rf %{buildroot}}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -523,8 +528,10 @@ ldd -u -r %{buildroot}/bin/bash || true
|
|||||||
%config %attr(644,root,root) %{_sysconfdir}/skel/.profile
|
%config %attr(644,root,root) %{_sysconfdir}/skel/.profile
|
||||||
%ghost %config %{_sysconfdir}/alternatives/sh
|
%ghost %config %{_sysconfdir}/alternatives/sh
|
||||||
%dir %{_sysconfdir}/bash_completion.d
|
%dir %{_sysconfdir}/bash_completion.d
|
||||||
|
%if !0%{?usrmerged}
|
||||||
/bin/bash
|
/bin/bash
|
||||||
/bin/sh
|
/bin/sh
|
||||||
|
%endif
|
||||||
%{_bindir}/bash
|
%{_bindir}/bash
|
||||||
%{_bindir}/bashbug
|
%{_bindir}/bashbug
|
||||||
%{_bindir}/rbash
|
%{_bindir}/rbash
|
||||||
@ -560,4 +567,10 @@ ldd -u -r %{buildroot}/bin/bash || true
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_ldldir}
|
%{_ldldir}
|
||||||
|
|
||||||
|
%if 0%{?usrmerged}
|
||||||
|
%files legacybin
|
||||||
|
/bin/bash
|
||||||
|
/bin/sh
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user