This commit is contained in:
committed by
Git OBS Bridge
parent
8e0f21272f
commit
3a9bda2812
136
bash.spec
136
bash.spec
@@ -24,10 +24,11 @@ Group: System/Shells
|
||||
%define bash_vers 4.0
|
||||
%define rl_vers 6.0
|
||||
Recommends: bash-doc = %bash_vers
|
||||
Recommends: bash-lang = %bash_vers
|
||||
Suggests: command-not-found
|
||||
AutoReqProv: on
|
||||
Version: 4.0
|
||||
Release: 11
|
||||
Release: 12
|
||||
Summary: The GNU Bourne-Again Shell
|
||||
Url: http://www.gnu.org/software/bash/bash.html
|
||||
Source0: ftp://ftp.gnu.org/gnu/bash/bash-%{bash_vers}.tar.bz2
|
||||
@@ -52,6 +53,7 @@ Patch11: bash-4.0-loadables.dif
|
||||
Patch14: bash-3.2-sigrestart.patch
|
||||
Patch15: bash-3.2-longjmp.dif
|
||||
Patch16: bash-4.0-setlocale.dif
|
||||
Patch17: bash-4.0-headers.dif
|
||||
Patch20: readline-%{rl_vers}.dif
|
||||
Patch21: readline-4.3-input.dif
|
||||
Patch22: readline-6.0-wrap.patch
|
||||
@@ -59,9 +61,11 @@ Patch23: readline-5.2-conf.patch
|
||||
Patch30: readline-6.0-destdir.patch
|
||||
Patch40: bash-4.0.10-typo.patch
|
||||
Patch41: bash-4.0.24-globstar-nulldir.patch
|
||||
Patch42: bash-4.0.24-acl.dif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%global _sysconfdir /etc
|
||||
%global _incdir %{_includedir}
|
||||
%global _ldldir /%{_lib}/bash
|
||||
%global _minsh 0
|
||||
%{expand: %%global rl_major %(echo %{rl_vers} | sed -r 's/.[0-9]+//g')}
|
||||
|
||||
@@ -86,7 +90,7 @@ Group: Documentation/Man
|
||||
Provides: bash:%{_infodir}/bash.info.gz
|
||||
PreReq: %install_info_prereq
|
||||
Version: 4.0
|
||||
Release: 11
|
||||
Release: 12
|
||||
AutoReqProv: on
|
||||
|
||||
%description -n bash-doc
|
||||
@@ -95,6 +99,95 @@ interpreter Bash.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Brian Fox <bfox@gnu.org>
|
||||
Chet Ramey <chet@ins.cwru.edu>
|
||||
|
||||
%lang_package(bash)
|
||||
%package -n bash-devel
|
||||
License: GPL v2 or later
|
||||
Summary: Include Files mandatory for Development of bash loadable builtins
|
||||
Group: Development/Languages/C and C++
|
||||
Version: 4.0
|
||||
Release: 1
|
||||
AutoReqProv: on
|
||||
|
||||
%description -n bash-devel
|
||||
This package contains the C header files for writing loadable new
|
||||
builtins for the interpreter Bash. Use -I /usr/include/bash/<version>
|
||||
on the compilers command line.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Brian Fox <bfox@gnu.org>
|
||||
Chet Ramey <chet@ins.cwru.edu>
|
||||
|
||||
%package -n bash-loadables
|
||||
License: GPL v2 or later
|
||||
Summary: Loadable bash builtins
|
||||
Group: System/Shells
|
||||
Version: 4.0
|
||||
Release: 1
|
||||
AutoReqProv: on
|
||||
|
||||
%description -n bash-loadables
|
||||
This package contains the examples for the ready-to-dynamic-load
|
||||
builtins found in the source tar ball of the bash:
|
||||
|
||||
basename Return non-directory portion of pathname.
|
||||
|
||||
cut cut(1) replacement.
|
||||
|
||||
dirname Return directory portion of pathname.
|
||||
|
||||
finfo Print file info.
|
||||
|
||||
getconf POSIX.2 getconf utility.
|
||||
|
||||
head Copy first part of files.
|
||||
|
||||
id POSIX.2 user identity.
|
||||
|
||||
ln Make links.
|
||||
|
||||
logname Print login name of current user.
|
||||
|
||||
mkdir Make directories.
|
||||
|
||||
pathchk Check pathnames for validity and portability.
|
||||
|
||||
print Loadable ksh-93 style print builtin.
|
||||
|
||||
printenv Minimal builtin clone of BSD printenv(1).
|
||||
|
||||
push Anyone remember TOPS-20?
|
||||
|
||||
realpath Canonicalize pathnames, resolving symlinks.
|
||||
|
||||
rmdir Remove directory.
|
||||
|
||||
sleep sleep for fractions of a second.
|
||||
|
||||
strftime Loadable builtin interface to strftime(3).
|
||||
|
||||
sync Sync the disks by forcing pending filesystem writes to
|
||||
complete.
|
||||
|
||||
tee Duplicate standard input.
|
||||
|
||||
tty Return terminal name.
|
||||
|
||||
uname Print system information.
|
||||
|
||||
unlink Remove a directory entry.
|
||||
|
||||
whoami Print out username of current user.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Brian Fox <bfox@gnu.org>
|
||||
@@ -106,7 +199,7 @@ Summary: The Readline Library
|
||||
Group: System/Libraries
|
||||
Provides: bash:/%{_lib}/libreadline.so.%{rl_major}
|
||||
Version: 6.0
|
||||
Release: 11
|
||||
Release: 12
|
||||
Recommends: readline-doc = %{version}
|
||||
# bug437293
|
||||
%ifarch ppc64
|
||||
@@ -135,7 +228,7 @@ Summary: Include Files and Libraries mandatory for Development
|
||||
Group: Development/Libraries/C and C++
|
||||
Provides: bash:%{_libdir}/libreadline.a
|
||||
Version: 6.0
|
||||
Release: 11
|
||||
Release: 12
|
||||
Requires: libreadline6 = %{version}
|
||||
Requires: ncurses-devel
|
||||
Recommends: readline-doc = %{version}
|
||||
@@ -164,7 +257,7 @@ Group: System/Libraries
|
||||
Provides: readline:%{_infodir}/readline.info.gz
|
||||
PreReq: %install_info_prereq
|
||||
Version: 6.0
|
||||
Release: 11
|
||||
Release: 12
|
||||
AutoReqProv: on
|
||||
|
||||
%description -n readline-doc
|
||||
@@ -202,11 +295,13 @@ unset p
|
||||
%patch14 -p0 -b .sigrestart
|
||||
%patch15 -p0 -b .longjmp
|
||||
%patch16 -p0 -b .setlocale
|
||||
%patch17 -p0 -b .headers
|
||||
%patch21 -p0 -b .zerotty
|
||||
%patch22 -p0 -b .wrap
|
||||
%patch23 -p0 -b .conf
|
||||
%patch40 -p0 -b .typo
|
||||
%patch41 -p0 -b .globstar
|
||||
%patch42 -p0 -b .acl
|
||||
%patch0 -p0
|
||||
cd ../readline-%{rl_vers}
|
||||
for p in ../readline-%{rl_vers}-patches/*; do
|
||||
@@ -263,6 +358,7 @@ cd ../readline-%{rl_vers}
|
||||
cflags -Wl,--as-needed LDFLAGS
|
||||
cflags -Wl,-O2 LDFLAGS
|
||||
cflags -Wl,--hash-size=16699 LDFLAGS
|
||||
cflags -Wl,-rpath,%{_ldldir}/%{bash_vers} LDFLAGS
|
||||
CC=gcc
|
||||
CC_FOR_BUILD="$CC"
|
||||
CFLAGS_FOR_BUILD="$CFLAGS"
|
||||
@@ -396,6 +492,8 @@ cd ../readline-%{rl_vers}
|
||||
ln -sf /%{_lib}/libreadline.so.%{rl_vers} %{buildroot}/%{_libdir}/libreadline.so
|
||||
cd ../bash-%{bash_vers}
|
||||
make install DESTDIR=%{buildroot}
|
||||
make -C examples/loadables/ install-plugins DESTDIR=%{buildroot} libdir=/%{_lib}
|
||||
make -C examples/loadables/ install-headers DESTDIR=%{buildroot}
|
||||
mkdir -p %{buildroot}/bin
|
||||
mv %{buildroot}%{_bindir}/bash %{buildroot}/bin/
|
||||
%if %_minsh
|
||||
@@ -469,7 +567,7 @@ ldd -u -r %{buildroot}/bin/bash || true
|
||||
ldd -u -r %{buildroot}%{_libdir}/libreadline.so || true
|
||||
%{?buildroot: %{__rm} -rf %{buildroot}}
|
||||
|
||||
%files -f bash.lang
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%config %attr(600,root,root) %{_sysconfdir}/skel/.bash_history
|
||||
%config %attr(644,root,root) %{_sysconfdir}/skel/.bashrc
|
||||
@@ -484,6 +582,9 @@ ldd -u -r %{buildroot}%{_libdir}/libreadline.so || true
|
||||
%dir %{_datadir}/bash/helpfiles
|
||||
%{_datadir}/bash/helpfiles/*
|
||||
|
||||
%files -n bash-lang -f bash.lang
|
||||
%defattr(-,root,root)
|
||||
|
||||
%files -n bash-doc
|
||||
%defattr(-,root,root)
|
||||
%doc %{_infodir}/bash.info.gz
|
||||
@@ -492,10 +593,20 @@ ldd -u -r %{buildroot}%{_libdir}/libreadline.so || true
|
||||
%doc %{_mandir}/man1/bashbug.1.gz
|
||||
%doc %{_mandir}/man1/rbash.1.gz
|
||||
%doc %{_defaultdocdir}/bash/
|
||||
#%files -n bash-plugins
|
||||
#%defattr(-,root,root)
|
||||
#%dir /%{_lib}/bash/%{version}/
|
||||
#/%{_lib}/bash/%{version}/*.so
|
||||
|
||||
%files -n bash-devel
|
||||
%defattr(-,root,root)
|
||||
%dir /%{_includedir}/bash/
|
||||
%dir /%{_includedir}/bash/%{bash_vers}/
|
||||
%dir /%{_includedir}/bash/%{bash_vers}/builtins/
|
||||
/%{_incdir}/bash/%{bash_vers}/*.h
|
||||
/%{_incdir}/bash/%{bash_vers}/builtins/*.h
|
||||
|
||||
%files -n bash-loadables
|
||||
%defattr(-,root,root)
|
||||
%dir %{_ldldir}/
|
||||
%dir %{_ldldir}/%{bash_vers}/
|
||||
%{_ldldir}/%{bash_vers}/*
|
||||
|
||||
%files -n libreadline6
|
||||
%defattr(-,root,root)
|
||||
@@ -520,6 +631,11 @@ ldd -u -r %{buildroot}%{_libdir}/libreadline.so || true
|
||||
%doc %{_defaultdocdir}/readline/
|
||||
|
||||
%changelog
|
||||
* Tue Jun 09 2009 werner@suse.de
|
||||
- Branch off some sub packages:
|
||||
* bash-lang to include localization
|
||||
* bash-loadables for installing the loadable runtime builtins
|
||||
* bash-devel to install headers for developing loadable builtins
|
||||
* Wed Jun 03 2009 werner@suse.de
|
||||
- Enforce the usage of euidaccess(3) instead of stat(2) for testing
|
||||
permissions for a file (bnc#509105)
|
||||
|
Reference in New Issue
Block a user