2010-10-14 00:57:37 +02:00
|
|
|
|
#
|
2011-04-19 13:03:50 +02:00
|
|
|
|
# spec file for package adolc
|
2010-10-14 00:57:37 +02:00
|
|
|
|
#
|
2014-02-25 12:56:29 +01:00
|
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-10-14 00:57:37 +02:00
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2012-02-17 07:45:33 +01:00
|
|
|
|
|
2010-10-14 00:57:37 +02:00
|
|
|
|
Name: adolc
|
2011-09-17 12:07:35 +02:00
|
|
|
|
%define lname libadolc1
|
2014-02-25 12:56:29 +01:00
|
|
|
|
Version: 2.5.0
|
2011-12-15 11:30:05 +01:00
|
|
|
|
Release: 0
|
2010-10-14 00:57:37 +02:00
|
|
|
|
Summary: Algorithmic Differentiation Library for C/C++
|
2012-03-22 19:21:46 +01:00
|
|
|
|
License: GPL-2.0+ or EPL-1.0
|
2011-12-19 13:28:42 +01:00
|
|
|
|
Group: Development/Libraries/C and C++
|
2011-12-15 11:30:05 +01:00
|
|
|
|
Url: http://projects.coin-or.org/ADOL-C
|
2014-02-25 12:56:29 +01:00
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2012-03-22 19:21:46 +01:00
|
|
|
|
Source1: baselibs.conf
|
2014-02-25 12:56:29 +01:00
|
|
|
|
Patch1: no-return-in-non-void-adouble_tl_cpp.patch
|
2012-03-22 19:21:46 +01:00
|
|
|
|
BuildRequires: ColPack-devel
|
2011-12-15 11:30:05 +01:00
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: libstdc++-devel
|
|
|
|
|
BuildRequires: libtool
|
2014-02-25 12:56:29 +01:00
|
|
|
|
BuildRequires: pkg-config
|
2011-06-09 13:42:58 +02:00
|
|
|
|
# BuildRequires: texlive texlive-latex
|
2010-10-14 00:57:37 +02:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The package ADOL-C (Automatic Differentiation by OverLoading in C++)
|
|
|
|
|
facilitates the evaluation of first and higher derivatives of vector
|
|
|
|
|
functions that are defined by computer programs written in C or
|
|
|
|
|
C++. The resulting derivative evaluation routines may be called from
|
|
|
|
|
C/C++, Fortran, or any other language that can be linked with C.
|
|
|
|
|
|
|
|
|
|
The numerical values of derivative vectors are obtained free of
|
|
|
|
|
truncation errors at a small multiple of the run time and randomly
|
|
|
|
|
accessed memory of the given function evaluation program.
|
|
|
|
|
|
2011-09-17 12:07:35 +02:00
|
|
|
|
%package -n %lname
|
2010-10-14 00:57:37 +02:00
|
|
|
|
Summary: Algorithmic Differentiation Library for C/C++
|
2011-12-19 13:28:42 +01:00
|
|
|
|
Group: System/Libraries
|
2010-10-14 00:57:37 +02:00
|
|
|
|
|
2011-09-17 12:07:35 +02:00
|
|
|
|
%description -n %lname
|
2010-10-14 00:57:37 +02:00
|
|
|
|
The package ADOL-C (Automatic Differentiation by OverLoading in C++)
|
|
|
|
|
facilitates the evaluation of first and higher derivatives of vector
|
|
|
|
|
functions that are defined by computer programs written in C or
|
|
|
|
|
C++. The resulting derivative evaluation routines may be called from
|
|
|
|
|
C/C++, Fortran, or any other language that can be linked with C.
|
|
|
|
|
|
|
|
|
|
The numerical values of derivative vectors are obtained free of
|
|
|
|
|
truncation errors at a small multiple of the run time and randomly
|
|
|
|
|
accessed memory of the given function evaluation program.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Algorithmic Differentiation Library for C/C++ -- development files
|
2011-12-19 13:28:42 +01:00
|
|
|
|
Group: Development/Libraries/C and C++
|
2011-09-17 12:07:35 +02:00
|
|
|
|
Requires: %lname = %{version}
|
2010-10-14 00:57:37 +02:00
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The package ADOL-C (Automatic Differentiation by OverLoading in C++)
|
|
|
|
|
facilitates the evaluation of first and higher derivatives of vector
|
|
|
|
|
functions that are defined by computer programs written in C or
|
|
|
|
|
C++. The resulting derivative evaluation routines may be called from
|
|
|
|
|
C/C++, Fortran, or any other language that can be linked with C.
|
|
|
|
|
|
|
|
|
|
The numerical values of derivative vectors are obtained free of
|
|
|
|
|
truncation errors at a small multiple of the run time and randomly
|
|
|
|
|
accessed memory of the given function evaluation program.
|
|
|
|
|
|
|
|
|
|
This package provides the development environment for adolc
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Algorithmic Differentiation Library for C/C++ -- documentation
|
2011-12-19 13:28:42 +01:00
|
|
|
|
Group: Documentation/Other
|
2010-10-14 00:57:37 +02:00
|
|
|
|
%if 0%{?suse_version} && %{suse_version} >= 1120
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
The package ADOL-C (Automatic Differentiation by OverLoading in C++)
|
|
|
|
|
facilitates the evaluation of first and higher derivatives of vector
|
|
|
|
|
functions that are defined by computer programs written in C or
|
|
|
|
|
C++. The resulting derivative evaluation routines may be called from
|
|
|
|
|
C/C++, Fortran, or any other language that can be linked with C.
|
|
|
|
|
|
|
|
|
|
The numerical values of derivative vectors are obtained free of
|
|
|
|
|
truncation errors at a small multiple of the run time and randomly
|
|
|
|
|
accessed memory of the given function evaluation program.
|
|
|
|
|
|
|
|
|
|
This package provides the user´s manual for adolc
|
|
|
|
|
|
|
|
|
|
%prep
|
2014-02-25 12:56:29 +01:00
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
%patch1 -p1
|
2010-10-14 00:57:37 +02:00
|
|
|
|
|
|
|
|
|
%build
|
2012-09-15 18:11:36 +02:00
|
|
|
|
%if 0%{?suse_version} && %{suse_version} > 1110
|
2010-10-14 00:57:37 +02:00
|
|
|
|
autoreconf -v --install --force
|
2012-09-15 18:11:36 +02:00
|
|
|
|
%endif
|
2010-10-14 00:57:37 +02:00
|
|
|
|
%configure --prefix=/usr
|
|
|
|
|
make %{_smp_mflags}
|
2011-06-09 13:42:58 +02:00
|
|
|
|
# pushd ADOL-C/doc
|
|
|
|
|
# for ((i=0; i < 3; i++)); do
|
|
|
|
|
# pdflatex adolc-manual.tex &>/dev/null
|
|
|
|
|
# done
|
2010-10-14 00:57:37 +02:00
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%makeinstall
|
|
|
|
|
install -d %{buildroot}%{_datadir}/doc/packages/%{name}
|
2011-10-06 13:35:29 +02:00
|
|
|
|
install -m 644 README AUTHORS BUGS LICENSE TODO %{buildroot}%{_datadir}/doc/packages/%{name}
|
2010-10-14 00:57:37 +02:00
|
|
|
|
install -m 644 ADOL-C/doc/adolc-manual.pdf %{buildroot}%{_datadir}/doc/packages/%{name}
|
|
|
|
|
install -m 644 ADOL-C/doc/short_ref.pdf %{buildroot}%{_datadir}/doc/packages/%{name}
|
2011-09-17 12:07:35 +02:00
|
|
|
|
find "%buildroot" -type f -name "*.la" -delete;
|
|
|
|
|
find "%buildroot" -type f -name "*.a" -delete;
|
2010-10-14 00:57:37 +02:00
|
|
|
|
|
2011-09-17 12:07:35 +02:00
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2010-10-14 00:57:37 +02:00
|
|
|
|
|
2011-09-17 12:07:35 +02:00
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2010-10-14 00:57:37 +02:00
|
|
|
|
|
2011-09-17 12:07:35 +02:00
|
|
|
|
%files -n %lname
|
2010-10-14 00:57:37 +02:00
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_libdir}/libadolc.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%dir %{_includedir}/adolc
|
|
|
|
|
%dir %{_includedir}/adolc/drivers
|
|
|
|
|
%dir %{_includedir}/adolc/sparse
|
|
|
|
|
%dir %{_includedir}/adolc/tapedoc
|
|
|
|
|
%{_includedir}/adolc/*.h
|
|
|
|
|
%{_includedir}/adolc/drivers/*.h
|
|
|
|
|
%{_includedir}/adolc/sparse/*.h
|
|
|
|
|
%{_includedir}/adolc/tapedoc/*.h
|
|
|
|
|
%{_libdir}/libadolc.so
|
2014-02-25 12:56:29 +01:00
|
|
|
|
%{_libdir}/pkgconfig/adolc.pc
|
2010-10-14 00:57:37 +02:00
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%dir %{_datadir}/doc/packages/%{name}
|
|
|
|
|
%{_datadir}/doc/packages/%{name}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|