]> www.ginac.de Git - cln.git/blob - cln.spec.in
* src/base/digitseq/cl_asm.h: Test if (intDsize==32) for MIPS and HPPA,
[cln.git] / cln.spec.in
1 %define name cln
2 %define version @CL_VERSION@
3 %define release 1
4
5 Summary: Class Library for Numbers
6 Name: %{name}
7 Version: %{version}
8 Release: %{release}
9 Copyright: GPL
10 Group: System Environment/Libraries
11 Source: %{name}-%{version}.tar.gz
12 URL: http://clisp.cons.org/~haible/packages-cln.html
13 Prereq: /sbin/install-info
14 BuildRoot: %{_tmppath}/%{name}-root
15 Prefix: %{_prefix}
16
17 %description
18 A GPLed collection of math classes and functions, that will bring
19 efficiency, type safety, algebraic syntax to everyone in a memory
20 and speed efficient library.
21
22 %package devel
23 Summary: Development files for programs using the CLN library
24 Group: Development/Libraries
25 Requires: %{name} = %{version}
26
27 %description devel
28 This package is necessary if you wish to develop software based on
29 the CLN library.
30
31 %prep
32 %setup -q
33
34 %build
35 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS -fno-exceptions" ./configure --prefix=%{_prefix}
36 make
37
38 %install
39 rm -rf ${RPM_BUILD_ROOT}
40 make prefix=%{_prefix} DESTDIR=${RPM_BUILD_ROOT} install
41 gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/cln.info*
42
43 %clean
44 rm -rf ${RPM_BUILD_ROOT}
45
46 %post
47 /sbin/ldconfig
48
49 %postun
50 /sbin/ldconfig
51
52 %post devel
53 /sbin/install-info %{_infodir}/cln.info.gz %{_infodir}/dir
54
55 %preun devel
56 if [ "$1" = 0 ]; then
57   /sbin/install-info --del %{_infodir}/cln.info.gz %{_infodir}/dir
58 fi
59
60 %files
61 %defattr(-,root,root)
62 %doc COPYING ChangeLog FILES NEWS README TODO*
63 %{_libdir}/*.so.*
64
65 %files devel
66 %defattr(-,root,root)
67 %doc examples
68 %{_libdir}/*.a
69 %{_libdir}/*.la
70 %{_libdir}/*.so
71 %{_includedir}/*.h
72 %{_infodir}/*.info*
73 %{_bindir}/cln-config
74
75 %changelog