3 %bcond_without tests # don't perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam FITS-CFITSIO
8 Summary: Astro::FITS::CFITSIO - Perl extension for using the cfitsio library
9 Summary(pl.UTF-8): Astro::FITS::CFITSIO - rozszerzenie Perla do korzystania z biblioteki cfitsio
10 Name: perl-Astro-FITS-CFITSIO
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 6b9e0b765f332b124ccd918ac1763cef
18 URL: http://search.cpan.org/dist/Astro-FITS-CFITSIO/
19 BuildRequires: cfitsio-devel >= 2.500
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 Requires: cfitsio >= 2.500
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Astro::FITS::CFITSIO is a Perl interface to William Pence's cfitsio
29 This module attempts to provide a wrapper for nearly every cfitsio
30 routine, while retaining as much cfitsio behavior as possible. As
31 such, one should be aware that it is still somewhat low-level, in the
32 sense that handing an array which is not the correct size to a routine
33 like fits_write_img() may cause SIGSEGVs.
35 The goal is to eventually use these routines to build a more Perl-like
36 interface to many common tasks such as reading and writing of images
37 and ASCII and binary tables.
39 %description -l pl.UTF-8
40 Astro::FITS::CFITSIO jest perlowym interfejsem do biblioteki cfitsio
43 Ten moduł jest próbą dostarczenia obudowania dla prawie wszystkich
44 funkcji cfitsio przy zachowaniu możliwie najbliższym cfitsio. Przez to
45 trzeba mieć na uwadze, że dostęp jest nieco niskopoziomowy, w tym
46 sensie, że przekazanie tablicy o złym rozmiarze do funkcji typu
47 fits_write_img() może powodować SIGSEGV.
49 Celem autora jest ewentualne wykorzystanie tych funkcji to stworzenia
50 bardziej perlowego interfejsu do wielu ogólnych zadań, takich jak
51 odczyt i zapis obrazów oraz tablic binarnych i ASCII.
54 %setup -q -n %{pdir}-%{pnam}-%{version}
58 %{__perl} Makefile.PL \
62 %{?with_tests:%{__make} test}
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
69 DESTDIR=$RPM_BUILD_ROOT
71 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
74 rm -rf $RPM_BUILD_ROOT
77 %defattr(644,root,root,755)
78 %doc ChangeLog LICENSE NOTES README TODO announce
80 %{perl_vendorarch}/Astro/FITS
81 %dir %{perl_vendorarch}/auto/Astro/FITS
82 %dir %{perl_vendorarch}/auto/Astro/FITS/CFITSIO
83 %{perl_vendorarch}/auto/Astro/FITS/CFITSIO/CFITSIO.bs
84 %{perl_vendorarch}/auto/Astro/FITS/CFITSIO/autosplit.ix
85 %attr(755,root,root) %{perl_vendorarch}/auto/Astro/FITS/CFITSIO/CFITSIO.so
87 %dir %{_examplesdir}/%{name}-%{version}
88 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.pl
89 %{_examplesdir}/%{name}-%{version}/INDEX
90 %{_examplesdir}/%{name}-%{version}/*.fits.*