adolc/adolc.spec
Ismail Dönmez e289dcdcf5 Accepting request 353182 from home:polyconvex:branches:devel:libraries:c_c++
- update to version 2.6.0
  * Drivers for Lie-Derivatives (by Mirko Franke).
  * New extended interface for external functions, which may be used to
    interface to source transformation tools. Previous interface remains
    intact too.
  * Driver to compute the abs-normal form of piecewise smooth functions.
  * Mechanism to compute sparsity pattern of abs-normal form.
  * Interface to define passive parameters that can be changed before each
    trace interpretation. Major use case is Lagrange Multipliers.
  * Interface to AdjoinableMPI improved and debugged.
  * ADOL-C now uses boost (>= 1.54) for increased execution speed if
    detected during build.
  * ADOL-C and all applications must be compiled using a C++11 compiler.
  * Many, many odd and sundry bugfixes.
 - added BuildRequires: boost-devel

OBS-URL: https://build.opensuse.org/request/show/353182
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/adolc?expand=0&rev=52
2016-01-12 11:35:22 +00:00

152 lines
5.3 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package adolc
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
%define lname libadolc2
Name: adolc
Version: 2.6.0
Release: 0
Summary: Algorithmic Differentiation Library for C/C++
License: GPL-2.0+ or EPL-1.0
Group: Development/Libraries/C and C++
Url: http://projects.coin-or.org/ADOL-C
Source0: http://www.coin-or.org/download/source/ADOL-C/ADOL-C-%{version}.tgz
Source1: baselibs.conf
BuildRequires: ColPack-devel
BuildRequires: boost-devel
BuildRequires: gcc-c++
BuildRequires: libstdc++-devel
BuildRequires: pkg-config
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.
%package -n %{lname}
Summary: Algorithmic Differentiation Library for C/C++
Group: System/Libraries
%description -n %{lname}
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
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
%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
Group: Documentation/Other
%if 0%{?suse_version} && 0%{?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
%setup -q -n ADOL-C-%{version}
%build
# autoreconf -v --install --force
%configure
make %{?_smp_mflags}
# pushd ADOL-C/doc
# for ((i=0; i < 3; i++)); do
# pdflatex adolc-manual.tex &>/dev/null
# done
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
install -d %{buildroot}%{_docdir}/%{name}
install -m 644 README AUTHORS BUGS LICENSE TODO %{buildroot}%{_docdir}/%{name}
install -m 644 ADOL-C/doc/adolc-manual.pdf %{buildroot}%{_docdir}/%{name}
install -m 644 ADOL-C/doc/short_ref.pdf %{buildroot}%{_docdir}/%{name}
find %{buildroot} -type f -name "*.la" -delete -print
find %{buildroot} -type f -name "*.a" -delete;
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files -n %{lname}
%defattr(-,root,root)
%{_libdir}/libadolc.so.*
%files devel
%defattr(-,root,root)
%dir %{_includedir}/adolc
%dir %{_includedir}/adolc/drivers
%dir %{_includedir}/adolc/internal
%dir %{_includedir}/adolc/lie
%dir %{_includedir}/adolc/sparse
%dir %{_includedir}/adolc/tapedoc
%{_includedir}/adolc/*.h
%{_includedir}/adolc/drivers/*.h
%{_includedir}/adolc/internal/*.h
%{_includedir}/adolc/lie/drivers.h
%{_includedir}/adolc/sparse/*.h
%{_includedir}/adolc/tapedoc/*.h
%{_libdir}/libadolc.so
%{_libdir}/pkgconfig/adolc.pc
%files doc
%defattr(-,root,root)
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/*
%changelog