-Summary: GNU bc
-Summary(de): GNU bc
-Summary(fr): GNU bc
-Summary(pl): Kalkulator bc GNU
-Summary(tr): GNU hesap makinasý
-Name: bc
-Version: 1.05a
-Release: 6
-Copyright: GPL
-Group: Applications/Math
+Summary: GNU's bc (a numeric processing language) and dc (a calculator)
+Summary(de): GNUs bc (eine Zahlenverarbeitungssprache) und dc (ein Rechner)
+Summary(fr): GNU bc
+Summary(pl): GNU bc (jêzyk obliczeñ numerycznych) i dc (kalkulator)
+Summary(tr): GNU hesap makinasý
+Name: bc
+Version: 1.05a
+Release: 10
+License: GPL
+Group: Applications/Math
Group(pl): Aplikacje/Matematyczne
-Source: ftp://prep.ai.mit.edu/pug/gnu/%{name}-%{version}.tar.gz
-Patch0: bc-info.patch
-Prereq: /sbin/install-info
-Prereq: grep
-Buildroot: /tmp/%{name}-%{version}-root
+Source0: ftp://prep.ai.mit.edu/pug/gnu/bc/%{name}-%{version}.tar.gz
+Patch0: bc-info.patch
+Patch1: bc-DESTDIR.patch
+Prereq: /usr/sbin/fix-info-dir
+BuildRequires: ncurses-devel >= 5.0
+BuildRequires: readline-devel >= 4.1
+Buildroot: /tmp/%{name}-%{version}-root
%description
-bc is a text mode calculator of sorts. It has many extended
-features such as base translation. It can also accept input
-from stdin and return output. dc is the RPN version.
+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.
%description -l de
-bc ist eine Art Textmodus-Rechner, der viele erweiterte Funktionen
-wie Basisübersetzung enthält. Er kann auch Eingaben von
-stdin annehmen und die Ergebnisse ausgeben. dc ist die RPN-Version.
+Das bc-Paket enthält bc und dc. Bc ist eine Zahlenverarbeitungssprache mit
+beliebiger Genauigkeit. Dc ist ein interaktiver, Stapelbasierter Rechner
+mit beliebiger Genauigkeit, der im Textmodus benutzt werden kann.
+Installieren Sie bc, wenn Sie seine Zahlenverarbeitungsfähigkeiten
+brauchen, oder wenn Sie einen Textmodus-Rechner haben wollen.
%description -l fr
bc est est un outil de calcul en mode texte. Il a des fonctionnalités
-étendues comme la conversion de base. il peut aussi accepter l'entrée
-sur stdin et retourner le résultat. dc est la version RPN.
+étendues comme la conversion de base. il peut aussi accepter l'entrée sur
+stdin et retourner le résultat. dc est la version RPN.
%description -l pl
-Bc to kalkulator pracuj±cy w trybie tekstowym, który posiada wiele
-rozbudowanych funkcji. W czasie pracy mo¿e pobieraæ dane ze standardowego
-wej¶cia (stdin) i wysy³aæ je na standardowe wyj¶cie (stdout).
+Pakiet bc zawiera w sobie programy bc i dc. Bc jest oferuje jêzyk obliczeñ
+numerycznych w którym mo¿na okre¶liæ precyzjê obliczeñ. Dc jest natomiat
+interakcyjnym bazuj±cym na notacji RPN kalkulatorem w którym tak¿e mozan z
+góry okre¶liæ precyzjê obliczeñ.
%description -l tr
bc metin ekranda çalýþan bir hesap makinasýdýr. Taban dönüþümü gibi ileri
%prep
%setup -q -n %{name}-1.05
%patch0 -p1
+%patch1 -p1
%build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure \
- --prefix=/usr
+aclocal
+LDFLAGS="-s"; export LDFLAGS
+%configure \
+ --with-readline
make
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/usr/{bin,man/man1}
-make prefix=$RPM_BUILD_ROOT/usr install
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
-gzip -9nf $RPM_BUILD_ROOT/usr/{info/dc.info,man/man1/*}
+make install DESTDIR=$RPM_BUILD_ROOT
+
+gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/dc.info,%{_mandir}/man1/*}
%post
-/sbin/install-info /usr/info/dc.info.gz /etc/info-dir
+%{_sbindir}/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-%preun
-if [ $1 = 0 ]; then
- /sbin/install-info --delete /usr/info/dc.info.gz /etc/info-dir
-fi
+%postun
+%{_sbindir}/fix-info-dir -c %{_infodir} >/dev/null 2>&1
%files
%defattr(644,root,root,755)
-%attr(755,root,root) /usr/bin/*
-/usr/man/man1/*
-/usr/info/dc.info.gz
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man1/*
+%{_infodir}/dc.info*
%clean
rm -rf $RPM_BUILD_ROOT
-
-%changelog
-* Thu Apr 22 1999 Piotr Czerwiñski <pius@pld.org.pl>
- [1.05a-6]
-- added Group(pl),
-- recompiled on rpm 3.
-
-* Tue Dec 29 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [1.05a-3]
-- standarized {un}registering info pages (added bc-info.patch),
-- added gzipping man pages.
-
-* Sun Sep 27 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [1.05a-2]
-- changed Buildroot to /tmp/%%{name}-%%{version}-root,
-- added using %%{name} and %%{version} in Source,
-- added "rm -rf $RPM_BUILD_ROOT on top %install,
-- simplifications in %files nad %install,
-- added full %attr description in %files.
-
-* Wed Jun 17 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-- added pl translation,
-- added %defattr support,
-- build from non root's account.
-
-* Sun Jun 07 1998 Prospector System <bugs@redhat.com>
-- translations modified for de
-
-* Thu Jun 04 1998 Jeff Johnson <jbj@redhat.com>
-- updated to 1.05 with build root.
-
-* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Tue Apr 21 1998 Erik Troan <ewt@redhat.com>
-- got upgrades of info entry working (I hope)
-
-* Sun Apr 05 1998 Erik Troan <ewt@redhat.com>
-- fixed incorrect info entry
-
-* Wed Oct 15 1997 Donnie Barnes <djb@redhat.com>
-- added install-info support
-
-* Thu Sep 11 1997 Donald Barnes <djb@redhat.com>
-- upgraded from 1.03 to 1.04
-
-* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
-- built against glibc