Package pnetcdf: 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 171 172 173 174 175 176 177 178 179 180 181 | %define _unpackaged_files_terminate_build 1 %define _stripped_files_terminate_build 1 %define mpiimpl openmpi %define mpidir %_libdir/%mpiimpl %define sover 0 Name: pnetcdf Version: 1.8.1 Release: alt3.1 Summary: Parallel netCDF: A High Performance API for NetCDF File Access License: Open source Group: File tools Url: http://trac.mcs.anl.gov/projects/parallel-netcdf Source: %name-%version.tar Patch1: %name-%version-alt-build.patch BuildRequires(pre): %mpiimpl-devel BuildRequires: flex gcc-fortran BuildRequires: ghostscript-utils texlive-latex-base BuildRequires: tex(dehypht.tex) %description Parallel netCDF (PnetCDF) is a library providing high-performance I/O while still maintaining file-format compatibility with Unidata's NetCDF. NetCDF gives scientific programmers a space-efficient and portable means for storing data. However, it does so in a serial manner, making it difficult to achieve high I/O performance. By making some small changes to the API specified by NetCDF, we can use MPI-IO and its collective operations. %package -n lib%name Summary: Shared library of Parallel netCDF Group: System/Libraries %description -n lib%name Parallel netCDF (PnetCDF) is a library providing high-performance I/O while still maintaining file-format compatibility with Unidata's NetCDF. NetCDF gives scientific programmers a space-efficient and portable means for storing data. However, it does so in a serial manner, making it difficult to achieve high I/O performance. By making some small changes to the API specified by NetCDF, we can use MPI-IO and its collective operations. This package contains shared library of Parallel netCDF. %package -n lib%name-devel Summary: Development files of Parallel netCDF Group: Development/Other Requires: lib%name = %EVR Requires: %mpiimpl-devel %description -n lib%name-devel Parallel netCDF (PnetCDF) is a library providing high-performance I/O while still maintaining file-format compatibility with Unidata's NetCDF. NetCDF gives scientific programmers a space-efficient and portable means for storing data. However, it does so in a serial manner, making it difficult to achieve high I/O performance. By making some small changes to the API specified by NetCDF, we can use MPI-IO and its collective operations. This package contains development files of Parallel netCDF. %package -n lib%name-devel-doc Summary: Documentation and examples for Parallel netCDF Group: Development/Documentation BuildArch: noarch %description -n lib%name-devel-doc Parallel netCDF (PnetCDF) is a library providing high-performance I/O while still maintaining file-format compatibility with Unidata's NetCDF. NetCDF gives scientific programmers a space-efficient and portable means for storing data. However, it does so in a serial manner, making it difficult to achieve high I/O performance. By making some small changes to the API specified by NetCDF, we can use MPI-IO and its collective operations. This package contains development documentation and examples for Parallel netCDF. %prep %setup %patch1 -p2 rm -fR autom4te.cache %build sed -i -e "s|@LIB_SUFFIX@|%_libsuff|g" pnetcdf_pc.in mpi-selector --set %mpiimpl source %mpidir/bin/mpivars.sh export OMPI_LDFLAGS="-Wl,--as-needed,-rpath,%mpidir/lib -L%mpidir/lib" %add_optflags %optflags_shared -DNDEBUG -Df2cFortran -I%mpidir/lib export FCFLAGS="%optflags -fallow-argument-mismatch" export F90FLAGS="%optflags" %autoreconf %configure \ --with-mpi=%mpidir \ --enable-mpi-io-test \ --enable-fortran \ --enable-strict \ %nil %make SOVER=%sover LIB_SUFFIX=%_libsuff %make -C doc %install source %mpidir/bin/mpivars.sh export OMPI_LDFLAGS="-Wl,--as-needed,-rpath,%mpidir/lib -L%mpidir/lib" %makeinstall SOVER=%sover LIB_SUFFIX=%_libsuff # fix pkg-config file sed -i -e "s|%buildroot||" %buildroot%_pkgconfigdir/*.pc rm -f %buildroot%_libdir/*.so. rm -f %buildroot%_libdir/*.a %files %doc COPYRIGHT CREDITS README* %_bindir/* %_man1dir/* %files -n lib%name %_libdir/*.so.* %files -n lib%name-devel %_includedir/* %_libdir/*.so %_man3dir/* %_pkgconfigdir/*.pc %files -n lib%name-devel-doc %doc doc/*.pdf doc/*.txt examples %changelog * Fri Apr 05 2024 Ilya Kurdyukov <ilyakurdyukov@altlinux.org> 1.8.1-alt3.1 - The compiler for e2k finally knowns -fallow-argument-mismatch. * Wed Sep 01 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 1.8.1-alt3 - Fixed build with LTO. * Tue Apr 13 2021 Grigory Ustinov <grenka@altlinux.org> 1.8.1-alt2.3 - Fixed -fallow-argument-mismatch for %%e2k arches. * Thu Apr 08 2021 Grigory Ustinov <grenka@altlinux.org> 1.8.1-alt2.2 - Fixed FTBFS. * Fri Apr 03 2020 Igor Vlasenko <viy@altlinux.ru> 1.8.1-alt2.1 - NMU: applied logoved fixes * Tue Jul 02 2019 Igor Vlasenko <viy@altlinux.ru> 1.8.1-alt2 - NMU: fixed LIB_SUFFIX= on non-x86_64 * Mon Sep 18 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 1.8.1-alt1 - Updated to upstream version 1.8.1. * Thu Mar 12 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.6.0-alt1 - Version 1.6.0 * Wed Jul 09 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5.0-alt2 - Version 1.5.0 * Mon Jun 09 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5.0-alt1.pre1 - Version 1.5.0.pre1 * Mon Nov 18 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.4.0-alt1 - Version 1.4.0 * Fri Feb 08 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.3.1-alt1 - Version 1.3.1 * Fri Sep 14 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.3.0-alt1 - Initial build for Sisyphus |