source: trunk/adolc.spec.in @ 764

Last change on this file since 764 was 654, checked in by kulshres, 4 years ago

pkgconfig support into the spec file too

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
15BuildRequires:  gcc-c++ libstdc++-devel
16BuildRequires:  ColPack-devel
17BuildRequires:  boost-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 libadolc2
33Summary:        Algorithmic Differentiation Library for C/C++
34Group:          Development/Languages/C and C++
35
36%description -n libadolc2
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:       libadolc2 = %{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
85
86%build
87autoreconf -v --install --force
88%configure --prefix=/usr
89make %{_smp_mflags}
90
91%install
92%makeinstall
93install -d %{buildroot}%{_datadir}/doc/packages/%{name}
94install -m 644 README AUTHORS BUGS LICENSE INSTALL TODO %{buildroot}%{_datadir}/doc/packages/%{name}
95install -m 644 ADOL-C/doc/adolc-manual.pdf %{buildroot}%{_datadir}/doc/packages/%{name}
96install -m 644 ADOL-C/doc/short_ref.pdf %{buildroot}%{_datadir}/doc/packages/%{name}
97find %{buildroot} -type f -name '*.la' -delete -print
98
99%clean
100rm -rf %{buildroot}
101rm -rf %{_builddir}/%{name}-%{packver}
102
103%post -n libadolc2 -p /sbin/ldconfig
104%postun -n libadolc2 -p /sbin/ldconfig
105
106%files -n libadolc2
107%defattr(-,root,root)
108%{_libdir}/libadolc.so.*
109
110%files devel
111%defattr(-,root,root)
112%dir %{_includedir}/adolc
113%dir %{_includedir}/adolc/drivers
114%dir %{_includedir}/adolc/sparse
115%dir %{_includedir}/adolc/tapedoc
116%dir %{_libdir}/pkgconfig
117%{_includedir}/adolc/*.h
118%{_includedir}/adolc/drivers/*.h
119%{_includedir}/adolc/sparse/*.h
120%{_includedir}/adolc/tapedoc/*.h
121%{_libdir}/libadolc.so
122%{_libdir}/pkgconfig/adolc.pc
123
124%files doc
125%defattr(-,root,root)
126%dir %{_datadir}/doc/packages/%{name}
127%{_datadir}/doc/packages/%{name}/*
128
129%changelog
Note: See TracBrowser for help on using the repository browser.