Package cfitsio: 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 | %{?optflags_lto:%global optflags_lto %optflags_lto -ffat-lto-objects} %define rname cfitsio %define sover 9 %define libname libcfitsio%sover %define devame libcfitsio-devel Name: cfitsio Version: 3.490 Release: alt2 %define sversion %(echo %version | tr -d .) Group: System/Libraries License: BSD-like Summary: Library for accessing files in FITS format for C and Fortran Url: http://heasarc.gsfc.nasa.gov/docs/software/fitsio/ Source: %rname-%version.tar # FC Patch1: cfitsio-zlib.patch Patch2: cfitsio-ldflags.patch Patch3: cfitsio-pkgconfig.patch Patch4: cfitsio-noversioncheck.patch # ALT Patch10: cfitsio-3.360-autotools.patch BuildRequires: flex gcc-c++ gcc-fortran glibc-devel zlib-devel bzlib-devel %description CFITSIO is a library of C and Fortran subroutines for reading and writing data files in FITS (Flexible Image Transport System) data format. CFITSIO simplifies the task of writing software that deals with FITS files by providing an easy to use set of high-level routines that insulate the programmer from the internal complexities of the FITS file format. At the same time, CFITSIO provides many advanced features that have made it the most widely used FITS file programming interface in the astronomical community. %package -n %libname License: BSD-like Summary: Library for accessing files in FITS format for C and Fortran Group: System/Libraries %description -n %libname CFITSIO is a library of C and Fortran subroutines for reading and writing data files in FITS (Flexible Image Transport System) data format. CFITSIO simplifies the task of writing software that deals with FITS files by providing an easy to use set of high-level routines that insulate the programmer from the internal complexities of the FITS file format. At the same time, CFITSIO provides many advanced features that have made it the most widely used FITS file programming interface in the astronomical community. This package contains the shared library required by prgrams that use the cfits library. %package -n %devame License: BSD-like Summary: Library for accessing files in FITS format for C and Fortran Group: Development/C Requires: %libname = %version-%release Provides: fitsio-devel = %version-%release Provides: %name-devel = %version-%release %description -n %devame CFITSIO is a library of C and Fortran subroutines for reading and writing data files in FITS (Flexible Image Transport System) data format. CFITSIO simplifies the task of writing software that deals with FITS files by providing an easy to use set of high-level routines that insulate the programmer from the internal complexities of the FITS file format. At the same time, CFITSIO provides many advanced features that have made it the most widely used FITS file programming interface in the astronomical community. This package contains the headers required for compiling software that uses the cfits library. %package -n %devame-static License: BSD-like Summary: Library for accessing files in FITS format for C and Fortran Group: Development/C Requires: %devame = %version-%release %description -n %devame-static CFITSIO is a library of C and Fortran subroutines for reading and writing data files in FITS (Flexible Image Transport System) data format. CFITSIO simplifies the task of writing software that deals with FITS files by providing an easy to use set of high-level routines that insulate the programmer from the internal complexities of the FITS file format. At the same time, CFITSIO provides many advanced features that have made it the most widely used FITS file programming interface in the astronomical community. This package contains the headers required for compiling software that uses the cfits library. %prep %setup -n %rname-%version %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch10 -p0 #autoreconf # remove bundled zlib pushd zlib rm adler32.c crc32.c deflate.c infback.c inffast.c inflate.c inflate.h \ inftrees.c inftrees.h zlib.h deflate.h trees.c trees.h uncompr.c zconf.h \ zutil.c zutil.h crc32.h inffast.h inffixed.h popd sed -i 's|-Wl,-rpath,\\${CFITSIO_LIB}||' configure %build %configure --disable-static --enable-shared --enable-reentrant --with-bzip2 %make_build shared %make_build fpack %make_build funpack %install install -d %buildroot/{%_bindir,%_libdir,%_includedir/%name} %make \ LIBDIR=%_libdir \ INCLUDEDIR=%_includedir/%name \ CFITSIO_LIB=%buildroot%_libdir \ CFITSIO_INCLUDE=%buildroot%_includedir/%name \ install install -m755 f{,un}pack %buildroot/%_bindir/ %files %_bindir/* %files -n %libname %_libdir/*.so.%sover %_libdir/*.so.* %files -n %devame %_libdir/*.so #%_libdir/*.la %_includedir/* %_libdir/pkgconfig/* #%files -n %devame-static #%_libdir/*.a %changelog * Mon Sep 06 2021 Sergey V Turchin <zerg@altlinux.org> 3.490-alt2 - fix to build with LTO * Wed May 26 2021 Sergey V Turchin <zerg@altlinux.org> 3.490-alt1 - new version * Mon Mar 21 2016 Sergey V Turchin <zerg@altlinux.org> 3.380-alt2 - fix requires * Fri Mar 18 2016 Sergey V Turchin <zerg@altlinux.org> 3.380-alt1 - new version * Wed Jul 01 2015 Sergey V Turchin <zerg@altlinux.org> 3.370-alt1 - new version * Wed Mar 26 2014 Sergey V Turchin <zerg@altlinux.org> 3.360-alt1 - new version * Thu Oct 10 2013 Sergey V Turchin <zerg@altlinux.org> 3.350-alt0.M70P.1 - built for M70P * Mon Oct 07 2013 Sergey V Turchin <zerg@altlinux.org> 3.350-alt1 - new version * Wed Oct 19 2011 Sergey V Turchin <zerg@altlinux.org> 3.280-alt1 - new version * Mon Dec 06 2010 Sergey V Turchin <zerg@altlinux.org> 3.210-alt2 - rebuilt * Tue Nov 10 2009 Sergey V Turchin <zerg@altlinux.org> 3.210-alt1 - new version * Thu Oct 16 2008 Sergey V Turchin <zerg at altlinux dot org> 3.100-alt1 - initial specfile |