Sophie

Sophie

distrib > Mandriva > 2008.0 > i586 > by-pkgid > 7cff454e0ee95c8e77406408756cf858 > files > 6

bc-1.06-21mdv2008.0.src.rpm

%define name	bc
%define version	1.06
%define release %mkrel 21

Summary:	GNU's bc (a numeric processing language) and dc (a calculator)
Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	GPL
URL:		http://www.gnu.org/software/bc/bc.html
Group:		Sciences/Mathematics
Source:		ftp://ftp.gnu.org/gnu/bc/%{name}-%{version}.tar.bz2
Patch0:		bc-1.06-readline42.patch
Patch1:		bc-1.06-fixes.patch
Patch2:		bc-1.06-info-dir-entry.patch
Patch3:		bc-1.06-flex.patch
BuildRequires:	flex ncurses-devel readline-devel
Requires(post):  info-install grep
Requires(preun):info-install grep
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
The bc package includes bc and dc.  Bc is an arbitrary precision numeric
processing arithmetic language.  Dc is an interactive arbitrary precision
stack based calculator, which can be used as a text mode calculator.

Install the bc package if you need its number handling capabilities or
if you would like to use its text mode calculator.

%prep
%setup -q 
%patch0 -p1 -b .readline42
%patch1 -p1 -b .fixes
%patch2 -p1 -b .info-dir-entry
%patch3 -p1 -b .flex

# don't bother with autoconf et al.
touch aclocal.m4
find . -name Makefile.in | xargs touch

%build
%configure --with-readline
make LDFLAGS=-s

%install
rm -rf $RPM_BUILD_ROOT
%{makeinstall}
mkdir -p $RPM_BUILD_ROOT/etc/profile.d

%clean
rm -rf $RPM_BUILD_ROOT

%post
%_install_info bc.info
%_install_info dc.info

%preun
%_remove_install_info bc.info
%_remove_install_info dc.info

%files
%defattr(-,root,root)
%doc COPYING COPYING.LIB FAQ AUTHORS NEWS README
%{_bindir}/bc
%{_bindir}/dc
%{_mandir}/man1/bc.1*
%{_mandir}/man1/dc.1*
%{_infodir}/bc.info*
%{_infodir}/dc.info*




%changelog
* Thu Aug 23 2007 Thierry Vignaud <tvignaud@mandriva.com> 1.06-21mdv2008.0
+ Revision: 69908
- kill file require on info-install


* Wed Jan 10 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.06-20mdv2007.0
+ Revision: 107132
- cope with new flex

* Tue Sep 19 2006 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.06-19mdv2007.0
- Rebuild

* Sat May 13 2006 Stefan van der Eijk <stefan@eijk.nu> 1.06-18mdk
- rebuild for sparc

* Sat Dec 31 2005 Mandriva Linux Team <http://www.mandrivaexpert.com/> 1.06-17mdk
- Rebuild

* Fri Aug 12 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.06-16mdk
- fix rpmlint errors (PreReq)

* Fri Aug 12 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.06-15mdk
- fix rpmlint errors (PreReq)

* Thu Jan 20 2005 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.06-14mdk
- rebuild for new readline
- fix summary-ended-with-dot

* Sat May 08 2004 Robert Vojta <robert.vojta@mandrake.cz> 1.06-13mdk
- last change reverted - do not change default behavior of these tools!

* Thu May 06 2004 Erwan velu <erwan@mandrakesoft.com> 1.06-12mdk
- Adding alias to run bc in math mode. (1 / 2) will give 0.5 as result and not 0 !