/[cln]/cln.spec.in
ViewVC logotype

Contents of /cln.spec.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations)
Thu May 31 19:19:15 2001 UTC (12 years ago) by cbauer
Branch: MAIN
CVS Tags: cln_1-1-3, cln_1-1-2, cln_1-1-1
Changes since 1.3: +1 -1 lines
man pages may be packed

1 cbauer 1.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 cbauer 1.2 mkdir -p ${RPM_BUILD_ROOT}/usr
41 cbauer 1.1 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 cbauer 1.3 /sbin/install-info --section="Math" %{_infodir}/cln.info.gz %{_infodir}/dir
55 cbauer 1.1
56     %preun devel
57     if [ "$1" = 0 ]; then
58 cbauer 1.3 /sbin/install-info --delete %{_infodir}/cln.info.gz %{_infodir}/dir
59 cbauer 1.1 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 cbauer 1.2 %doc examples/*.cc
69 cbauer 1.1 %{_libdir}/*.a
70     %{_libdir}/*.la
71     %{_libdir}/*.so
72 cbauer 1.2 %{_includedir}/cln/*.h
73 cbauer 1.1 %{_infodir}/*.info*
74 cbauer 1.4 %{_mandir}/man1/cln-config.1*
75 cbauer 1.1 %{_bindir}/cln-config
76 cbauer 1.2 %{_datadir}/aclocal/*
77 cbauer 1.1
78     %changelog

Christian Bauer">Christian Bauer
ViewVC Help
Powered by ViewVC 1.1.15