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