Name: perl-Alien-FFI Version: 0.27 Release: 1%{?dist} Summary: Make available libffi License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Alien-FFI Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-FFI-%{version}.tar.gz # Drop dependencies not required for a system installation, # not suitable for an upstream. Patch0: Alien-FFI-0.27-Simplify-alienfile-to-system-installation.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: coreutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.6 BuildRequires: perl(alienfile) BuildRequires: perl(Alien::Build::MM) >= 2.10 BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(PkgConfig::LibPkgConf) BuildRequires: perl(strict) BuildRequires: perl(warnings) BuildRequires: pkgconfig(libffi) # Run-time: BuildRequires: perl(Alien::Base) >= 2.10 BuildRequires: perl(base) # Tests: BuildRequires: perl(IPC::Cmd) BuildRequires: perl(Test2::V0) >= 0.000121 BuildRequires: perl(Test::Alien) # Alien modules' purpose is to ensure one can compile against a library. # libffi version is compiled into alien.json. Requires: libffi-devel%{?_isa} %(perl -MPkgConfig::LibPkgConf -e 'print qq{= } . pkgconf_version(q{libffi})' 2>/dev/null) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Alien::Base) >= 2.10 # Remove under-specified dependencies %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Alien::Base|Test2::V0\\)$ %description This ensures that libffi library can be used by other Perl distributions. %package tests Summary: Tests for %{name} BuildArch: noarch Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: coreutils Requires: perl-Test-Harness Requires: perl(IPC::Cmd) Requires: perl(Test2::V0) >= 0.000121 %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %autosetup -p1 -n Alien-FFI-%{version} # Help generators to recognize Perl scripts for F in t/*.t; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F" chmod +x "$F" done %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/bash set -e # ExtUtils::CBuilder writes into CWD DIR=$(mktemp -d) cp -a %{_libexecdir}/%{name}/* "$DIR" pushd "$DIR" prove -I . -j "$(getconf _NPROCESSORS_ONLN)" popd rm -r "$DIR" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files %license LICENSE %doc Changes README %{perl_vendorarch}/* %{_mandir}/man3/* %files tests %{_libexecdir}/%{name} %changelog * Mon Oct 24 2022 Petr Pisar - 0.27-1 - 0.27 bump - Package the tests * Fri Jul 22 2022 Fedora Release Engineering - 0.25-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 01 2022 Jitka Plesnikova - 0.25-8 - Perl 5.36 rebuild * Thu Jan 20 2022 Fedora Release Engineering - 0.25-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.25-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.25-5 - Perl 5.34 rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0.25-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.25-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 0.25-2 - Perl 5.32 rebuild * Mon Mar 09 2020 Petr Pisar - 0.25-1 - 0.25 bump * Wed Jan 29 2020 Fedora Release Engineering - 0.24-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Dec 17 2019 Jitka Plesnikova - 0.24-1 - 0.24 bump * Fri Jul 26 2019 Fedora Release Engineering - 0.23-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 0.23-2 - Perl 5.30 rebuild * Fri Mar 08 2019 Petr Pisar - 0.23-1 - 0.23 bump * Thu Feb 28 2019 Petr Pisar 0.22-1 - Specfile autogenerated by cpanspec 1.78.