]> git.pld-linux.org Git - packages/bash.git/commitdiff
- revision up to 4,
authorkloczek <kloczek@pld-linux.org>
Mon, 3 May 1999 17:44:36 +0000 (17:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added {un}registering info page for bash (added bash-info.patch).

Compiles but must be added patches for linking againsta shared ncurses and
readline and c library (now statically linked).

Changed files:
    bash.spec -> 1.10

bash.spec

index 63edda4bf50d8c074cf7e91647035a63d5eaa83e..f292afb7523f6fc8c24f48baad8c6a78e0d133a1 100644 (file)
--- a/bash.spec
+++ b/bash.spec
@@ -5,7 +5,7 @@ Summary(fr):    GNU Bourne Again Shell (bash)
 Summary(tr):   GNU Bourne Again Shell (bash)
 Name:          bash
 Version:       2.03
-Release:       1
+Release:       4
 Group:         Shells
 Group(pl):     Pow³oki
 Copyright:     GPL
@@ -16,9 +16,13 @@ Patch1:              bash-fixes.patch
 Patch2:                bash-paths.patch
 Patch3:                bash-security.patch
 Patch4:                bash-autoconf.patch
+Patch5:                bash-info.patch
 Prereq:                fileutils
 Prereq:                grep
+Prereq:                /sbin/install-info
+BuildPrereq:   ncurese-devel
 Buildroot:     /tmp/%{name}-%{version}-root
+Obsoletes:     bash2
 
 %description
 Bash is an sh-compatible command language interpreter that
@@ -72,6 +76,7 @@ tasarlanm
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %build
 LDFLAGS="-s" CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
@@ -110,11 +115,15 @@ gzip -9nf $RPM_BUILD_ROOT/usr/{info/bash.info,man/man1/*} \
 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 /usr/info/bash.info.gz /etc/info-dir
 
 %preun
-mv /etc/shells /etc/shells.org
-cat /etc/shells.org | egrep -v "/bin/bash|/bin/rbash" > /etc/shells
-rm -f /etc/shells.org
+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 /usr/info/bash.info.gz /etc/info-dir
+fi
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -132,6 +141,10 @@ rm -rf $RPM_BUILD_ROOT
 /usr/man/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),
This page took 0.175162 seconds and 4 git commands to generate.