| 1 | Summary: GNU Bash |
|---|
| 2 | Name: bash |
|---|
| 3 | Version: 4.0 |
|---|
| 4 | Release: 2 |
|---|
| 5 | Group: System Environment/Base |
|---|
| 6 | License: GPLv2 |
|---|
| 7 | Distribution: LightCube OS |
|---|
| 8 | Vendor: LightCube Solutions |
|---|
| 9 | URL: http://www.gnu.org/software/bash |
|---|
| 10 | Source0: http://dev.lightcube.us/~jhuntwork/sources/%{name}/%{name}-%{version}.tar.gz |
|---|
| 11 | Patch0: http://dev.lightcube.us/~jhuntwork/sources/%{name}/%{name}-%{version}-fixes-4.patch |
|---|
| 12 | Patch1: http://dev.lightcube.us/~jhuntwork/sources/%{name}/%{name}-%{version}-rpm_requires-1.patch |
|---|
| 13 | |
|---|
| 14 | Requires: glibc, ncurses, readline |
|---|
| 15 | |
|---|
| 16 | BuildRequires: digest(%{SOURCE0}) = a90a1b5a6db4838483f05438e05e8eb9 |
|---|
| 17 | BuildRequires: digest(%{PATCH0}) = 1712950349a705dabedef6c920422011 |
|---|
| 18 | BuildRequires: digest(%{PATCH1}) = 725983bd3d3356134494d8a1ec6cf63f |
|---|
| 19 | |
|---|
| 20 | %package doc |
|---|
| 21 | Summary: Bash Documentation |
|---|
| 22 | |
|---|
| 23 | %description |
|---|
| 24 | %{name} is an sh-compatible shell that incorporates useful features from the |
|---|
| 25 | Korn shell (ksh) and C shell (csh). |
|---|
| 26 | |
|---|
| 27 | %description doc |
|---|
| 28 | Extensive documentation for the GNU Bash shell |
|---|
| 29 | |
|---|
| 30 | %prep |
|---|
| 31 | %setup -q |
|---|
| 32 | %patch0 -p1 |
|---|
| 33 | %patch1 -p1 |
|---|
| 34 | |
|---|
| 35 | %build |
|---|
| 36 | ./configure --prefix=/usr --bindir=/bin --without-bash-malloc \ |
|---|
| 37 | --htmldir=/usr/share/doc/%{name}-%{version} --with-installed-readline |
|---|
| 38 | make |
|---|
| 39 | #sed -i 's/LANG/LC_ALL/' tests/intl.tests |
|---|
| 40 | #sed -i 's@tests@& </dev/tty@' tests/run-test |
|---|
| 41 | #chown -Rv nobody ./ |
|---|
| 42 | #su nobody -s /bin/bash -c "make tests" |
|---|
| 43 | |
|---|
| 44 | %install |
|---|
| 45 | make DESTDIR=%{buildroot} install |
|---|
| 46 | ln -vs bash %{buildroot}/bin/sh |
|---|
| 47 | rm -f %{buildroot}/usr/share/info/dir |
|---|
| 48 | %find_lang %{name} |
|---|
| 49 | |
|---|
| 50 | %clean |
|---|
| 51 | rm -rf %{buildroot} |
|---|
| 52 | |
|---|
| 53 | %post doc |
|---|
| 54 | /usr/bin/install-info %{_infodir}/bash.info %{_infodir}/dir |
|---|
| 55 | |
|---|
| 56 | %preun doc |
|---|
| 57 | /usr/bin/install-info --delete %{_infodir}/bash.info %{_infodir}/dir |
|---|
| 58 | |
|---|
| 59 | %files -f %{name}.lang |
|---|
| 60 | %defattr(-,root,root) |
|---|
| 61 | /bin/bash |
|---|
| 62 | /bin/bashbug |
|---|
| 63 | /bin/sh |
|---|
| 64 | /usr/share/man/man1/bash.1 |
|---|
| 65 | /usr/share/man/man1/bashbug.1 |
|---|
| 66 | |
|---|
| 67 | %files doc |
|---|
| 68 | /usr/share/doc/%{name}-%{version} |
|---|
| 69 | /usr/share/info/bash.info |
|---|
| 70 | |
|---|
| 71 | %changelog |
|---|
| 72 | * Thu Sat 24 2009 Jeremy Huntwork <jhuntwork@lightcubesolutions.com> - |
|---|
| 73 | - Updated upstream patches |
|---|
| 74 | |
|---|
| 75 | * Thu Aug 13 2009 Jeremy Huntwork <jhuntwork@lightcubesolutions.com> - |
|---|
| 76 | - Initial version |
|---|