Пакет libhdf5-8-seq: 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 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 | #TODO: examples packing %define oname hdf5 %define sover 8 %define cpp_sover 8 %define f_sover 8 %define hl_sover 8 %define hdfdir %_libdir/%oname-seq %define priority 30 Name: lib%oname-%sover-seq Version: 1.8.13 Release: alt1.qa4 Summary: Hierarchical Data Format 5 library Group: System/Libraries License: Nearly BSD, but changed sources must be marked Url: http://www.hdfgroup.org/HDF5/ Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> Source: ftp://ftp.hdfgroup.org/HDF5/current/src/%oname-%version.tar.bz2 Conflicts: lib%oname-mpi < 1.8.3-alt5 Provides: lib%oname = %version-%release Provides: lib%oname-%sover = %version-%release Conflicts: lib%oname-%sover < %version-%release Obsoletes: lib%oname-%sover < %version-%release %ifarch x86_64 Provides: lib%oname.so.%sover()(64bit) Provides: lib%{oname}_hl.so.%sover()(64bit) %else Provides: lib%oname.so.%sover Provides: lib%{oname}_hl.so.%sover %endif Requires(post,preun): alternatives # Automatically added by buildreq on Sat Sep 15 2007 BuildRequires: gcc-c++ libssl-devel zlib-devel %{?_enable_fortran:BuildRequires: gcc-fortran} %description HDF5 is a completely new Hierarchical Data Format product consisting of a data format specification and a supporting library implementation. HDF5 is designed to address some of the limitations of the older HDF product and to address current and anticipated requirements of modern systems and applications. %package -n lib%oname-devel Summary: HDF5 library development package Group: Development/C Requires(post,preun): alternatives Requires: libstdc++-devel zlib-devel %{?_enable_fortran:Requires: libgfortran-devel} Requires: lib%oname = %version-%release Conflicts: lib%oname-mpi-devel < 1.8.3-alt5 %description -n lib%oname-devel Header files for HDF5 library. %package -n %oname-%sover-tools Summary: HDF5 tools Group: Development/Tools Requires(post,preun): alternatives Requires: lib%oname = %version-%release Conflicts: %oname-mpi-tools < 1.8.3-alt5 Conflicts: lib%oname < %version-%release Provides: %oname-tools = %version-%release %description -n %oname-%sover-tools HDF5 is a completely new Hierarchical Data Format product consisting of a data format specification and a supporting library implementation. HDF5 is designed to address some of the limitations of the older HDF product and to address current and anticipated requirements of modern systems and applications. This package contains tools for work with HDF5. %package -n %oname-examples Summary: HDF5 examples Group: Development/Documentation BuildArch: noarch %description -n %oname-examples HDF5 is a completely new Hierarchical Data Format product consisting of a data format specification and a supporting library implementation. HDF5 is designed to address some of the limitations of the older HDF product and to address current and anticipated requirements of modern systems and applications. This package contains examples for HDF5. %prep %setup -n %oname-%version %ifarch %e2k # unsupported by lcc as of 1.21.21 sed -i -e 's,-Wlogical-op,,' \ -e 's,-Wvla,,' \ -e 's,-Wsync-nand,,' \ -e 's,-Wdouble-promotion,,' \ CMakeLists.txt config/gnu-flags %endif %build sed -i -e 's/(SOVER)/%sover/' src/H5detect.c %autoreconf %add_optflags -fno-strict-aliasing %configure \ --bindir=%hdfdir/bin \ --libdir=%hdfdir/lib \ --includedir=%hdfdir/include \ --enable-cxx \ --enable-linux-lfs \ --enable-shared \ --enable-production \ --with-pthread \ --with-ssl \ --with-zlib \ %{subst_enable fortran} \ %{?_enable_fortran:FC=f95} subst "s|^LT=.*|LT=../libtool|g" c++/src/Makefile c++/test/Makefile cp src/lib%oname.settings src/lib%oname-%sover.settings %make_build %install export LD_LIBRARY_PATH="../src/.libs" install -d %buildroot%hdfdir/include %makeinstall_std mv %buildroot%hdfdir/lib/lib%oname.settings \ %buildroot%hdfdir/lib/lib%oname-%sover.settings install -d %buildroot%_docdir mv %buildroot%_datadir/hdf5_examples %buildroot%_docdir/ install -d %buildroot%_includedir pushd %buildroot%hdfdir/include for i in $(ls); do ln -s %hdfdir/include/$i %buildroot%_includedir/$i done popd # alternatives install -d %buildroot%_altdir mkdir -p %buildroot%_libdir pushd %buildroot%hdfdir/lib for i in $(ls *.so.*) $(ls *.settings); do ln -s ../..%hdfdir/lib/$i %buildroot%_libdir/ echo "%_libdir/$i %hdfdir/lib/$i %priority" >> \ %buildroot%_altdir/%name.alternatives done for i in $(ls *.so); do echo "%_libdir/$i %hdfdir/lib/$i %priority" >> \ %buildroot%_altdir/%name-devel.alternatives done popd pushd %buildroot%hdfdir/bin for i in $(ls); do echo "%_bindir/$i %hdfdir/bin/$i %priority" >> \ %buildroot%_altdir/%oname-tools.alternatives done popd install -d %buildroot%_pkgconfigdir cat <<EOF >%buildroot%_pkgconfigdir/%oname-seq.pc prefix=%prefix exec_prefix=%prefix libdir=%hdfdir/lib includedir=%hdfdir/include Name: %oname Description: Hierarchical Data Format 5 library Version: %version %if_enabled fortran Libs: -lhdf5hl_fortran -lhdf5_hl_cpp -lhdf5_hl -lhdf5_fortran -lhdf5_cpp -lhdf5 -lgfortran -lstdc++ -lz %else Libs: -lhdf5_hl_cpp -lhdf5_hl -lhdf5_cpp -lhdf5 -lstdc++ -lz %endif Cflags: -I%hdfdir/include EOF echo "%_pkgconfigdir/%oname.pc %_pkgconfigdir/%oname-seq.pc %priority" >> \ %buildroot%_altdir/%name-devel.alternatives %files %doc COPYING README.txt release_docs/{HISTORY*,RELEASE.txt} %ghost %_libdir/lib*.so.* %hdfdir/lib/*.so.* # used to show configuration at runtime %hdfdir/lib/libhdf5-%sover.settings %_altdir/%name.alternatives %files -n lib%oname-devel %hdfdir/lib/lib*.so %hdfdir/include/* %_includedir/* %_pkgconfigdir/* %_altdir/%name-devel.alternatives %files -n %oname-%sover-tools %hdfdir/bin/* %_altdir/%oname-tools.alternatives %files -n %oname-examples %_docdir/hdf5_examples %changelog * Wed Oct 31 2018 Michael Shigorin <mike@altlinux.org> 1.8.13-alt1.qa4 - Replace e2k arch name with %%e2k macro (grenka@) * Mon Oct 09 2017 Michael Shigorin <mike@altlinux.org> 1.8.13-alt1.qa3 - E2K: avoid lcc-unsupported options - introduce fortran knob (on by default) * Thu May 11 2017 Andrey Cherepanov <cas@altlinux.org> 1.8.13-alt1.qa2 - Fix library names in pkgconfig file * Fri Apr 08 2016 Gleb F-Malinovskiy (qa) <qa_glebfm@altlinux.org> 1.8.13-alt1.qa1 - Rebuilt for gcc5 C++11 ABI. * Wed Jun 04 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.13-alt1 - Version 1.8.13 * Thu Sep 26 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.11-alt2 - Added links to headers into %_includedir * Wed Jun 26 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.11-alt1 - Version 1.8.11 * Tue Oct 02 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.9-alt2 - Rebuilt with gcc 4.7 * Thu Sep 13 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.9-alt1 - Version 1.8.9 * Fri Jun 22 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.8-alt2 - Set native directory as %_libdir/%oname-seq instead of %_libexecdir/%oname-seq * Fri Feb 24 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.8-alt1 - Version 1.8.8 * Tue Sep 06 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.7-alt1 - Version 1.8.7 * Sat Mar 26 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.6-alt1 - Version 1.8.6 - Disabled static package * Thu Feb 17 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.5_patch1-alt2 - Rebuilt for debuginfo * Tue Nov 16 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.5_patch1-alt1 - Version 1.8.5-patch1 * Wed Oct 27 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.3-alt6 - Fixed soname set-versions by ghost links (thnx ldv@) * Fri Oct 15 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.3-alt5 - Rebuilt for soname set-versions * Wed Jul 15 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.3-alt4 - Added pkgconfig file * Thu Jun 18 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.3-alt3 - Created alternatives * Thu Jun 04 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.3-alt2 - Added explicit conflict with parallel version of HDF5 tools * Thu May 28 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.3-alt1 - Version 1.8.3 - Added static libraries - Add fortran interface libraries - Add zlib support * Sun Dec 14 2008 Sergey Bolshakov <sbolshakov@altlinux.ru> 1.6.6-alt2 - fixed build with gcc4.3 * Sat Sep 15 2007 Vitaly Lipatov <lav@altlinux.ru> 1.6.6-alt1 - initial build for ALT Linux Sisyphus |