File: QuantLib.spec.in

package info (click to toggle)
quantlib 0.9.0.20071224-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 22,216 kB
  • ctags: 34,951
  • sloc: cpp: 167,744; ansic: 21,483; sh: 8,947; makefile: 3,327; lisp: 86
file content (152 lines) | stat: -rw-r--r-- 4,323 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# Define some specific macros
%define _aclocaldir %{_datadir}/aclocal
%define docdir %{_prefix}/doc/QuantLib-%{version}

Summary: The free/open-source library for quantitative finance.
Name: QuantLib
Version: @PACKAGE_VERSION@
Epoch: 0
Release: 0
License: BSD License
Group: System Environment/Libraries
Packager: Liguo Song (Leo) <liguo.song@vanderbilt.edu>
Vendor: QuantLib.org
Source0: http://prdownloads.sourceforge.net/quantlib/QuantLib-%{version}.tar.gz
URL: http://quantlib.org/
Buildroot: %{_tmppath}/%{name}-%{version}-root

%description
QuantLib is an open source C++ library for financial quantitative analysts
and developers.

%package devel
Summary: The header files and the static library.
Group: Development/Libraries
Requires: QuantLib = %{version}

%description devel
QuantLib is an open source C++ library for financial quantitative analysts
and developers.

Install QuantLib-devel if you are going to develop programs which will
use the standard C libraries.

%package test-suite
Summary: The test-suite to check the setup of quantlib installation.
Group: Development/Tools
Requires: QuantLib = %{version}

%description test-suite
QuantLib is an open source C++ library for financial quantitative analysts
and developers.

The QuantLib-test-suite will validate the compiled code against
pre-constructed test cases, and helps in validating the library.

%package docs
Summary: The documentations for QuantLib.
Group: Documentation
Requires: QuantLib = %{version}
BuildRequires: doxygen >= 1.3, graphviz
Obsoletes: QuantLib-doc

%description docs
QuantLib is an open source C++ library for financial quantitative analysts
and developers.

This package contains documentation files generated from the source code of
QuantLib.

You'll want to install this package if you need a reference to QuantLib.

%prep
%setup -q

%build
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
./configure --prefix=%{_prefix}
make
# make documentations
cd Docs
make docs-all

%install
rm -rf %{buildroot}
make prefix=%{buildroot}%{_prefix} install
# install the documentation
mkdir -p %{buildroot}%{docdir}
cp -p Authors.txt LICENSE.TXT ChangeLog.txt Readme.txt %{buildroot}%{docdir}
cp -p Contributors.txt History.txt INSTALL.txt TODO.txt %{buildroot}%{docdir}
cp -p News.txt  %{buildroot}%{docdir}
cp -pr Examples %{buildroot}%{docdir}
cp -pr Docs/html %{buildroot}%{docdir}
rm -f %{buildroot}%{docdir}/html/*.dot
cp -p Docs/latex/refman.pdf %{buildroot}%{docdir}/QuantLib-%{version}-docs-refman.pdf
cp -p Docs/latex/refman.ps %{buildroot}%{docdir}/QuantLib-%{version}-docs-refman.ps
cp -pr Docs/man/man3 %{buildroot}%{_mandir}/

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{docdir}/Authors.txt
%{docdir}/LICENSE.TXT
%{docdir}/ChangeLog.txt
%{docdir}/Readme.txt
%{docdir}/News.txt
%{docdir}/Contributors.txt
%{docdir}/History.txt
%{docdir}/INSTALL.txt
%{docdir}/TODO.txt
%{_libdir}/libQuantLib.la
%{_libdir}/libQuantLib.so
%{_libdir}/libQuantLib-%{version}.so
%{_libdir}/libQuantLibFunctions.la
%{_libdir}/libQuantLibFunctions.so
%{_libdir}/libQuantLibFunctions-%{version}.so

%files devel
%defattr(-,root,root)
%{docdir}/Examples
%{_includedir}/ql/
%{_libdir}/libQuantLib.a
%{_libdir}/libQuantLib.so
%{_libdir}/libQuantLibFunctions.a
%{_libdir}/libQuantLibFunctions.so
%{_datadir}/aclocal/*
%{_datadir}/emacs/site-lisp/*
%{_bindir}/quantlib-config
%{_mandir}/man1/quantlib-config.1

%files test-suite
%defattr(-,root,root)
%{_mandir}/man1/quantlib-test-suite.1
%{_bindir}/quantlib-test-suite

%files docs
%defattr(-,root,root)
%{_mandir}/man3/*
%{docdir}/html
%{docdir}/QuantLib-%{version}-docs-refman.pdf
%{docdir}/QuantLib-%{version}-docs-refman.ps

%changelog
* Tue Nov 18 2003 Liguo Song <liguo.song@vanderbilt.edu>
- Initial release of 0.3.4
- Rename QuantLib-doc to QuantLib-docs for consistency with the docs tar package

* Thu Oct 2 2003 Liguo Song <liguo.song@vanderbilt.edu>
- Add docs package
- Modified Makefile.am and Makefile.in in Docs/:
    $(DVIPS) refman -> $(DVIPS) -o refman.ps refman

* Tue Aug 22 2003 Liguo Song <liguo.song@vanderbilt.edu>
- Initial package. Refer to Changelog.txt for previous changes.
- RPM package beta test