#
# TODO: some unpackaged libs, should we pack them as ghosts?
#
+%bcond_without tests
Summary: Arbitrary precision calculator
Summary(pl.UTF-8): Kalkulator operujący na liczbach z dowolną dokładnością
Name: calc
-Version: 2.12.4.0
-Release: 2
+Version: 2.12.7.2
+Release: 1
License: LGPL v2.1+
Group: Applications/Math
Source0: http://www.isthe.com/chongo/src/calc/%{name}-%{version}.tar.bz2
-# Source0-md5: 2ef56695837c6e501ca80b64e0be0db6
+# Source0-md5: 86ba447318108da52e4d9ab93e00aca9
Source1: %{name}.desktop
+Patch0: %{name}-ppc.patch
URL: http://www.isthe.com/chongo/tech/comp/calc/
BuildRequires: readline-devel >= 4.2
BuildRequires: sed >= 4.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define no_install_post_check_so 1
+
%description
Calc is arbitrary precision arithmetic system that uses a C-like
language. Calc is useful as a calculator, an algorithm prototyped and
%prep
%setup -q
+%patch0 -p1
%build
%{__make} -j1 \
READLINE_INCLUDE=%{_includedir} \
SCRIPTDIR=%{_datadir}/calc/cscript
+%{?with_tests:%{__make} check}
+
%install
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
# COPYING is not just LGPL text, only some explanations
-%doc BUGS CHANGES COPYING README
+%doc BUGS CHANGES COPYING README.md
%attr(755,root,root) %{_bindir}/calc
%attr(755,root,root) %{_libdir}/libcalc.so.*.*.*.*
%attr(755,root,root) %{_libdir}/libcustcalc.so.*.*.*.*