source: branches/MPI/adolc.spec.in @ 253

Last change on this file since 253 was 194, checked in by kulshres, 9 years ago

remove macro from rpm version

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

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