source: trunk/adolc.spec @ 161

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

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

  • 'master' of 'gitclone': (8 commits) Add missing files to dist Add a rpm spec file add some comments and add else cases to ifs typo fix more improvements in ColPack? checking adjust Makefile.am overall to not explicitly need COLPACK_LIBS refactor colpack searching fix in-tree Colpack location for seperated build

Details of the commits:
ommit f925eb1d39f53bf893280f872407e45b16901cd1
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Sep 23 17:58:41 2010 +0200

Add missing files to dist

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

commit 37d5799660bbb042f02518f22c4034a3541b5b26
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Sep 23 17:57:51 2010 +0200

Add a rpm spec file

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

commit 25a41aac1c58214d3d35b4321d90a5fbfb1d2a5d
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Sep 16 15:09:04 2010 +0200

add some comments and add else cases to ifs

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

commit 1fc5a86ce4340692d0e486b6df2a41af5d138e2b
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Sep 16 14:52:20 2010 +0200

typo fix

it's COLPACK_LIBDIR not COLPACK_DIR

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

commit f8eb90f4962914ccf665617e1a1a7f8d07c066d4
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Sep 16 14:42:15 2010 +0200

more improvements in ColPack? checking

check for the header file too and then test link a C++ program
use readlink to find the real paths for the includedir and libdir
remove the old .tmp from libdir, it may contain junk.
use $AR instead of ar, we may be cross compiling.

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

commit 4db5d1eeb1925f996f244184683c6c649b1262fe
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Wed Sep 15 18:53:00 2010 +0200

adjust Makefile.am overall to not explicitly need COLPACK_LIBS

in case it is dynamically linked to libadolc.so this information
will be forwarded to the executable automatically too. in the
static linking case libadolc.{so,a} already contain everything

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

commit 2c2a4a433c6716db317b1883e9bd568a267cd7e4
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Wed Sep 15 16:38:16 2010 +0200

refactor colpack searching

link with ColPack? statically if ColPack? resides inside
the source tree.

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

commit b950c231857d9fcfcd3f70e1253cc11b9e2d6f5c
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Wed Sep 15 16:02:29 2010 +0200

fix in-tree Colpack location for seperated build

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

File size: 4.5 KB
Line 
1# spec file for package adolc (Version 2.1.9-trunk)
2
3# norootforbuild
4
5%define ver %(echo 2.1.9-trunk | sed s,-,_, )
6%define packver 2.1.9-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%{_libdir}/libadolc.so.*
115
116%files devel
117%dir %{_includedir}/adolc
118%dir %{_includedir}/adolc/drivers
119%dir %{_includedir}/adolc/sparse
120%dir %{_includedir}/adolc/tapedoc
121%{_includedir}/adolc/*.h
122%{_includedir}/adolc/drivers/*.h
123%{_includedir}/adolc/sparse/*.h
124%{_includedir}/adolc/tapedoc/*.h
125%{_libdir}/libadolc.so
126%{_libdir}/libadolc.a
127
128%files doc
129%dir %{_datadir}/doc/packages/%{name}
130%{_datadir}/doc/packages/%{name}/*
131
132%changelog
Note: See TracBrowser for help on using the repository browser.