Группа :: Система/Библиотеки
Пакет: cfitsio
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%{?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
…
Полный changelog можно просмотреть здесь
%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
…
Полный changelog можно просмотреть здесь