commit calc for openSUSE:Factory
Hello community, here is the log from the commit of package calc for openSUSE:Factory checked in at 2017-08-01 09:25:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/calc (Old) and /work/SRC/openSUSE:Factory/.calc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "calc" Tue Aug 1 09:25:04 2017 rev:12 rq:512977 version:2.12.6.1 Changes: -------- --- /work/SRC/openSUSE:Factory/calc/calc.changes 2016-05-19 12:15:15.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.calc.new/calc.changes 2017-08-01 09:25:05.742095451 +0200 @@ -1,0 +2,10 @@ +Sun Jul 23 21:32:46 UTC 2017 - dnh@opensuse.org + +- update to 2.12.6.1 + +------------------------------------------------------------------- +Tue Jun 6 12:00:05 UTC 2016 - dnh@opensuse.org + +- update to 2.12.5.6 + +------------------------------------------------------------------- Old: ---- calc-2.12.5.4.tar.bz2 New: ---- calc-2.12.6.1.tar.bz2 what-is-calc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ calc.spec ++++++ --- /var/tmp/diff_new_pack.LSB1jn/_old 2017-08-01 09:25:06.949925228 +0200 +++ /var/tmp/diff_new_pack.LSB1jn/_new 2017-08-01 09:25:06.961923538 +0200 @@ -1,7 +1,7 @@ # # spec file for package calc # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %define soname 2 %define libname libcalc%{soname} Name: calc -Version: 2.12.5.4 +Version: 2.12.6.1 Release: 0 Summary: C-style arbitrary precision calculator License: LGPL-2.1 @@ -29,6 +29,7 @@ Source1: http://www.isthe.com/chongo/src/calc/checksum.sha-256 Source2: README.openSUSE Source3: calc-rpmlintrc +Source10: http://www.isthe.com/chongo/src/calc/what-is-calc # patch to replace a macro possibly dereferencing an undefined value # by an inline-function Patch0: %{name}-qmath-sequence-point.patch @@ -78,6 +79,16 @@ %patch0 -p1 cp "%{SOURCE2}" . +cp "%{SOURCE3}" what-is-calc.txt + +sed -i '/${CC} ${LIBCUSTCALC_SHLIB} ${CUSTCALC_OBJ}/a\ +\tln -s $@ libcustcalc.so +' custom/Makefile + +sed -i.orig -e 's@^\./myfile@\\a./myfile@g' calc.man + +%define _NC_FLAGS %(ncursesw6-config --cflags) +%define _NC_LIBS %(ncursesw6-config --libs) %define makevars \\\ BINDIR=%{_bindir} \\\ @@ -87,8 +98,10 @@ CALC_INCDIR=%{_includedir}/calc \\\ MANDIR=%{_mandir}/man1 \\\ HAVE_FPOS="-DHAVE_NO_FPOS" \\\ - LD_SHARE="" \\\ - EXTRA_CFLAGS="%{optflags} -g -fno-strict-aliasing" + USE_READLINE="-DUSE_READLINE" \\\ + READLINE_LIB="-lreadline -lhistory %{_NC_LIBS} -L./custom -lcustcalc" \\\ + LD_SHARE="%{_NC_LIBS}" \\\ + EXTRA_CFLAGS="%{optflags} -g -fno-strict-aliasing %{_NC_FLAGS}" %build make -e %{makevars} @@ -98,10 +111,17 @@ %install make T=%{buildroot} %{makevars} install +ln -s libcalc.so.%{version} %{buildroot}%{_libdir}/libcalc.so.2 +ln -s libcustcalc.so.%{version} %{buildroot}%{_libdir}/libcustcalc.so.2 +rmdir %{buildroot}%{_includedir}/calc/custom # dummy-install some docs etc. to create the symlinks install -d -m 755 %{buildroot}%{_docdir}/%{name} -install -m 644 BUGS COPYING COPYING-LGPL CHANGES %{buildroot}%{_docdir}/%{name}/ +install -m 644 \ + BUGS CHANGES COPYING COPYING-LGPL HOWTO.INSTALL LIBRARY \ + README.FIRST README.md README.openSUSE \ + custom/CUSTOM_CAL custom/HOW_TO_ADD \ + %{buildroot}%{_docdir}/%{name}/ # create symlinks to the help-dir for the help command, e.g. "help bugs" ln -sf %{_docdir}/%{name}/COPYING \ %{buildroot}%{_datadir}/%{name}/help/COPYING @@ -115,6 +135,10 @@ %{buildroot}%{_datadir}/%{name}/help/changes ln -sf %{_docdir}/%{name}/CHANGES \ %{buildroot}%{_datadir}/%{name}/help/change +ln -sf %{_docdir}/%{name}/CUSTOM_CAL \ + %{buildroot}%{_datadir}/%{name}/help/custom_cal +ln -sf %{_docdir}/%{name}/HOW_TO_ADD \ + %{buildroot}%{_datadir}/%{name}/help/new_custom %fdupes %{buildroot} @@ -124,10 +148,13 @@ %files %defattr(-, root, root) -%doc BUGS CHANGES COPYING COPYING-LGPL README README.openSUSE +%doc BUGS CHANGES COPYING COPYING-LGPL HOWTO.INSTALL LIBRARY +%doc README.FIRST README.md README.openSUSE +%doc custom/CUSTOM_CAL custom/HOW_TO_ADD %{_bindir}/%{name} %{_datadir}/%{name} %doc %{_mandir}/man1/%{name}.1.gz +%doc what-is-calc.txt %files -n %{libname} %defattr(-,root,root) @@ -137,7 +164,7 @@ %files devel %defattr(-, root, root) %doc %attr(644, root, root) BUGS COPYING COPYING-LGPL LIBRARY -%doc sample_many.c sample_rand.c sample.README README README.openSUSE +%doc sample_many.c sample_rand.c sample.README README.md README.openSUSE %{_includedir}/%{name} %{_libdir}/libcalc.so %{_libdir}/libcustcalc.so ++++++ calc-2.12.5.4.tar.bz2 -> calc-2.12.6.1.tar.bz2 ++++++ ++++ 13054 lines of diff (skipped) ++++++ checksum.sha-256 ++++++ --- /var/tmp/diff_new_pack.LSB1jn/_old 2017-08-01 09:25:07.985779244 +0200 +++ /var/tmp/diff_new_pack.LSB1jn/_new 2017-08-01 09:25:07.989778680 +0200 @@ -4,12 +4,6 @@ # # sha256sum filename # -6881d5fc0adf544557efd4c0b2eb57044e5bf1a3878f42666cb82a496b71fdc2 calc-2.12.4.13-11.i686.rpm -aae6c5f2f3b121e093e795967e000900a4f70f49aa2af0040d047469d9bf1ca5 calc-2.12.4.13-11.src.rpm -1e6fd3256bd7bf738fcfe6e2d6a9d8a6bb0f37393aba6020b01d96274419a92c calc-2.12.4.13.tar.bz2 -dbf14329d5e80d02a6bcee7c5709ac1afaa6539d51988f98772b706bc1663c56 calc-2.12.4.14-12.src.rpm -fe97c8ccd5a5c9761ff4d9706721ffd296172cb49da3cbe741c2ec834c0e3665 calc-2.12.4.14-12.x86_64.rpm -12b627ab22dddc56b215c0b10c1fb04f864931e0d337d7facc100ebe9c94ec5c calc-2.12.4.14.tar.bz2 fa4802e364a287c1f074bbbe108effc9cf0a859e49e976d2e03c3ddb08b7bd50 calc-2.12.5.0-12.src.rpm b7bb96b26d42ae40c8cb12f634db0a838f46e54fe9557d26f3097bf1adfcdab6 calc-2.12.5.0-12.x86_64.rpm a0e7b47af38330f188970998c8e5039134dadf6f2e3f2c00d7efdae272a4338d calc-2.12.5.0.tar.bz2 @@ -22,15 +16,26 @@ 198070dc5a427a1eaa5835f3f0848d4df1376e6d96135c17b6e43498dd3aa0d3 calc-2.12.5.4-12.src.rpm ac9e9cbd5a0ab3432f61e49d7f7924a6dcdd905cf04782971c79bfa11b6217d7 calc-2.12.5.4-12.x86_64.rpm a776121efe49f3230a293e28682e52ff6d5f2f1896d3a9b474a51de8c890919e calc-2.12.5.4.tar.bz2 -000353ca45343bfb9c6024017745de5862fc4845427eb7ee2ebe3a59e0826713 calc-debuginfo-2.12.4.13-11.i686.rpm -62d0aa0052e3688076fd6d5d138f133e581b7df5bb0fe9e53fc7db2678a606b5 calc-debuginfo-2.12.4.14-12.x86_64.rpm +753d90537c0cd0e99c68712b33bfd98ed7504e61b4259d81ba94ff783f86e84c calc-2.12.5.6-12.src.rpm +d67c376f4b32d33580a29eb8b3c52b5987a15269db010f09f5bed31d0fab230a calc-2.12.5.6-12.x86_64.rpm +76090203a96d35dd10103112a7ad612f4d9b0526b758f2f49ac5bef02ba7cb39 calc-2.12.5.6.tar.bz2 +9a852f17cce6b48367c0bf11c4d491374e18117b146e7384a9f16c6f85184a7d calc-2.12.6.0-12.src.rpm +bd7f6c3e102db3431a4e229c75509d6219ba48316aef115d52df9be7b847fc7b calc-2.12.6.0-12.x86_64.rpm +18dee9d979d8d397ee4a6f57c494a60790034c0ff109b3c552faff97f1ad7cf2 calc-2.12.6.0.tar.bz2 +2982a89257af8066e13fadacd9d6bb880efbb3d1f3506bc0ce5d3c2f5739447e calc-2.12.6.1-12.src.rpm +5efb924c6f34737af6c78d752ad37782943deca6e5ba1eb55598b7528a820642 calc-2.12.6.1-12.x86_64.rpm +6d3b9237b671e0970c432f5886d467c142b425c713ec3beffb6fd05b6195c4ef calc-2.12.6.1.tar.bz2 a6461f0cea3cb107f97ea6cb585f47baca98610f3616ed7a5c3649750d14d08b calc-debuginfo-2.12.5.0-12.x86_64.rpm 504d16412ed7c9b2f1122220b4187923bbb82615697c2af355ee3abad54b42ad calc-debuginfo-2.12.5.2-12.x86_64.rpm ac0aa872fc3f774d9c7e553f370d628ea98119041500326f3f67595ffd332874 calc-debuginfo-2.12.5.3-12.x86_64.rpm 4f6591a328b50bb10196e5dd6c5c0a0a929f5961a85f0aad79d1939a3723b7d8 calc-debuginfo-2.12.5.4-12.x86_64.rpm -9a0a8c1b483c8cba1eec401f91578da5f12fa08e0aa1c6e48e9e3d7b83c96a55 calc-devel-2.12.4.13-11.i686.rpm -8a3af8c4f77f5717b4eb77304870111d3ce6a4be67c6fd41b3ad87edf3694352 calc-devel-2.12.4.14-12.x86_64.rpm +befb1ef348704f0c4c0a5ebf55b57acf6fa75119e3c8c267379814980ae70e83 calc-debuginfo-2.12.5.6-12.x86_64.rpm +83c7f2728496692f19bab7c957ba9867ed436f5048d595883831b7fdf9db0d31 calc-debuginfo-2.12.6.0-12.x86_64.rpm +e9aac5102f90ec81f8a3ec0d476d6cd89dc44f43823cff4f9415b10e076e8791 calc-debuginfo-2.12.6.1-12.x86_64.rpm e753c5737d2ad7123e15f0817605fe8760c2287bbf261347d0097ca43f24ed99 calc-devel-2.12.5.0-12.x86_64.rpm ca58c8c45878d0b5534ad6bb1f5ce99974b14d349061de512f03f7a818e5c82f calc-devel-2.12.5.2-12.x86_64.rpm 37aa0dea8ad0bb40fd90b5aea1559d83f1992f68f2d14c3379a46e3c85b3cc14 calc-devel-2.12.5.3-12.x86_64.rpm 8bc6c61645d67f4221ae7a9db2db5860bb2dc0f0a86a41dcc377b11df2816996 calc-devel-2.12.5.4-12.x86_64.rpm +91949fd27a789eab99817d93d1e4f12424948bb4910f0a23755cab5fed2fb658 calc-devel-2.12.5.6-12.x86_64.rpm +e79286c4b40913bdac87759dc5bf50b616af68c6fbda3c53c7703d66e311b9fa calc-devel-2.12.6.0-12.x86_64.rpm +97f16cf48b519285f6c8d10f64e56ac5aa4a50f7bfed82b57d2f711482c30930 calc-devel-2.12.6.1-12.x86_64.rpm ++++++ what-is-calc ++++++ What is calc? Calc is an interactive calculator which provides for easy large numeric calculations, but which also can be easily programmed for difficult or long calculations. It can accept a command line argument, in which case it executes that single command and exits. Otherwise, it enters interactive mode. In this mode, it accepts commands one at a time, processes them, and displays the answers. In the simplest case, commands are simply expressions which are evaluated. For example, the following line can be input: 3 * (4 + 1) and the calculator will print: 15 Calc as the usual collection of arithmetic operators +, -, /, * as well as ^ (exponentiation), % (modulus) and // (integer divide). For example: 3 * 19^43 - 1 will produce: 29075426613099201338473141505176993450849249622191102976 Notice that calc values can be very large. For example: 2^23209-1 will print: 402874115778988778181873329071 ... many digits ... 3779264511 The special '.' symbol (called dot), represents the result of the last command expression, if any. This is of great use when a series of partial results are calculated, or when the output mode is changed and the last result needs to be redisplayed. For example, the above result can be modified by typing: . % (2^127-1) and the calculator will print: 47385033654019111249345128555354223304 For more complex calculations, variables can be used to save the intermediate results. For example, the result of adding 7 to the previous result can be saved by typing: curds = 15 whey = 7 + 2*curds Functions can be used in expressions. There are a great number of pre-defined functions. For example, the following will calculate the factorial of the value of 'whey': fact(whey) and the calculator prints: 13763753091226345046315979581580902400000000 The calculator also knows about complex numbers, so that typing: (2+3i) * (4-3i) cos(.) will print: 17+6i -55.50474777265624667147+193.9265235748927986537i The calculator can calculate transcendental functions, and accept and display numbers in real or exponential format. For example, typing: config("display", 70) epsilon(1e-70) sin(1) prints: 0.8414709848078965066525023216302989996225630607983710656727517099919104 Calc can output values in terms of fractions, octal or hexadecimal. For example: config("mode", "fraction"), (17/19)^23 base(16), (19/17)^29 will print: 19967568900859523802559065713/257829627945307727248226067259 0x9201e65bdbb801eaf403f657efcf863/0x5cd2e2a01291ffd73bee6aa7dcf7d1 All numbers are represented as fractions with arbitrarily large numerators and denominators which are always reduced to lowest terms. Real or exponential format numbers can be input and are converted to the equivalent fraction. Hex, binary, or octal numbers can be input by using numbers with leading '0x', '0b' or '0' characters. Complex numbers can be input using a trailing 'i', as in '2+3i'. Strings and characters are input by using single or double quotes. Commands are statements in a C-like language, where each input line is treated as the body of a procedure. Thus the command line can contain variable declarations, expressions, labels, conditional tests, and loops. Assignments to any variable name will automatically define that name as a global variable. The other important thing to know is that all non-assignment expressions which are evaluated are automatically printed. Thus, you can evaluate an expression's value by simply typing it in. Many useful built-in mathematical functions are available. Use the: help builtin command to list them. You can also define your own functions by using the 'define' keyword, followed by a function declaration very similar to C. define f2(n) { local ans; ans = 1; while (n > 1) ans *= (n -= 2); return ans; } Thus the input: f2(79) will produce; 1009847364737869270905302433221592504062302663202724609375 Functions which only need to return a simple expression can be defined using an equals sign, as in the example: define sc(a,b) = a^3 + b^3 Thus the input: sc(31, 61) will produce; 256772 Variables in functions can be defined as either 'global', 'local', or 'static'. Global variables are common to all functions and the command line, whereas local variables are unique to each function level, and are destroyed when the function returns. Static variables are scoped within single input files, or within functions, and are never destroyed. Variables are not typed at definition time, but dynamically change as they are used. For more information about the calc language and features, try: help overview In particular, check out the other help functions listed in the overview help file. ## Copyright (C) 1999 Landon Curt Noll ## ## Calc is open software; you can redistribute it and/or modify it under ## the terms of the version 2.1 of the GNU Lesser General Public License ## as published by the Free Software Foundation. ## ## Calc is distributed in the hope that it will be useful, but WITHOUT ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General ## Public License for more details. ## ## A copy of version 2.1 of the GNU Lesser General Public License is ## distributed with calc under the filename COPYING-LGPL. You should have ## received a copy with calc; if not, write to Free Software Foundation, Inc. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ## ## Under source code control: 1991/07/21 04:37:21 ## File existed as early as: 1991 ## ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/ ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
participants (1)
-
root@hilbert.suse.de