Group :: Desenvolvimento/Perl
RPM: perl-ExtUtils-F77
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%define dist ExtUtils-F77
Name: perl-%dist
Version: 1.26
Release: alt1
Summary: Simple interface to F77 libs
License: GPL or Artistic
Group: Development/Perl
URL: %CPAN %dist
Source0: http://www.cpan.org/authors/id/E/ET/ETJ/%{dist}-%{version}.tar.gz
BuildArch: noarch
# Automatically added by buildreq on Wed Nov 16 2011
BuildRequires: gcc-fortran perl-devel perl(File/Which.pm)
%description
Simple interface to F77 libs. Used to be in perl-PDL, but isn't anymore.
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 %{dist}-%{version}
%build
%perl_vendor_build
: show configuration
perl -Mblib -MExtUtils::F77 -e1
: try to compile hello world
cat <<__EOF__ >hello.f
PROGRAM HELLO
DO 10, I=1,10
PRINT *,'Hello World'
10 CONTINUE
STOP
END
__EOF__
%define _g77() perl -Mblib -MExtUtils::F77 -e 'print ExtUtils::F77::%1()' |tail -1
`%{_g77 compiler}` hello.f
./a.out
%install
%perl_vendor_install
%files
%doc CHANGES README
%perl_vendor_privlib/ExtUtils
%changelog
…
Todas as alterações você pod ver aqui
%define dist ExtUtils-F77
Name: perl-%dist
Version: 1.26
Release: alt1
Summary: Simple interface to F77 libs
License: GPL or Artistic
Group: Development/Perl
URL: %CPAN %dist
Source0: http://www.cpan.org/authors/id/E/ET/ETJ/%{dist}-%{version}.tar.gz
BuildArch: noarch
# Automatically added by buildreq on Wed Nov 16 2011
BuildRequires: gcc-fortran perl-devel perl(File/Which.pm)
%description
Simple interface to F77 libs. Used to be in perl-PDL, but isn't anymore.
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 %{dist}-%{version}
%build
%perl_vendor_build
: show configuration
perl -Mblib -MExtUtils::F77 -e1
: try to compile hello world
cat <<__EOF__ >hello.f
PROGRAM HELLO
DO 10, I=1,10
PRINT *,'Hello World'
10 CONTINUE
STOP
END
__EOF__
%define _g77() perl -Mblib -MExtUtils::F77 -e 'print ExtUtils::F77::%1()' |tail -1
`%{_g77 compiler}` hello.f
./a.out
%install
%perl_vendor_install
%files
%doc CHANGES README
%perl_vendor_privlib/ExtUtils
%changelog
…
Todas as alterações você pod ver aqui