Пакет CoinCppAD: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | %define triver 10 %define somver 0 %define sover %somver.0.0 Name: CoinCppAD Version: 20130000.3 Release: alt1.svn20140514 Summary: A Package for Differentiation of C++ Algorithms License: CPL v1.0 or GPL v2.0 Group: Sciences/Mathematics Url: http://www.coin-or.org/projects/CppAD.xml Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> # https://projects.coin-or.org/svn/CppAD/trunk Source: %name-%version.tar.gz BuildPreReq: doxygen graphviz libglpk-devel CoinBuildTools gcc-c++ BuildPreReq: libCoinUtils-devel boost-devel libadolc-devel BuildPreReq: libipopt-devel liblapack-devel BuildPreReq: gcc-fortran libsacado%triver-devel BuildPreReq: texlive-latex-recommended %description Given a C++ algorithm that computes function values, CppAD generates an algorithm that computes corresponding derivative values. %package -n lib%name Summary: Shared libraries of COIN-OR CppAD Group: System/Libraries %description -n lib%name Given a C++ algorithm that computes function values, CppAD generates an algorithm that computes corresponding derivative values. This package contains shared libraries of COIN-OR CppAD. %package -n lib%name-devel Summary: Development files of COIN-OR CppAD Group: Development/C++ Requires: lib%name = %version-%release %description -n lib%name-devel Given a C++ algorithm that computes function values, CppAD generates an algorithm that computes corresponding derivative values. This package contains development files of COIN-OR CppAD. %package -n lib%name-devel-static Summary: Static libraries of COIN-OR CppAD Group: Development/C++ Requires: lib%name-devel = %version-%release %description -n lib%name-devel-static Given a C++ algorithm that computes function values, CppAD generates an algorithm that computes corresponding derivative values. This package contains static libraries of COIN-OR CppAD. %package -n lib%name-devel-doc Summary: Documentation for COIN-OR CppAD Group: Development/Documentation BuildArch: noarch %description -n lib%name-devel-doc Given a C++ algorithm that computes function values, CppAD generates an algorithm that computes corresponding derivative values. This package contains development documentation for COIN-OR CppAD. %prep %setup %build %autoreconf export ADOLC_DIR=%prefix export SACADO_DIR=%prefix export IPOPT_DIR=%prefix export BOOST_DIR=%prefix export CXX_FLAGS="%optflags %optflags_shared" %configure \ --with-Documentation \ --with-stdvector %make_build V=1 ./build.sh doxygen %install mv doxydoc doc %makeinstall_std install -p -m644 cppad/configure.hpp %buildroot%_includedir/cppad/ mkdir %buildroot%_libdir/tmp pushd %buildroot%_libdir/tmp for i in libcppad_ipopt; do ar x ../$i.a g++ -shared -Wl,-soname,$i.so.%somver *.o \ -o ../$i.so.%sover -lipopt ln -s $i.so.%sover ../$i.so.%somver ln -s $i.so.%somver ../$i.so rm -f * done popd rmdir %buildroot%_libdir/tmp install -d %buildroot%_pkgconfigdir mv %buildroot%_datadir/pkgconfig/cppad.pc \ %buildroot%_pkgconfigdir/ %files -n lib%name %doc AUTHORS COPYING ChangeLog NEWS README %_libdir/*.so.* %files -n lib%name-devel %_libdir/*.so %_includedir/* %_pkgconfigdir/* #files -n lib%name-devel-static #_libdir/*.a %files -n lib%name-devel-doc %_docdir/cppad-* %changelog * Thu May 15 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 20130000.3-alt1.svn20140514 - New snapshot * Tue Dec 03 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 20130000.3-alt1.svn20131202 - Version 20130000.3 * Tue Sep 10 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 20130000.2-alt1.svn20130908 - Version 20130000.2 * Tue Feb 12 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 20130000.1-alt2.svn20130124 - Added cppad/configure.hpp * Tue Feb 12 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 20130000.1-alt1.svn20130124 - Version 20130000.1 * Wed Sep 05 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 20120805-alt1.svn20120806 - Version 20120805 * Sun Feb 12 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 20120130-alt1.svn20120211 - Version 20120130 * Wed Sep 07 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 20110906-alt1.svn20110907 - Version 20110906 * Sat Apr 23 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 20110419-alt1.svn20110420 - Version 20110419 * Wed Apr 13 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 20100821-alt3.svn20101129.3 - Built with GotoBLAS2 instead of ATLAS - Disabled devel-static package * Thu Mar 17 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 20100821-alt3.svn20101129.2 - Rebuilt with Boost 1.46.1 * Mon Feb 28 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 20100821-alt3.svn20101129.1 - Rebuilt for debuginfo * Sat Dec 18 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 20100821-alt3.svn20101129 - New snapshot * Mon Oct 18 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 20100821-alt2 - Rebuilt for soname set-versions * Fri Sep 03 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 20100821-alt1 - Initial build for Sisyphus |