Summary: libbash is a tool that enables bash dynamic-like shared libraries.
Name: @PACKAGE@
Version: @VERSION@
Release: 0
License: GPL
Group: misc
Source: http://ufpr.dl.sourceforge.net/sourceforge/libbash/@PACKAGE@-@VERSION@.tar.bz2
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires: bash >= 3.0
URL: http://libbash.sf.net

%description
libbash is a tool that enables bash dynamic-like shared libraries.
Actually its a tool for managing bash scripts that contain functions you may
want to use in various scripts.

%prep
%setup -q

%build
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var 
make

%install
rm -rf %{buildroot}
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/*
%{_sbindir}/*
%{_libdir}/*
/usr/share/aclocal/*
/usr/share/man
%doc /usr/share/doc/%{name}

# update libbash library cache
%post
/usr/sbin/ldbashconfig

%changelog
* Mon Apr 02 2007 Hai Zaar <haizaar@gmail.com>
- Fixed URL

* Mon Jan 09 2006 Hai Zaar <haizaar@gmail.com>
- Added dependency for bash-3.0 and higher
- Packaging man page more explicitly
- Running ldbashconfig in %post section

* Mon Jan 02 2006 Hai Zaar <haizaar@gmail.com>
- Initial spec file
