Пакет libitpack: 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 | %define sonamever 0 %define sover %sonamever.0.0 Name: libitpack Version: 1998 Release: alt4 Summary: Solving large sparse linear systems by accelerated iterative algorithms License: Free Group: Sciences/Mathematics Url: http://rene.ma.utexas.edu/CNA/ITPACK/ Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> Source: %name-%version.tar.gz BuildPreReq: gcc-fortran libgfortran-devel-static /usr/bin/latex %description ITPACK, developed at the Center for Numerical Analysis, the University of Texas at Austin, is a collection of subroutines for solving large sparse linear systems by adaptive accelerated iterative algorithms. %package devel Summary: Developments files for ITPACK Group: Development/Other Requires: %name = %version-%release %description devel ITPACK, developed at the Center for Numerical Analysis, the University of Texas at Austin, is a collection of subroutines for solving large sparse linear systems by adaptive accelerated iterative algorithms. This package contains developments files for ITPACK. %package devel-static Summary: Static libraries of ITPACK Group: Development/Other %description devel-static ITPACK, developed at the Center for Numerical Analysis, the University of Texas at Austin, is a collection of subroutines for solving large sparse linear systems by adaptive accelerated iterative algorithms. This package contains static libraries of ITPACK. %package devel-doc Summary: Documentation and test sources for ITPACK Group: Development/Documentation BuildArch: noarch %description devel-doc ITPACK, developed at the Center for Numerical Analysis, the University of Texas at Austin, is a collection of subroutines for solving large sparse linear systems by adaptive accelerated iterative algorithms. This package contains development documentation for ITPACK and test sources. %package -n itpack-tests Summary: Executable files for test ITPACK Group: Sciences/Mathematics %description -n itpack-tests ITPACK, developed at the Center for Numerical Analysis, the University of Texas at Austin, is a collection of subroutines for solving large sparse linear systems by adaptive accelerated iterative algorithms. This package contains executable files for test ITPACK. %prep %setup %build function buildIt() { f77 -g -pipe -O -Wall -c $1.f -o $1.o ar r %{name}_$2.a $1.o ranlib %{name}_$2.a f77 -g -pipe -O -Wall %optflags_shared -c $1.f -o $1-sh.o f77 -shared -Wl,-soname,%{name}_$2.so.%sonamever \ -o %{name}_$2.so.%sover $1-sh.o -lm -lgfortran } buildIt src2c 2c buildIt dsrc2c 2c_d buildIt srcv2d v2d function buildTest() { f77 -g -pipe -O -Wall -c $1.f -o $1.o f77 -o test-itpack_$2 $1.o -L. -litpack_$2 -lm -lgfortran ./test-itpack_$2 } buildTest tst2c 2c buildTest dtst2c 2c_d buildTest tstv2d v2d for i in $(ls *.tex); do latex $i done %install install -d %buildroot%_bindir install -d %buildroot%_libdir install -d %buildroot%_docdir/%name install -m755 test* %buildroot%_bindir install -m644 *.so* %buildroot%_libdir install -m644 *.a %buildroot%_libdir install -m644 *.dvi *tst*.f %buildroot%_docdir/%name pushd %buildroot%_libdir for i in $(ls *.so.%sover|sed -e 's/\.%sover//'); do ln -s $i.%sonamever $i done popd %files %_libdir/*.so.* %files devel %_libdir/*.so %files devel-static %_libdir/*.a %files devel-doc %_docdir/%name %files -n itpack-tests %_bindir/* %changelog * Fri Mar 18 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1998-alt4 - Added -g into compiler flags * Thu Feb 10 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1998-alt3 - Rebuilt for debuginfo * Wed Oct 20 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1998-alt2 - Rebuilt for soname set-versions * Sat Apr 25 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1998-alt1 - Initial build for Sisyphus |