perl-ExtUtils-F77/perl-ExtUtils-F77.spec

76 lines
2.4 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-ExtUtils-F77
Version: 1.26
Release: 1mamba
Summary: ExtUtils::F77 - Fortran77 support
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Aleph0 <aleph0@openmamba.org>
URL: https://www.cpan.org
Source: http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-F77-%{version}.tar.gz
License: Artistic
Requires: perl >= %perl_major_ver
BuildRequires: perl-devel >= %perl_major_ver
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This module tries to figure out how to link C programs with Fortran subroutines on your system.
Basically one must add a list of Fortran runtime libraries.
The problem is their location and name varies with each OS/compiler combination!
%prep
%setup -q -n ExtUtils-F77-%{version}
%build
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 Feb 20 2021 Automatic Build System <autodist@mambasoft.it> 1.26-1mamba
- automatic version update by autodist
* Sat Aug 03 2019 Automatic Build System <autodist@mambasoft.it> 1.24-1mamba
- automatic update by autodist
* Thu Sep 01 2016 Automatic Build System <autodist@mambasoft.it> 1.20-1mamba
- automatic update by autodist
* Fri Feb 05 2016 Automatic Build System <autodist@mambasoft.it> 1.19-1mamba
- automatic update by autodist
* Wed Jun 17 2015 Automatic Build System <autodist@mambasoft.it> 1.18-1mamba
- automatic update by autodist
* Wed Mar 16 2011 Automatic Build System <autodist@mambasoft.it> 1.17-1mamba
- automatic update by autodist
* Tue Nov 04 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.16-2mamba
- automatic rebuild by autodist
* Fri Nov 23 2007 Aleph0 <aleph0@openmamba.org> 1.16-1mamba
- package created by autospec