Репозитории ALT
Группа :: Разработка/Perl
Пакет: perl-ExtUtils-F77
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define dist ExtUtils-F77
Name: perl-%dist
Version: 1.15
Release: alt1
Summary: Simple interface to F77 libs
License: GPL or Artistic
Group: Development/Perl
URL: %CPAN %dist
Source: %dist-%version.tar.bz2
Patch0: %name-1.15-alt-g77.patch
BuildArch: noarch
Provides: perl-ExtUtils_F77 = %version
Obsoletes: perl-ExtUtils_F77 < %version
# Automatically added by buildreq on Fri Oct 31 2003
BuildRequires: gcc-g77 libg2c-devel perl-devel
%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
%patch0 -p1
%build
%perl_vendor_build
: show me 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 `%{_g77 cflags}` `%{_g77 runtime}`
LD_BIND_NOW=1 ./a.out
%install
%perl_vendor_install
find %buildroot -type f -print0 |xargs -r0 chmod -x
%files
%doc README CHANGES
%perl_vendor_privlib/ExtUtils*
%perl_vendor_man3dir/*
%changelog
…
Полный changelog можно просмотреть здесь
Name: perl-%dist
Version: 1.15
Release: alt1
Summary: Simple interface to F77 libs
License: GPL or Artistic
Group: Development/Perl
URL: %CPAN %dist
Source: %dist-%version.tar.bz2
Patch0: %name-1.15-alt-g77.patch
BuildArch: noarch
Provides: perl-ExtUtils_F77 = %version
Obsoletes: perl-ExtUtils_F77 < %version
# Automatically added by buildreq on Fri Oct 31 2003
BuildRequires: gcc-g77 libg2c-devel perl-devel
%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
%patch0 -p1
%build
%perl_vendor_build
: show me 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 `%{_g77 cflags}` `%{_g77 runtime}`
LD_BIND_NOW=1 ./a.out
%install
%perl_vendor_install
find %buildroot -type f -print0 |xargs -r0 chmod -x
%files
%doc README CHANGES
%perl_vendor_privlib/ExtUtils*
%perl_vendor_man3dir/*
%changelog
…
Полный changelog можно просмотреть здесь