X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcalc.git;a=blobdiff_plain;f=calc.spec;h=5bbb083a6ee04ea3a15958ef6d3ed142b2e26250;hp=dccb26f06301d95e15aab387868af357516d2bc1;hb=4093b357ad73f30a0ed9120b4c2411acb270c414;hpb=ca4f79fdf3fa19be5aadcc05fd76a132b1cba2b9 diff --git a/calc.spec b/calc.spec index dccb26f..5bbb083 100644 --- a/calc.spec +++ b/calc.spec @@ -1,18 +1,25 @@ +# +# 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.2.1 +Version: 2.12.7.2 Release: 1 -License: LGPL v2.1 +License: LGPL v2.1+ Group: Applications/Math -Source0: http://www.isthe.com/chongo/src/calc/%{name}-%{version}.tar.gz -# Source0-md5: c399c7b7d71d756c5eaef77e414a732b +Source0: http://www.isthe.com/chongo/src/calc/%{name}-%{version}.tar.bz2 +# 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 @@ -46,6 +53,7 @@ programach. %prep %setup -q +%patch0 -p1 %build %{__make} -j1 \ @@ -56,6 +64,8 @@ programach. READLINE_INCLUDE=%{_includedir} \ SCRIPTDIR=%{_datadir}/calc/cscript +%{?with_tests:%{__make} check} + %install rm -rf $RPM_BUILD_ROOT @@ -74,10 +84,13 @@ find $RPM_BUILD_ROOT%{_datadir}/calc -type f | \ %clean rm -rf $RPM_BUILD_ROOT +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + %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.*.*.*.*