Posted by
Liguo Song on
URL: http://quantlib.414.s1.nabble.com/RPM-spec-file-for-QuantLib-0-3-3-tp2648.html
The first working RPM spec file for QuantLib-0.3.3 is attached. There are
two ways that you can make use of it:
1. Put this spec file into the SPEC dir under the RPM build root dir,
and the QuantLib-0.3.3.tar.gz into the SOURCE dir, then rpmbuild -ba
QuantLib-0.3.3-beta.spec, and you will get the src rpm and the binary rpm.
2. Put this spec file into the tar ball. Then rpmbuild -ta
QuantLib-0.3.3.tar.gz will compile both the src rpm and the binary rpm.
REQUIREMENT: automake >= 1.7, autoconf >= 2.54, cppunit >= 1.8.0 and
cppunit-devel >= 1.8.0
In case that you install these softwares with tar balls, you can use rpm
-Uvh --nodeps QuantLib-0.3.3-beta.i386.rpm to install it.
The RPM package of automake and autoconf can be easily found at
www.rpmfind.net, while there is only cppunit RPM packages for PLD Linux
available right now. I have adopted them to Red Hat Linux. Please let me
know if you need them. Also, if people prefer to get the compiled src and
binary package, please let me know.
There are still a lot to improve with this spec file, and I'd like to hear
some opinions about the following issues:
1. It is conventional to separate the dynamic libs, static libs, and
header files into separate packages. Should we do the same thing here?
2. Cppunit is only needed for the test-suite, so should we still make it
required? Or just drop the test-suite if no cppunit is available?
3. The documents for QuantLib is not included in the tar ball right now,
should I put the docs into the RPM package?
4. A relative minor point about the name, is quantlib better than
QuantLib? As the Unix name of the project is quantlib.
At last, please let me know if you have any problem with it.
Later.
Liguo (Leo)