Posted by
Liguo Song on
URL: http://quantlib.414.s1.nabble.com/0-3-4-releases-tp10452p10456.html
Hi, Nando,
The RPM for the main packages, including devel, test-suite, and docs, are OK. I
just noticed that I named the documentation package as QuantLib-doc, while the
tar ball is named QuantLib-docs. I corrected the discrepancy here, and added a
item to ChangeLog.
Python package doesn't have the spec file. I attached it here, please put it in
the CVS or the tar ball.
Same for Ruby package.
I am still learning my way around CVS, so I am not very confident to mess with
the CVS. :)
As Guile package doesn't have the prefix option to install in 0.3.4, I am still
looking for a hack to get it work. I will keep you posted on the progress.
As MzScheme package, there is not MzScheme rpm package available. So it might
take much longer to get package it. I wouldn't hold my breath for the RPM
package. Sorry.
That's about it for today.
Best regards.
Liguo (Leo)
Ferdinando Ametrano wrote:
> Hi all
>
> Luigi has provided today the latest QuantLib 0.3.4 C++ tarball at
>
http://quantlib.org/gm> This version worked fine for the Win32 build.
> Dirk and Liguo: please go ahead with you packages. Barring last minute
> problems with Debian/RPM I would like to announce 0.3.4 next Friday,
> November 21th.
>
> Ruby and Guile modules are also OK for me, since I won't provide Win32
> packages.
>
> Tomorrow I will check Python and MzScheme and will (hopefully) give a
> green light for Debian/RPM packages
>
> thanks everybody
>
> ------------
> ciao -- Nando
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here:
http://sourceforge.net/donate/> _______________________________________________
> Quantlib-dev mailing list
>
[hidden email]
>
https://lists.sourceforge.net/lists/listinfo/quantlib-dev# Define some specific macros
%define _aclocaldir %{_datadir}/aclocal
%define docdir %{_prefix}/doc/QuantLib-%{version}
# Check whether cppunit is install. If it is then
# build the test-suite package
%define test %(if rpm -q cppunit cppunit-static cppunit-devel 2>&1 > /dev/null; then echo 1; else echo 0;fi)
Summary: The free/open-source library for quantitative finance.
Name: QuantLib
Version: 0.3.4
Epoch: 0
Release: 0
License: BSD License
Group: System Environment/Libraries
Packager: Liguo Song (Leo) <
[hidden email]>
Vendor: QuantLib.org
Source0: <a href="http://prdownloads.sourceforge.net/quantlib/QuantLib-%">http://prdownloads.sourceforge.net/quantlib/QuantLib-%{version}.tar.gz
URL:
http://quantlib.org/Buildroot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: automake >= 1.7, autoconf >= 2.54
%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}
BuildRequires: automake >= 1.7, autoconf >= 2.54
%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.
%if %test
%package test-suite
Summary: The test-suite to check the setup of quantlib installation.
Group: Development/Tools
Requires: QuantLib = %{version}, cppunit >= 1.8.0, cppunit-devel >= 1.8.0, cppunit-static >= 1.8.0
%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.
%endif
%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
%if !%test
rm %{buildroot}%{_prefix}/bin/quantlib-test-suite
rm %{buildroot}%{_prefix}/man/man1/quantlib-test-suite.1
%endif
%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
%if !%test
rm -f %{buildroot}%{_prefix}/bin/quantlib-test-suite
rm -f %{buildroot}%{_prefix}/man/man1/quantlib-test-suite.1
echo "Warning: quantlib-test-suite is not built!"
echo "Warning: cppunit, cppunit-devel and cppunit-static are needed!"
%endif
# 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.0
%{_libdir}/libQuantLib.so.0.0.0
%files devel
%defattr(-,root,root)
%{docdir}/Examples
%{_includedir}/ql/
%{_libdir}/libQuantLib.a
%{_libdir}/libQuantLib.so
%{_datadir}/aclocal/*
%{_datadir}/emacs/site-lisp/*
%{_bindir}/quantlib-config
%{_mandir}/man1/quantlib-config.1
%if %test
%files test-suite
%defattr(-,root,root)
%{_mandir}/man1/quantlib-test-suite.1
%{_bindir}/quantlib-test-suite
%endif
%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 <
[hidden email]>
- 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 <
[hidden email]>
- Add docs package
- Modified Makefile.am and Makefile.in in Docs/:
$(DVIPS) refman -> $(DVIPS) -o refman.ps refman
* Tue Aug 22 2003 Liguo Song <
[hidden email]>
- Initial package. Refer to Changelog.txt for previous changes.
- RPM package beta test
Summary: The Python wrapper for the QuantLib library.
Name: QuantLib-Python
Version: 0.3.4
Epoch: 0
Release: 0
License: BSD License
Group: System Environment/Libraries
Packager: Liguo Song (Leo) <
[hidden email]>
Vendor: QuantLib.org
Source0: <a href="http://prdownloads.sourceforge.net/quantlib/QuantLib-Python-%">http://prdownloads.sourceforge.net/quantlib/QuantLib-Python-%{version}.tar.gz
URL:
http://quantlib.org/Buildroot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: QuantLib-devel == %{version}, python >= 2.1, swig >= 1.3.18
%description
QuantLib-Python is the Python wrapper for the QuantLib library.
%prep
%setup -q
%build
python setup.py wrap
python setup.py build
python setup.py test
%install
rm -rf %{buildroot}
python setup.py install --prefix=%{buildroot}%{_prefix}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_includedir}/QuantLib-Python
%{_libdir}/python2.2/site-packages/QuantLib
%changelog
* Wed Nov 19 2003 Liguo Song <
[hidden email]>
- Update to 0.3.4
* Thu Oct 30 2003 Liguo Song <
[hidden email]>
- Initial QuantLib-Python package
# Define some macros for the use of dealing with version dependent install
%define ruby %(which ruby)
%define crtArch %(%{ruby} -e "require 'rbconfig';puts Config::CONFIG['host_os']")
%define rbVersion %(%{ruby} -e "require 'rbconfig';puts Config::CONFIG['ruby_version']")
%define rbVMajor %(%{ruby} -e "require 'rbconfig';puts Config::CONFIG['MAJOR']")
%define rbVMinor %(%{ruby} -e "require 'rbconfig';puts Config::CONFIG['MINOR']")
%define rb_archdir %(%{ruby} -e "require 'rbconfig';puts Config::CONFIG['archdir']")
%define rb_libdir %(%{ruby} -e "require 'rbconfig';puts Config::CONFIG['rubylibdir']")
%define libdir %(%{ruby} -e "require 'rbconfig';puts Config::CONFIG['libdir']")
Summary: The Ruby wrapper for the QuantLib library.
Name: QuantLib-Ruby
Version: 0.3.4
Epoch: 0
Release: 0
License: BSD License
Group: System Environment/Libraries
Packager: Liguo Song (Leo) <
[hidden email]>
Vendor: QuantLib.org
Source0: <a href="http://prdownloads.sourceforge.net/quantlib/QuantLib-Ruby-%">http://prdownloads.sourceforge.net/quantlib/QuantLib-Ruby-%{version}.tar.gz
URL:
http://quantlib.org/Buildroot: %{_tmppath}/%{name}-%{version}-root
AutoReq: no
Requires: QuantLib-devel == %{version}, ruby
BuildRequires: swig >= 1.3.18, textutils, bash, ruby, ruby-libs, QuantLib-devel == %{version}
%description
QuantLib-Ruby is the Ruby wrapper for the QuantLib library.
%prep
%setup -q
%if %(if [[ %{rbVMajor} -ge 1 ]]; then echo 1; else echo 0; fi) && %(if [[ %{rbVMinor} -ge 8 ]]; then echo 1; else echo 0; fi)
%define test 1
%else
%define test 0
%endif
%build
# This is not necessary as the SWIG-generated file is already included. -- Luigi Ballabio
#%{ruby} setup.rb wrap
%{ruby} setup.rb build
%if %{test}
%{ruby} setup.rb test
%endif
%install
rm -rf %{buildroot}
echo %{buildroot}/usr
%{ruby} setup.rb install --prefix=%{buildroot}/usr
mkdir %{buildroot}%{libdir}/ruby/QuantLib
mv %{buildroot}%{rb_libdir}/QuantLib.rb %{buildroot}%{libdir}/ruby/QuantLib/
mv %{buildroot}%{rb_archdir}/QuantLibc.so %{buildroot}%{libdir}/ruby/QuantLib/
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%(%{ruby} -e "require 'rbconfig';puts Config::CONFIG['libdir']")/ruby/QuantLib
%post
archdir=`%{ruby} -e "require 'rbconfig';puts Config::CONFIG['archdir']"`
rubylibdir=`%{ruby} -e "require 'rbconfig';puts Config::CONFIG['rubylibdir']"`
libdir=`%{ruby} -e "require 'rbconfig';puts Config::CONFIG['libdir']"`
ln -s $libdir/ruby/QuantLib/QuantLib.rb $rubylibdir/QuantLib.rb
ln -s $libdir/ruby/QuantLib/QuantLibc.so $archdir/QuantLibc.so
%postun
rubylibdir=`%{ruby} -e "require 'rbconfig';puts Config::CONFIG['rubylibdir']"`
archdir=`%{ruby} -e "require 'rbconfig';puts Config::CONFIG['archdir']"`
rm -f $rubylibdir/QuantLib.rb $archdir/QuantLibc.so
%changelog
* Wed Nov 19 2003 Liguo Song <
[hidden email]>
- Update to 0.3.4
* Fri Oct 31 2003 Liguo Song <
[hidden email]>
- Initial QuantLib-Ruby package