]> www.ginac.de Git - cln.git/blob - cln.spec.in
man pages may be packed
[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 mkdir -p ${RPM_BUILD_ROOT}/usr
41 make prefix=%{_prefix} DESTDIR=${RPM_BUILD_ROOT} install
42 gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/cln.info*
43
44 %clean
45 rm -rf ${RPM_BUILD_ROOT}
46
47 %post
48 /sbin/ldconfig
49
50 %postun
51 /sbin/ldconfig
52
53 %post devel
54 /sbin/install-info --section="Math" %{_infodir}/cln.info.gz %{_infodir}/dir
55
56 %preun devel
57 if [ "$1" = 0 ]; then
58   /sbin/install-info --delete %{_infodir}/cln.info.gz %{_infodir}/dir
59 fi
60
61 %files
62 %defattr(-,root,root)
63 %doc COPYING ChangeLog FILES NEWS README TODO*
64 %{_libdir}/*.so.*
65
66 %files devel
67 %defattr(-,root,root)
68 %doc examples/*.cc
69 %{_libdir}/*.a
70 %{_libdir}/*.la
71 %{_libdir}/*.so
72 %{_includedir}/cln/*.h
73 %{_infodir}/*.info*
74 %{_mandir}/man1/cln-config.1*
75 %{_bindir}/cln-config
76 %{_datadir}/aclocal/*
77
78 %changelog