]> git.pld-linux.org Git - packages/bash.git/blobdiff - bash.spec
- BuildRequires: autoconf
[packages/bash.git] / bash.spec
index 3e2896312324598fbed43f2a64fcf90fb38d9695..9826462cd355c588eddae59147638baad41941c3 100644 (file)
--- a/bash.spec
+++ b/bash.spec
 Summary:       GNU Bourne Again Shell (bash)
-Summary(pl):   GNU Bourne Again Shell (bash)
 Summary(de):   GNU Bourne Again Shell (bash)
-Summary(fr):   GNU Bourne Again Shell (bash)
+Summary(fr):   Le shell Bourne Again de GNU
+Summary(pl):   GNU Bourne Again Shell (bash)
 Summary(tr):   GNU Bourne Again Shell (bash)
 Name:          bash
-Version:       2.03
-Release:       4
-Group:         Shells
-Group(pl):     Pow³oki
-Copyright:     GPL
+Version:       2.05
+Release:       6
+License:       GPL
+Group:         Applications/Shells
+Group(de):     Applikationen/Shells
+Group(pl):     Aplikacje/Pow³oki
 Source0:       ftp://prep.ai.mit.edu/pub/gnu/bash/%{name}-%{version}.tar.gz
-Source1:       bashrc
-Patch0:                bash-arm.patch
-Patch1:                bash-fixes.patch
-Patch2:                bash-paths.patch
-Patch3:                bash-security.patch
-Patch4:                bash-autoconf.patch
-Patch5:                bash-info.patch
-Prereq:                fileutils
+Source1:       %{name}rc
+Source2:       %{name}-skel-.bash_logout
+Source3:       %{name}-skel-.bash_profile
+Source4:       %{name}-skel-.bashrc
+Patch0:                %{name}-paths.patch
+Patch1:                %{name}-security.patch
+Patch2:                %{name}-autoconf.patch
+Patch3:                %{name}-info.patch
+Patch4:                %{name}-profile.patch
+Patch5:                %{name}-requires.patch
+Patch6:                %{name}-compat.patch
+Patch7:                %{name}-shellfunc.patch
+Patch8:                http://www.t17.ds.pwr.wroc.pl/~misiek/ipv6/bash-2.05-ipv6-20010418.patch.gz
+Patch9:                %{name}-DESTDIR.patch
+Patch10:       %{name}-rlimit_locks.patch
+Patch11:       %{name}-sighup.patch
+Patch12:       %{name}-tmpfile.patch
+BuildRequires: ncurses-devel >= 5.2
+BuildRequires: readline-devel >= 4.2
+BuildRequires: glibc-devel >= 2.2
+%if %{!?_without_static:1}%{?_without_static:0}
+# Require static library only for static build
+BuildRequires: ncurses-static >= 5.2
+BuildRequires: readline-static >= 4.2
+BuildRequires: glibc-static >= 2.2
+%endif
+BuildRequires: bison
+BuildRequires: autoconf
 Prereq:                grep
-Prereq:                /sbin/install-info
-BuildPrereq:   ncurses-devel
-Buildroot:     /tmp/%{name}-%{version}-root
+Prereq:                fileutils
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Obsoletes:     bash-doc
 Obsoletes:     bash2
+Obsoletes:     bash2-doc
+Obsoletes:     etcskel
 
 %description
-Bash is an sh-compatible command language interpreter that
-executes commands read from the standard input or from a
-file.  Bash also incorporates useful features from the
-Korn and C shells (ksh and csh).
-
-Bash is ultimately intended to be a conformant implementation
-of the IEEE Posix Shell and Tools specification (IEEE
-Working Group 1003.2).
-
-%description -l pl
-Bash jest zaawansowanym shellem, który wykonuje komendy czytane ze
-standardowego wej¶cia (stdin) lub z pliku. Posiada w³a¶ciwo¶ci 
-shelli Korn i C (ksh i csh). 
-
-Bash ma równie¿ zaimplementowany IEEE Posix Shell oraz jest zgodny ze 
-specyfikacj± - IEEE Working Group 1003.2.
+Bash is a GNU project sh-compatible shell or command language
+interpreter. Bash (Bourne Again shell) incorporates useful features
+from the Korn shell (ksh) and the C shell (csh). Most sh scripts can
+be run by bash without modification. Bash offers several improvements
+over sh, including command line editing, unlimited size command
+history, job control, shell functions and aliases, indexed arrays of
+unlimited size and integer arithmetic in any base from two to 64. Bash
+is ultimately intended to conform to the IEEE POSIX P1003.2/ISO 9945.2
+Shell and Tools standard. Bash is the default shell for Linux
+Mandrake. You should install bash because of its popularity and power.
+You'll probably end up using it.
 
 %description -l de
-Bash ist ein sh-kompatibler Befehlssprachen-Interpreter, der
-über die Standardeingabe oder eine Datei gelesene Befehle ausführt.
-Bash beinhaltet außerdem nützliche Funktionen der Korn- und der
-C-Shell (ksh und csh).
-
-Bash soll eine kompatible Implementierung der
-'IEEE Posix Shell and Tools Specification' (IEEE
-Working Group 1003.2) sein.
+Bash ist eine sh-kompatible Shell und Kommandosprache aus dem
+GNU-Projekt. Bash (Bourne Again Shell) vereinigt die nützlichen
+Features aus der Korn-Shell (ksh) und der C-Shell (csh). Die meisten
+sh-Skripte laufen ohne Änderungen auf bash. Bash hat viele
+Erweiterungen im Vergleich zur "normalen" sh, wie z.B.
+Kommandozeilenbearbeitung, unbeschränkte Größe der command-history,
+Job-Kontrolle, Shell-Funktionen und -Aliase, unbegrenzt große
+indizierte Arrays und Integer-Arithmetik in einer Basis von 2 bis 64.
+Hauptziel von bash ist es, den IEEE POSIX P1003.2/ISO 9945.2 Shell-
+und Tools-Standard einzuhalten. Bash ist die Standard-Shell für Linux
+Mandrake.
 
 %description -l fr
-Bash est un interpréteur de commande compatible sh qui exécute
-les commandes lues sur l'entrée standard ou depuis un fichier.
-Bash inclue également des fonctionnalités utiles des shells Korn et C
-(ksh et csh).
+Bash est un shell (interpréteur de commande) du projet GNU, compatible
+avec le shell historique sh. Bash (Bourne Again SHell) comprend de
+nombreuses fonctionnalités du Korn SHell (ksh) et du C SHell (csh). La
+plupart des scripts sh sont exécutables sans modifications. Bash
+comprend nombre d'améliorations par rapport à sh : édition de la ligne
+de commande, historique illimité, contrôle des processus
+d'arrière-plan, fonctions de shell, alias, tableaux indexés de taille
+illimitée et calcul sur des entiers dans n'importe quelle base de 2 à
+64. Bash est conforme au standard IEEE POSIX P1003.2/ISO 9945.2 Shell
+and Tools. Bash est le shell par défaut de Mandrake. Vous devriez
+l'installer du fait de sa puissance et de sa popularité. Vous finirez
+probablement par l'utiliser.
 
-Bash est prévu pour être une implémentation de shell conforme la
-spécification Posix IEEE sur les shell et les outils (Groupe de 
-travail IEEE 1003.2).
+%description -l pl
+Bash (Bourne Again SHell) jest projektem GNU pow³oki kompatybilnej z
+sh oraz interpretera jêzyka poleceñ. Posiada u¿yteczne w³a¶ciwo¶ci
+pow³ok Korn (ksh) i C (csh). Wiêkszo¶æ skryptów sh mo¿e byæ
+uruchamiana w bashu bez modyfikacji. Oferuje on kilka ulepszeñ w
+stusunku do sh, w³±czaj±c edycjê linii poleceñ, nieograniczony rozmiar
+historii poleceñ, funkcje i aliasy, indeksowane tablice
+nieograniczonych rozmiarów oraz arytmetykê ca³kowitoliczbow± o
+dowolnej podstawie od 2 do 64. W zamierzeniu ostatecznie ma byæ zgodny
+ze standardem IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools.
 
 %description -l tr
-Bash standart giriþten ya da bir dosyadan komut okuyup çalýþtýran sh uyumlu
-bir komut dili yorumlayýcýsýdýr. Ayný zamanda Korn ve C kabuklarýnýn (ksh ve
-csh) kullanýþlý özelliklerini de kapsar. Bash, IEEE Posix Kabuk ve Araç
-ayrýntýlarýna (IEEE Working Group 1003.2) uyumlu bir uygulama olarak
-tasarlanmýþtýr.
+Bash standart giriþten ya da bir dosyadan komut okuyup çalýþtýran sh
+uyumlu bir komut dili yorumlayýcýsýdýr. Ayný zamanda Korn ve C
+kabuklarýnýn (ksh ve csh) kullanýþlý özelliklerini de kapsar. Bash,
+IEEE Posix Kabuk ve Araç ayrýntýlarýna (IEEE Working Group 1003.2)
+uyumlu bir uygulama olarak tasarlanmýþtýr.
+
+%package static
+Summary:       Staticly linked GNU Bourne Again Shell (bash)
+Summary(pl):   Statycznie zlinkowany GNU Bourne Again Shell (bash)
+Group:         Applications/Shells
+Group(de):     Applikationen/Shells
+Group(pl):     Aplikacje/Pow³oki
+Requires:      %{name}
+Prereq:                grep
+Prereq:                fileutils
+
+%description static
+Bash is a GNU project sh-compatible shell or command language
+interpreter. Bash (Bourne Again shell) incorporates useful features
+from the Korn shell (ksh) and the C shell (csh). Most sh scripts can
+be run by bash without modification. Bash offers several improvements
+over sh, including command line editing, unlimited size command
+history, job control, shell functions and aliases, indexed arrays of
+unlimited size and integer arithmetic in any base from two to 64. Bash
+is ultimately intended to conform to the IEEE POSIX P1003.2/ISO 9945.2
+Shell and Tools standard. Bash is the default shell for Linux
+Mandrake. You should install bash because of its popularity and power.
+You'll probably end up using it. This packege contains staticly linked
+version of bash.
+
+%description static -l pl
+Bash jest zaawansowanym shellem, który wykonuje komendy czytane ze
+standardowego wej¶cia (stdin) lub z pliku. Posiada w³a¶ciwo¶ci pow³ok
+Korn i C (ksh i csh). Bash ma równie¿ zaimplementowany IEEE Posix
+Shell oraz jest zgodny ze specyfikacj± - IEEE Working Group 1003.2. W
+tym pakiecie jest statycznie zlinkowany bash.
 
 %prep
-%setup -q
+%setup -q
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
+%patch12 -p1
+
+echo %{version} > _distribution
+echo %{release} > _patchlevel
 
 %build
-LDFLAGS="-s" CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure %{_target} \
-       --prefix=/usr \
+autoconf
+for mode in %{!?_without_static:static} shared; do
+%configure \
        --enable-alias \
        --enable-help-builtin \
        --enable-history \
        --enable-job-control \
        --enable-restricted \
        --enable-readline \
-       --with-curses
+       --with-curses \
+       --enable-extended-glob \
+       --enable-dparen-arithmetic \
+       `[ "$mode" = "static" ] && echo "--enable-static-link"` \
+       --with-installed-readline
 
-make
+%{__make} DEFS="-DHAVE_CONFIG_H -D_GNU_SOURCE"
+
+[ "$mode" = "static" ] && mv -f bash bash.static || :
+done
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/{bin,etc/skel}
 
-install -d $RPM_BUILD_ROOT/{usr,bin,etc}
-make prefix=$RPM_BUILD_ROOT/usr install
-
-mv $RPM_BUILD_ROOT/usr/bin/bash $RPM_BUILD_ROOT/bin/bash
-rm -f $RPM_BUILD_ROOT/usr/bin/installed-bash
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-rm -f $RPM_BUILD_ROOT/usr/bin/bash.old
-
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/bashrc
+mv -f $RPM_BUILD_ROOT%{_bindir}/bash $RPM_BUILD_ROOT/bin
+%{?_without_static:#}install   bash.static $RPM_BUILD_ROOT/bin
 
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/bashrc
 echo .so bash.1 > $RPM_BUILD_ROOT%{_mandir}/man1/rbash.1
 
 ln -sf bash $RPM_BUILD_ROOT/bin/rbash
 
-gzip -9nf $RPM_BUILD_ROOT/usr/{info/bash.info,man/man1/*} \
-       NEWS README 
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/skel/.bash_logout
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/skel/.bash_profile
+install %{SOURCE4} $RPM_BUILD_ROOT/etc/skel/.bashrc
+
+gzip -9nf NEWS README doc/{FAQ,INTRO}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %post
-mv /etc/shells /etc/shells.org
-(cat /etc/shells.org; echo "/bin/bash"; echo "/bin/rbash" ) | sort -u > /etc/shells
-rm -f /etc/shells.org
-/sbin/install-info %{_infodir}/bash.info.gz /etc/info-dir
+if [ ! -f /etc/shells ]; then
+       echo "/bin/bash" > /etc/shells
+       echo "/bin/rbash" >> /etc/shells
+else
+       if ! grep -q '^/bin/bash$' /etc/shells; then
+               echo "/bin/bash" >> /etc/shells
+       fi
+       if ! grep -q '^/bin/rbash$' /etc/shells; then
+               echo "/bin/rbash" >> /etc/shells
+       fi
+fi
+
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%post static
+if [ ! -f /etc/shells ]; then
+       echo "/bin/bash.static" > /etc/shells
+else
+       if ! grep -q '^/bin/bash.static$' /etc/shells; then
+               echo "/bin/bash.static" >> /etc/shells
+       fi
+fi
 
 %preun
 if [ "$1" = "0" ]; then
-       mv /etc/shells /etc/shells.org
-       cat /etc/shells.org | egrep -v "/bin/bash|/bin/rbash" > /etc/shells
-       rm -f /etc/shells.org
-       /sbin/install-info --delete %{_infodir}/bash.info.gz /etc/info-dir
+       grep -v /bin/bash /etc/shells | grep -v /bin/rbash > /etc/shells.new
+       mv -f /etc/shells.new /etc/shells
 fi
 
-%clean
-rm -rf $RPM_BUILD_ROOT
+%preun static
+if [ "$1" = "0" ]; then
+       grep -v /bin/bash.static /etc/shells > /etc/shells.new
+       mv -f /etc/shells.new /etc/shells
+fi
+
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %files
 %defattr(644,root,root,755)
-%doc {NEWS,README}.gz
+%doc {NEWS,README}.gz doc/{FAQ,INTRO}.gz
 
-/etc/bashrc
+%config %verify(not md5 size mtime) %{_sysconfdir}/bashrc
+%config(noreplace,missingok) %verify(not md5 size mtime) /etc/skel/.bash_logout
+%config(noreplace,missingok) %verify(not md5 size mtime) /etc/skel/.bash_profile
+%config(noreplace,missingok) %verify(not md5 size mtime) /etc/skel/.bashrc
 
-%attr(755,root,root) /bin/*
-%attr(755,root,root) /usr/bin/*
+%attr(755,root,root) /bin/bash
+%attr(755,root,root) /bin/rbash
+%attr(755,root,root) %{_bindir}/bashbug
 
 %{_infodir}/bash.info.gz
 %{_mandir}/man1/*
 
-%changelog
-* Mon May  3 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [2.03-4]
-- added {un}registering info page for bash (added bash-info.patch).
-
-* Mon Feb 22 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [2.03-1]
-- removed /bin/sh link from bash (this is now provided by pdksh),
-- removed man group from man pages,
-- gzipping insterad bzipping2 man pages,
-- rewrited %post, %preun,
-- removed %config and %verify rules from /etc/bashrc (all extensions can be
-  added by adding /etc/profile.d/*.sh scripts).
-
-* Sun Sep 05 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [2.02.1-1d]
-- fixed files permissions,
-- build with restricted shell support.
-
-* Wed Jun 17 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [14.7-9d]
-- build against glibc-2.1,
-- translation modified for pl,
-- added %defattr support,
-- build from non root's account.
-
-* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Fri Nov 07 1997 Donnie Barnes <djb@redhat.com>
-- added signal handling patch from Dean Gaudet <dgaudet@arctic.org> that
-  is based on a change made in bash 2.0.  Should fix some early exit
-  problems with suspends and fg.
-
-* Mon Oct 20 1997 Donnie Barnes <djb@redhat.com>
-- added %clean
-
-* Mon Oct 20 1997 Erik Troan <ewt@redhat.com>
-- added comment explaining why install-info isn't used
-- added mips patch 
-
-* Fri Oct 17 1997 Donnie Barnes <djb@redhat.com>
-- added BuildRoot
-
-* Tue Jun 03 1997 Erik Troan <ewt@redhat.com>
-- built against glibc
+%{?_without_static:#}%files static
+%{?_without_static:#}%defattr(644,root,root,755)
+%{?_without_static:#}%attr(755,root,root) /bin/bash.static
This page took 0.035026 seconds and 4 git commands to generate.