]> git.pld-linux.org Git - packages/calc.git/blobdiff - calc.spec
- run test suite
[packages/calc.git] / calc.spec
index 6394083d753ee5222e7997f486b6461e18a450a1..5cf6ff27986118db9a3110d1e153ff8dd4b0c391 100644 (file)
--- a/calc.spec
+++ b/calc.spec
@@ -1,16 +1,18 @@
 #
 # 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.3.3
-Release:       1
+Version:       2.12.4.0
+Release:       2.1
 License:       LGPL v2.1+
 Group:         Applications/Math
 Source0:       http://www.isthe.com/chongo/src/calc/%{name}-%{version}.tar.bz2
-# Source0-md5: 2b6b511bba836653a444094622e65041
+# Source0-md5: 2ef56695837c6e501ca80b64e0be0db6
 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
@@ -49,6 +51,7 @@ programach.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__make} -j1 \
@@ -59,6 +62,8 @@ programach.
        READLINE_INCLUDE=%{_includedir} \
        SCRIPTDIR=%{_datadir}/calc/cscript
 
+%{?with_tests:%{__make} tests}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
This page took 0.081201 seconds and 4 git commands to generate.