1 Summary: CFITSIO Interface Library
2 Summary(pl.UTF-8): Biblioteka interfejsu CFITSIO
5 %define sver %(echo %{version} | tr -d .)
7 License: GPL (forced only by gzip code, basically BSD-like)
9 Source0: ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/%{name}%{sver}.tar.gz
10 # Source0-md5: 1e6e390f21fab4e04781156fddcd2f8b
11 Patch0: %{name}-link.patch
12 Patch1: %{name}-ldflags.patch
13 Patch2: %{name}-compress.patch
14 URL: http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
15 BuildRequires: gcc-g77
16 BuildRequires: sed >= 4.0
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 CFITSIO is a library of ANSI C routines for reading and writing FITS
21 format data files. A set of Fortran-callable wrapper routines are
22 also included for the convenience of Fortran programmers.
24 %description -l pl.UTF-8
25 CFITSIO to biblioteka funkcji w C do odczytu i zapisu plików z danymi
26 w formacie FITS. Zawiera także zestaw wrapperów pozwalających na
27 wywoływanie tych funkcji z programów w Fortranie.
30 Summary: Header files and documentation for CFITSIO
31 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do CFITSIO
32 Group: Development/Libraries
33 Requires: %{name} = %{version}-%{release}
36 Header files and development documentation for CFITSIO.
38 %description devel -l pl.UTF-8
39 Pliki nagłówkowe i dokumentacja programisty do CFITSIO.
42 Summary: Static CFITSIO library
43 Summary(pl.UTF-8): Statyczna biblioteka CFITSIO
44 Group: Development/Libraries
45 Requires: %{name}-devel = %{version}-%{release}
48 Static version of CFITSIO library.
50 %description static -l pl.UTF-8
51 Statyczna wersja biblioteki CFITSIO.
59 sed -i -e 's/ f77 xlf / gfortran f77 xlf /' configure
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
71 CFITSIO_LIB=$RPM_BUILD_ROOT%{_libdir} \
72 CFITSIO_INCLUDE=$RPM_BUILD_ROOT%{_includedir}
75 rm -rf $RPM_BUILD_ROOT
77 %post -p /sbin/ldconfig
78 %postun -p /sbin/ldconfig
81 %defattr(644,root,root,755)
82 %doc License.txt README changes.txt
83 %attr(755,root,root) %{_libdir}/libcfitsio.so
86 %defattr(644,root,root,755)
87 %doc cfitsio.doc cfitsio.ps fitsio.doc fitsio.ps quick.ps
88 %{_includedir}/drvrsmem.h
89 %{_includedir}/fitsio*.h
90 %{_includedir}/longnam.h
91 %{_pkgconfigdir}/cfitsio.pc
94 %defattr(644,root,root,755)
95 %{_libdir}/libcfitsio.a