%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Astro-FITS-CFITSIO Version: 1.11 Release: 1mamba Summary: Astro::FITS::CFITSIO - A Perl interface to William Pence's cfitsio subroutine library Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Aleph0 URL: http://www.cpan.org Source: http://www.cpan.org/modules/by-module/Astro/Astro-FITS-CFITSIO-%{version}.tar.gz License: Artistic ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libcfitsio-devel BuildRequires: perl-devel ## AUTOBUILDREQ-END Requires: perl >= %perl_major_ver BuildRequires: perl-devel >= %perl_major_ver BuildRequires: libcfitsio-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Astro::FITS::CFITSIO is a Perl interface to William Pence's cfitsio subroutine library. For more information on cfitsio, see http://heasarc.gsfc.nasa.gov/fitsio %prep %setup -q -n Astro-FITS-CFITSIO-%{version} %build export CFITSIO=%{_includedir}/cfitsio perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make %make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall_perl packlist=`find %{buildroot} -name .packlist` [ -z "$packlist" ] && exit 1 || cat $packlist | \ sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ sort -u > .packlist && rm $packlist strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` for dir in `find %{buildroot} -type d | grep $strid`; do echo "%dir ${dir#%buildroot}" >> .packlist done %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" rm -f .packlist %files -f .packlist %defattr(-,root,root) %changelog * Sat Oct 08 2016 Automatic Build System 1.11-1mamba - automatic update by autodist * Mon Jun 10 2013 Automatic Build System 1.10-1mamba - automatic version update by autodist * Fri Nov 16 2012 Silvan Calarco 1.09-1mamba - update to 1.09 * Fri Nov 16 2012 Silvan Calarco 1.07-2mamba - perl 5.16 mass rebuild * Mon Jul 25 2011 Automatic Build System 1.07-1mamba - automatic version update by autodist * Sat Mar 26 2011 Automatic Build System 1.06-1mamba - automatic update by autodist * Mon Nov 03 2008 Silvan Calarco 1.05-2mamba - automatic rebuild by autodist * Fri Nov 23 2007 Aleph0 1.05-1mamba - package created by autospec