]>
Commit | Line | Data |
---|---|---|
1 | Summary: Arbitrary precision calculator | |
2 | Summary(pl.UTF-8): Kalkulator operujący na liczbach z dowolną dokładnością | |
3 | Name: calc | |
4 | Version: 2.12.2.2 | |
5 | Release: 1 | |
6 | License: LGPL v2.1+ | |
7 | Group: Applications/Math | |
8 | Source0: http://www.isthe.com/chongo/src/calc/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: c977abbb95f91e9927fcd33fd683ab6f | |
10 | Source1: %{name}.desktop | |
11 | URL: http://www.isthe.com/chongo/tech/comp/calc/ | |
12 | BuildRequires: readline-devel >= 4.2 | |
13 | BuildRequires: sed >= 4.0 | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | Calc is arbitrary precision arithmetic system that uses a C-like | |
18 | language. Calc is useful as a calculator, an algorithm prototyped and | |
19 | as a mathematical research tool. It comes with a rich set of | |
20 | mathematical, programmatic and stdio functions. | |
21 | ||
22 | %description -l pl.UTF-8 | |
23 | Calc jest systemem arytmetycznym o nieograniczonej dokładności, | |
24 | używającym języka podobnego do C. Calc jest przydatny jako kalkulator, | |
25 | narzędzie do testowania algorytmów i do badań matematycznych. Do | |
26 | samego programu dołączony jest bogaty zestaw funkcji bibliotecznych - | |
27 | matematycznych, programistycznych i funkcji wejścia/wyjścia | |
28 | ||
29 | %package devel | |
30 | Summary: Calc header files and static libraries | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki statyczne Calca | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | Obsoletes: calc-static | |
35 | ||
36 | %description devel | |
37 | These header files and static libraries are neccessary to build | |
38 | programs using Calc math libraries. These libraries contain a set of | |
39 | Calc functions to use in other applications. | |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Te pliki nagłówkowe i biblioteki statyczne są niezbędne przy budowaniu | |
43 | programów wykorzystujących biblioteki matematyczne Calca. Biblioteki | |
44 | te zawierające zbiór funkcji Calca do wykorzystania we własnych | |
45 | programach. | |
46 | ||
47 | %prep | |
48 | %setup -q | |
49 | ||
50 | %build | |
51 | %{__make} -j1 \ | |
52 | LCC="%{__cc}" \ | |
53 | DEBUG="%{rpmcflags}" \ | |
54 | USE_READLINE=-DUSE_READLINE \ | |
55 | READLINE_LIB="-lreadline -lhistory" \ | |
56 | READLINE_INCLUDE=%{_includedir} \ | |
57 | SCRIPTDIR=%{_datadir}/calc/cscript | |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %{__make} install \ | |
63 | LIBDIR=%{_libdir} \ | |
64 | T=$RPM_BUILD_ROOT \ | |
65 | SCRIPTDIR=%{_datadir}/calc/cscript | |
66 | ||
67 | install -D %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
68 | ||
69 | rm -f $RPM_BUILD_ROOT%{_datadir}/calc/README | |
70 | ||
71 | find $RPM_BUILD_ROOT%{_datadir}/calc -type f | \ | |
72 | xargs %{__sed} -i -e 's|#!/usr/local/bin/calc|#!%{_bindir}/calc|g' | |
73 | ||
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %post -p /sbin/ldconfig | |
78 | %postun -p /sbin/ldconfig | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
82 | # COPYING is not just LGPL text, only some explanations | |
83 | %doc BUGS CHANGES COPYING README | |
84 | %attr(755,root,root) %{_bindir}/calc | |
85 | %attr(755,root,root) %{_libdir}/libcalc.so.*.*.*.* | |
86 | %attr(755,root,root) %{_libdir}/libcustcalc.so.*.*.*.* | |
87 | %{_datadir}/calc | |
88 | %{_desktopdir}/calc.desktop | |
89 | %{_mandir}/man1/calc.1* | |
90 | ||
91 | %files devel | |
92 | %defattr(644,root,root,755) | |
93 | %doc LIBRARY | |
94 | %attr(755,root,root) %{_libdir}/libcalc.so | |
95 | %attr(755,root,root) %{_libdir}/libcustcalc.so | |
96 | %{_includedir}/calc |