Package clapack: 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 | %global _unpackaged_files_terminate_build 1 %define sover 0 %def_enable compat_lapack # full xblas implementation requires fortran support, # reduced C-only implementation will yield some symbols undefined %def_enable fortran Name: clapack Version: 3.2.1 Release: alt2.E2K.3 Summary: C version of LAPACK License: BSD Group: Sciences/Mathematics Url: http://www.netlib.org/clapack/ Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> Source: %name-%version.tar Source1: make.inc Source2: lapack.pc BuildPreReq: libopenblas-devel %{?_enable_fortran:libxblas-devel} BuildRequires: libf2c-ng-devel %description The CLAPACK library was built using a Fortran to C conversion utility called f2c. The entire Fortran 77 LAPACK library is run through f2c to obtain C code, and then modified to improve readability. CLAPACK's goal is to provide LAPACK for someone who does not have access to a Fortran compiler. %package -n lib%name Summary: Shared library of CLAPACK Group: System/Libraries %description -n lib%name The CLAPACK library was built using a Fortran to C conversion utility called f2c. The entire Fortran 77 LAPACK library is run through f2c to obtain C code, and then modified to improve readability. CLAPACK's goal is to provide LAPACK for someone who does not have access to a Fortran compiler. This package contains shared library of CLAPACK. %package -n lib%name-devel Summary: Development files of CLAPACK Group: Development/C Requires: lib%name = %version-%release %description -n lib%name-devel The CLAPACK library was built using a Fortran to C conversion utility called f2c. The entire Fortran 77 LAPACK library is run through f2c to obtain C code, and then modified to improve readability. CLAPACK's goal is to provide LAPACK for someone who does not have access to a Fortran compiler. This package contains development files of CLAPACK. %package -n liblapack-devel Summary: Provide system LAPACK interface using CLAPACK Group: Development/Other Requires: lib%name-devel = %version-%release Epoch: 2 %description -n liblapack-devel Install files necessary to use CLAPACK as system-wide liblapack replacement. %prep %setup install -p -m644 %SOURCE1 . %build %if_disabled fortran sed -i 's/^USEXBLAS/#USEXBLAS/' make.inc %endif # Use system f2c-ng sed -i 's|../../F2CLIBS|%_libdir|' make.inc %make_build -C INSTALL %make_build -C SRC gcc -shared -Wl,--whole-archive lib%name.a -Wl,--no-whole-archive \ -Wl,-soname,lib%name.so.%sover -o lib%name.so.%sover \ -lf2c -lf2c-dm -lopenblas %{?_enable_fortran:-lxblas} -lm %install install -d %buildroot%_includedir install -p -m644 INCLUDE/* BLAS/WRAP/*.h %buildroot%_includedir rm %buildroot%_includedir/f2c.h install -d %buildroot%_libdir install -m644 lib%name.so.%sover %buildroot%_libdir ln -s lib%name.so.%sover %buildroot%_libdir/lib%name.so %if_enabled compat_lapack install -D -m644 -t %buildroot%_pkgconfigdir/ %{SOURCE2} ln -sT libclapack.so %buildroot%_libdir/liblapack.so %endif %files -n lib%name %doc COPYING %_libdir/*.so.* %files -n lib%name-devel %_includedir/* %_libdir/libclapack.so %if_enabled compat_lapack %files -n liblapack-devel %_libdir/liblapack.so %_pkgconfigdir/*.pc %endif %changelog * Sat Jun 11 2022 Andrew Savchenko <bircoph@altlinux.org> 3.2.1-alt2.E2K.3 - Use system libf2c-ng * Mon Jun 06 2022 Andrew Savchenko <bircoph@altlinux.org> 3.2.1-alt2.E2K.2 - Disable xblas if Fortran is disabled: reduced xblas C-only implementation is not sufficient for clapack. * Fri Jun 03 2022 Andrew Savchenko <bircoph@altlinux.org> 3.2.1-alt2.E2K.1 - Provide liblapack-devel subsitute. * Sat Aug 11 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.2.1-alt2 - Built with OpenBLAS instead of GotoBLAS2 * Wed Dec 21 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.2.1-alt1 - Initial build for Sisyphus |