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): 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: 75f7757350c9fc1a3775811e111a74d4
18 BuildRequires: cfitsio-devel >= 2.400
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Astro::FITS::CFITSIO is a Perl interface to William Pence's cfitsio
27 This module attempts to provide a wrapper for nearly every cfitsio
28 routine, while retaining as much cfitsio behavior as possible. As
29 such, one should be aware that it is still somewhat low-level, in the
30 sense that handing an array which is not the correct size to a routine
31 like fits_write_img() may cause SIGSEGVs.
33 The goal is to eventually use these routines to build a more Perl-like
34 interface to many common tasks such as reading and writing of images
35 and ASCII and binary tables.
38 Astro::FITS::CFITSIO jest perlowym interfejsem do biblioteki cfitsio
41 Ten modu³ jest prób± dostarczenia obudowania dla prawie wszystkich
42 funkcji cfitsio przy zachowaniu mo¿liwie najbli¿szym cfitsio. Przez to
43 trzeba mieæ na uwadze, ¿e dostêp jest nieco niskopoziomowy, w tym
44 sensie, ¿e przekazanie tablicy o z³ym rozmiarze do funkcji typu
45 fits_write_img() mo¿e powodowaæ SIGSEGV.
47 Celem autora jest ewentualne wykorzystanie tych funkcji to stworzenia
48 bardziej perlowego interfejsu do wielu ogólnych zadañ, takich jak
49 odczyt i zapis obrazów oraz tablic binarnych i ASCII.
52 %setup -q -n %{pdir}-%{pnam}-%{version}
55 %{__perl} Makefile.PL \
59 %{?with_tests:%{__make} test}
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
66 DESTDIR=$RPM_BUILD_ROOT
68 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
71 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
75 %doc ChangeLog LICENSE NOTES README TODO announce
77 %{perl_vendorarch}/Astro/FITS
78 %dir %{perl_vendorarch}/auto/Astro/FITS
79 %dir %{perl_vendorarch}/auto/Astro/FITS/CFITSIO
80 %{perl_vendorarch}/auto/Astro/FITS/CFITSIO/CFITSIO.bs
81 %{perl_vendorarch}/auto/Astro/FITS/CFITSIO/autosplit.ix
82 %attr(755,root,root) %{perl_vendorarch}/auto/Astro/FITS/CFITSIO/CFITSIO.so
84 %dir %{_examplesdir}/%{name}-%{version}
85 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.pl
86 %{_examplesdir}/%{name}-%{version}/INDEX
87 %{_examplesdir}/%{name}-%{version}/*.fits.*