File bash.spec of Package bash
Name: bash
# List of additional build dependencies
#BuildRequires: gcc-c++ libxml2-devel
Version: 3.2
Release: 1
License: GPL v2 or later
Source: bash-3.2.tar.gz
Group: System/Base
Summary: Bash
Patch: bash-3.2-fixes-8.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The Bourne-Again SHell, used as the default shell and in many
distributions.
%prep
%setup -q
%patch
%build
# Assume that the package is built by plain 'make' if there's no ./configure.
# This test is there only because the wizard doesn't know much about the
# package, feel free to clean it up
./configure --prefix=/usr --bindir=/bin \
--without-bash-malloc --with-installed-readline ac_cv_func_working_mktime=yes
make
%install
make DESTDIR=%buildroot install
ln -sv bash %buildroot/bin/sh
# Write a proper %%files section and remove these two commands and
# the '-f filelist' option to %%files
echo '%%defattr(-,root,root)' >filelist
find %buildroot -type f -printf '/%%P*\n' >>filelist
%clean
rm -rf %buildroot
%files -f filelist
%defattr(-,root,root)
# This is a place for a proper filelist:
# /usr/bin/bash
# You can also use shell wildcards:
# /usr/share/bash/*
# This installs documentation files from the top build directory
# into /usr/share/doc/...
# %doc README COPYING
# The advantage of using a real filelist instead of the '-f filelist' trick is
# that rpmbuild will detect if the install section forgets to install
# something that is listed here
%changelog
* Wed Nov 26 2008 bravoall1552@yahoo.com
- packaged bash version 3.2 using the buildservice spec file wizard