1 | # spec file for package adolc (Version @ADOLC_VERSION@.@ADOLC_SUBVERSION@.@ADOLC_PATCHLEVEL@) |
---|
2 | |
---|
3 | # norootforbuild |
---|
4 | |
---|
5 | %define packver @PACKAGE_VERSION@ |
---|
6 | |
---|
7 | Name: adolc |
---|
8 | Version: @ADOLC_VERSION@.@ADOLC_SUBVERSION@.@ADOLC_PATCHLEVEL@ |
---|
9 | Release: 0.1 |
---|
10 | License: GPLv2 or CPL |
---|
11 | Summary: Algorithmic Differentiation Library for C/C++ |
---|
12 | Url: http://projects.coin-or.org/ADOL-C |
---|
13 | Group: Development/Languages/C and C++ |
---|
14 | Source: %{name}-%{packver}.tar.bz2 |
---|
15 | Source1: ColPack.tar.gz |
---|
16 | BuildRequires: gcc-c++ libstdc++-devel |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
---|
18 | AutoReqProv: on |
---|
19 | |
---|
20 | %description |
---|
21 | The package ADOL-C (Automatic Differentiation by OverLoading in C++) |
---|
22 | facilitates the evaluation of first and higher derivatives of vector |
---|
23 | functions that are defined by computer programs written in C or |
---|
24 | C++. The resulting derivative evaluation routines may be called from |
---|
25 | C/C++, Fortran, or any other language that can be linked with C. |
---|
26 | |
---|
27 | The numerical values of derivative vectors are obtained free of |
---|
28 | truncation errors at a small multiple of the run time and randomly |
---|
29 | accessed memory of the given function evaluation program. |
---|
30 | |
---|
31 | %package -n libadolc1 |
---|
32 | Summary: Algorithmic Differentiation Library for C/C++ |
---|
33 | Group: Development/Languages/C and C++ |
---|
34 | |
---|
35 | %description -n libadolc1 |
---|
36 | The package ADOL-C (Automatic Differentiation by OverLoading in C++) |
---|
37 | facilitates the evaluation of first and higher derivatives of vector |
---|
38 | functions that are defined by computer programs written in C or |
---|
39 | C++. The resulting derivative evaluation routines may be called from |
---|
40 | C/C++, Fortran, or any other language that can be linked with C. |
---|
41 | |
---|
42 | The numerical values of derivative vectors are obtained free of |
---|
43 | truncation errors at a small multiple of the run time and randomly |
---|
44 | accessed memory of the given function evaluation program. |
---|
45 | |
---|
46 | %package devel |
---|
47 | Summary: Algorithmic Differentiation Library for C/C++ -- development files |
---|
48 | Group: Development/Languages/C and C++ |
---|
49 | Requires: libadolc1 = %{version} |
---|
50 | |
---|
51 | %description devel |
---|
52 | The package ADOL-C (Automatic Differentiation by OverLoading in C++) |
---|
53 | facilitates the evaluation of first and higher derivatives of vector |
---|
54 | functions that are defined by computer programs written in C or |
---|
55 | C++. The resulting derivative evaluation routines may be called from |
---|
56 | C/C++, Fortran, or any other language that can be linked with C. |
---|
57 | |
---|
58 | The numerical values of derivative vectors are obtained free of |
---|
59 | truncation errors at a small multiple of the run time and randomly |
---|
60 | accessed memory of the given function evaluation program. |
---|
61 | |
---|
62 | This package provides the development environment for adolc |
---|
63 | |
---|
64 | %package doc |
---|
65 | Summary: Algorithmic Differentiation Library for C/C++ -- documentation |
---|
66 | Group: Development/Languages/C and C++ |
---|
67 | BuildArch: noarch |
---|
68 | |
---|
69 | %description doc |
---|
70 | The package ADOL-C (Automatic Differentiation by OverLoading in C++) |
---|
71 | facilitates the evaluation of first and higher derivatives of vector |
---|
72 | functions that are defined by computer programs written in C or |
---|
73 | C++. The resulting derivative evaluation routines may be called from |
---|
74 | C/C++, Fortran, or any other language that can be linked with C. |
---|
75 | |
---|
76 | The numerical values of derivative vectors are obtained free of |
---|
77 | truncation errors at a small multiple of the run time and randomly |
---|
78 | accessed memory of the given function evaluation program. |
---|
79 | |
---|
80 | This package provides the userÂŽs manual for adolc |
---|
81 | |
---|
82 | %prep |
---|
83 | %setup -q -n %{name}-%{packver} -b 1 |
---|
84 | pushd ThirdParty |
---|
85 | mv %{_builddir}/ColPack/* ColPack/ |
---|
86 | rm -rf %{_builddir}/ColPack |
---|
87 | popd |
---|
88 | |
---|
89 | %build |
---|
90 | pushd ThirdParty/ColPack |
---|
91 | make %{_smp_mflags} |
---|
92 | popd |
---|
93 | autoreconf -v --install --force |
---|
94 | %configure --prefix=/usr |
---|
95 | make %{_smp_mflags} |
---|
96 | |
---|
97 | %install |
---|
98 | %makeinstall |
---|
99 | install -d %{buildroot}%{_datadir}/doc/packages/%{name} |
---|
100 | install -m 644 README AUTHORS BUGS LICENSE INSTALL TODO %{buildroot}%{_datadir}/doc/packages/%{name} |
---|
101 | install -m 644 ADOL-C/doc/adolc-manual.pdf %{buildroot}%{_datadir}/doc/packages/%{name} |
---|
102 | install -m 644 ADOL-C/doc/short_ref.pdf %{buildroot}%{_datadir}/doc/packages/%{name} |
---|
103 | find %{buildroot} -type f -name '*.la' -delete -print |
---|
104 | |
---|
105 | %clean |
---|
106 | rm -rf %{buildroot} |
---|
107 | rm -rf %{_builddir}/%{name}-%{packver} |
---|
108 | |
---|
109 | %post -n libadolc1 -p /sbin/ldconfig |
---|
110 | %postun -n libadolc1 -p /sbin/ldconfig |
---|
111 | |
---|
112 | %files -n libadolc1 |
---|
113 | %defattr(-,root,root) |
---|
114 | %{_libdir}/libadolc.so.* |
---|
115 | |
---|
116 | %files devel |
---|
117 | %defattr(-,root,root) |
---|
118 | %dir %{_includedir}/adolc |
---|
119 | %dir %{_includedir}/adolc/drivers |
---|
120 | %dir %{_includedir}/adolc/sparse |
---|
121 | %dir %{_includedir}/adolc/tapedoc |
---|
122 | %{_includedir}/adolc/*.h |
---|
123 | %{_includedir}/adolc/drivers/*.h |
---|
124 | %{_includedir}/adolc/sparse/*.h |
---|
125 | %{_includedir}/adolc/tapedoc/*.h |
---|
126 | %{_libdir}/libadolc.so |
---|
127 | %{_libdir}/libadolc.a |
---|
128 | |
---|
129 | %files doc |
---|
130 | %defattr(-,root,root) |
---|
131 | %dir %{_datadir}/doc/packages/%{name} |
---|
132 | %{_datadir}/doc/packages/%{name}/* |
---|
133 | |
---|
134 | %changelog |
---|