perl-Alien-FFI/perl-Alien-FFI.spec
Petr Písař 15df7ea7fd Import
Reviewed in bug #1684177.
2019-03-08 08:14:17 +01:00

69 lines
2.2 KiB
RPMSpec

Name: perl-Alien-FFI
Version: 0.22
Release: 1%{?dist}
Summary: Make available libffi
License: GPL+ or Artistic
URL: https://metacpan.org/release/Alien-FFI
Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-FFI-%{version}.tar.gz
# Correct tests to be endianess-safe, proposed to upstream,
# <https://github.com/Perl5-FFI/Alien-FFI/pull/7>
Patch0: Alien-FFI-0.22-test-Hande-return-value-type-properly.patch
# This is an architecture-dependenant package because it stores data about
# architecture-specific library, but it has no XS code, hence no debuginfo.
%global debug_package %{nil}
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5.6
BuildRequires: perl(alienfile)
BuildRequires: perl(Alien::Build::MM) >= 0.73
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(Text::ParseWords)
BuildRequires: perl(warnings)
# Run-time:
# Alien modules' purpose is to ensure one can compile against a library
BuildRequires: libffi-devel
BuildRequires: perl(Alien::Base) >= 0.73
BuildRequires: perl(base)
# Tests:
BuildRequires: perl(IPC::Cmd)
BuildRequires: perl(Test2::V0) >= 0.000060
BuildRequires: perl(Test::Alien)
# Alien modules' purpose is to ensure one can compile against a library
Requires: libffi-devel%{?_isa}
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Alien::Base) >= 0.73
# Remove under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Alien::Base\\)$
%description
This ensures that libffi library can be used by other Perl distributions.
%prep
%setup -q -n Alien-FFI-%{version}
%patch0 -p1
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
%{make_install}
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%license LICENSE
%doc Changes README
%{perl_vendorarch}/*
%{_mandir}/man3/*
%changelog
* Thu Feb 28 2019 Petr Pisar <ppisar@redhat.com> 0.22-1
- Specfile autogenerated by cpanspec 1.78.