Репозитории ALT
Группа :: Разработка/Perl
Пакет: perl-ExtUtils-F77
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define dist ExtUtils-F77
Name: perl-%dist
Version: 1.14
Release: alt4.1
Summary: Simple interface to F77 libs
License: GPL
Group: Development/Perl
Packager: Grigory Milev <week at altlinux.ru>
Url: http://search.cpan.org/dist/%dist/
Source: %dist-%version.tar.bz2
Patch0: %name-1.14-alt-g77-flags.patch
BuildArch: noarch
Provides: perl-ExtUtils_F77
Obsoletes: perl-ExtUtils_F77
# 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 -Iblib/lib -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 -Iblib/lib -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.14
Release: alt4.1
Summary: Simple interface to F77 libs
License: GPL
Group: Development/Perl
Packager: Grigory Milev <week at altlinux.ru>
Url: http://search.cpan.org/dist/%dist/
Source: %dist-%version.tar.bz2
Patch0: %name-1.14-alt-g77-flags.patch
BuildArch: noarch
Provides: perl-ExtUtils_F77
Obsoletes: perl-ExtUtils_F77
# 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 -Iblib/lib -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 -Iblib/lib -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 можно просмотреть здесь