source: trunk/adolc.spec @ 167

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

Squashed merge branch 'master' of 'gitclone' into svn

  • 'master' of 'gitclone': (5 commits) add colpack to examples build too update windows files make readlink calls more portable work around old autotools version change and small fixes for the obs

Details of the commits:
commit 94ea271ec616f7465309aa857bc44a5192f295af
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Sep 27 14:39:26 2010 +0200

add colpack to examples build too

commit f57d2392671c42600e0d023951f255f062e86d36
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Mon Sep 27 14:33:54 2010 +0200

update windows files

commit d4e3142afab3d490ade8df54c4be7e84e7a0ad82
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Sat Sep 25 15:56:28 2010 +0200

make readlink calls more portable

the switch -f does nearly the same as -e and is older, so use that
to be portable on older systems. not sure if there are readlink versions
even withouf -f

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

commit 864d51c377b413a6e40abdeecb5893bb4c74e85a
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Sat Sep 25 15:54:42 2010 +0200

work around old autotools

older versions don't seem to define ac_pwd

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

commit 4b4f54f073ba7bc3f775f6f35d2fe3396f0915bd
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Sep 23 19:52:42 2010 +0200

version change and small fixes for the obs

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

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