perl-Astro-FITS-CFITSIO/perl-Astro-FITS-CFITSIO.spec

99 lines
3.2 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Astro-FITS-CFITSIO
Version: 1.18
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: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/
Source: https://cpan.metacpan.org/authors/id/P/PR/PRATZLAFF/Astro-FITS-CFITSIO-%{version}.tar.gz
License: Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libcfitsio-devel
BuildRequires: libperl
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl-devel >= %perl_major_ver
BuildRequires: perl-Alien-CFITSIO
BuildRequires: libcfitsio-devel >= 4.1.0
Requires: perl >= %perl_major_ver
%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
find %{buildroot} -name *.so -exec chmod u+w {} \;
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Wed Nov 08 2023 Automatic Build System <autodist@mambasoft.it> 1.18-1mamba
- automatic version update by autodist
* Tue Apr 18 2023 Automatic Build System <autodist@mambasoft.it> 1.17-1mamba
- automatic version update by autodist
* Mon Feb 06 2023 Automatic Build System <autodist@mambasoft.it> 1.16-1mamba
- automatic version update by autodist
* Tue Apr 26 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.15-1mamba
- update to 1.15
* Sat Aug 03 2019 Automatic Build System <autodist@mambasoft.it> 1.12-1mamba
- automatic update by autodist
* Sat Oct 08 2016 Automatic Build System <autodist@mambasoft.it> 1.11-1mamba
- automatic update by autodist
* Mon Jun 10 2013 Automatic Build System <autodist@mambasoft.it> 1.10-1mamba
- automatic version update by autodist
* Fri Nov 16 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.09-1mamba
- update to 1.09
* Fri Nov 16 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.07-2mamba
- perl 5.16 mass rebuild
* Mon Jul 25 2011 Automatic Build System <autodist@mambasoft.it> 1.07-1mamba
- automatic version update by autodist
* Sat Mar 26 2011 Automatic Build System <autodist@mambasoft.it> 1.06-1mamba
- automatic update by autodist
* Mon Nov 03 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.05-2mamba
- automatic rebuild by autodist
* Fri Nov 23 2007 Aleph0 <aleph0@openmamba.org> 1.05-1mamba
- package created by autospec