8e968d7
# Run optional test
8e968d7
%{bcond_without perl_Alien_Build_enables_optional_test}
ba791dd
# Exhibit FFI::Platypus in Test::Alien
ba791dd
%if !%{defined perl_bootstrap}
ba791dd
# Build cycle: perl-FFI-Platypus → perl-Alien-Build
ba791dd
%{bcond_without perl_Alien_Build_enables_platypus}
ba791dd
%endif
8e968d7
8e968d7
Name:           perl-Alien-Build
16eef4e
Version:        2.77
94f276a
Release:        1%{?dist}
8e968d7
Summary:        Build external dependencies for use in CPAN
f71398a
# lib/Alien/Build/Plugin/Test/Mock.pm contains Base64-encoded files for tests
f71398a
# (a bash script, C source file, a gzipped tar archive, Mach-O 64-bit x86_64
f71398a
# object file and a static library).
469bfe4
License:        GPL-1.0-or-later OR Artistic-1.0-Perl
dd51efc
URL:            https://metacpan.org/release/Alien-Build
dd51efc
Source0:        https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Build-%{version}.tar.gz
e2e8b15
# Support only the most advanced pkgconfig implementation,
e2e8b15
# the files are deleted in prep section
267f7d3
Patch0:         Alien-Build-2.65-Remove-redundant-pkgconfig-implementations.patch
cd1c25e
# Support only the most common SHA implementation,
8b7af6d
# the files are deleted in prep section
267f7d3
Patch1:         Alien-Build-2.65-Remove-redundant-SHA-implementations.patch
8e968d7
BuildArch:      noarch
80062c6
BuildRequires:  coreutils
8e968d7
BuildRequires:  make
22deffb
# Makefile.PL executes ./inc/probebad.pl that executes XS checks
22deffb
BuildRequires:  gcc
22deffb
BuildRequires:  perl-devel
8e968d7
BuildRequires:  perl-generators
8e968d7
BuildRequires:  perl-interpreter
80062c6
BuildRequires:  perl(:VERSION) >= 5.8.4
4c01d2e
BuildRequires:  perl(Config)
22deffb
BuildRequires:  perl(ExtUtils::CBuilder)
8e968d7
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
22deffb
BuildRequires:  perl(ExtUtils::ParseXS)
fe8476d
BuildRequires:  perl(File::Spec)
fe8476d
BuildRequires:  perl(File::Temp)
8e968d7
BuildRequires:  perl(File::Which) >= 1.10
8e968d7
BuildRequires:  perl(strict)
8e968d7
BuildRequires:  perl(warnings)
8e968d7
# Run-time:
0a30ed0
%if !%{defined perl_bootstrap}
22931c8
# t/alien_build_plugin_build_cmake.t executes gcc via cmake (bug #923024)
0a30ed0
# Build cycle: perl-Alien-cmake3 → perl-Alien-Build
0a30ed0
BuildRequires:  perl(Alien::cmake3) >= 0.02
0a30ed0
%endif
8e968d7
# Archive::Tar or (tar and bzip2 and gzip and xz)
8e968d7
BuildRequires:  perl(Archive::Tar)
8e968d7
# Archive::Zip or unzip
8e968d7
BuildRequires:  perl(Archive::Zip)
8e968d7
BuildRequires:  perl(Capture::Tiny) >= 0.17
8e968d7
BuildRequires:  perl(Carp)
8e968d7
BuildRequires:  perl(Config::INI::Reader::Multiline)
8e968d7
BuildRequires:  perl(constant)
2a1b1bf
BuildRequires:  perl(Data::Dumper)
2a1b1bf
BuildRequires:  perl(Digest::SHA)
8e968d7
BuildRequires:  perl(DynaLoader)
8e968d7
BuildRequires:  perl(Env)
8e968d7
BuildRequires:  perl(Exporter)
8e968d7
BuildRequires:  perl(ExtUtils::CBuilder)
8e968d7
BuildRequires:  perl(ExtUtils::ParseXS) >= 3.30
a6faba9
BuildRequires:  perl(FFI::CheckLib)
8e968d7
BuildRequires:  perl(File::Basename)
8e968d7
BuildRequires:  perl(File::BOM)
8e968d7
BuildRequires:  perl(File::chdir)
8e968d7
BuildRequires:  perl(File::Copy)
8e968d7
BuildRequires:  perl(File::Find)
8e968d7
BuildRequires:  perl(JSON::PP)
1fdae8f
BuildRequires:  perl(List::Util) >= 1.33
8e968d7
BuildRequires:  perl(overload)
0b83930
BuildRequires:  perl(parent)
8e968d7
BuildRequires:  perl(Path::Tiny) >= 0.077
8e968d7
# Alien::Build::Plugin::PkgConfig::Negotiate finds a pkgconfig implementation
8e968d7
# in this order:
beef961
# PkgConfig::LibPkgConf 0.04, pkgconf, pkg-config, PkgConfig 0.14026.
8e968d7
# We selected the most advanced PkgConfig::LibPkgConf and removed the other
8e968d7
# plugins.
8e968d7
BuildRequires:  perl(PkgConfig::LibPkgConf::Client) >= 0.04
8e968d7
BuildRequires:  perl(PkgConfig::LibPkgConf::Util) >= 0.04
8e968d7
BuildRequires:  perl(Scalar::Util)
8e968d7
BuildRequires:  perl(Storable)
cd276bc
BuildRequires:  perl(Term::ANSIColor)
bcf7c7c
BuildRequires:  perl(Test2::API) >= 1.302096
8e968d7
BuildRequires:  perl(Text::ParseWords) >= 3.26
8e968d7
# YAML or Data::Dumper
8e968d7
BuildRequires:  perl(YAML)
ba791dd
# Optional run-time:
ba791dd
%if %{with perl_Alien_Build_enables_platypus}
ba791dd
BuildRequires:  perl(FFI::Platypus) >= 0.12
ba791dd
%endif
8e968d7
# Tests:
8e968d7
# AnyEvent not used
8e968d7
# AnyEvent::FTP::Server not used
8e968d7
BuildRequires:  perl(File::Glob)
8e968d7
# Getopt::Long not used
8e968d7
# IO::Socket::INET not used
deac6d1
# HTTP::Server::PSGI not used
8e968d7
BuildRequires:  perl(lib)
f9cbf00
BuildRequires:  perl(List::Util) >= 1.33
8e968d7
BuildRequires:  perl(Net::FTP)
deac6d1
# Plack::App::Directory not used
deac6d1
# Plack::Builder not used
8e968d7
# Proc::Daemon not used
0b83930
BuildRequires:  perl(Test2::V0) >= 0.000121
8e968d7
# URI not used
deac6d1
# URI::Escape not used
fedc603
BuildRequires:  perl(utf8)
8e968d7
%if %{with perl_Alien_Build_enables_optional_test}
8e968d7
# Optional tests:
8e968d7
%if !%{defined perl_bootstrap}
8e968d7
# Break build cycle: Acme::Alien::DontPanic → Test::Alien
3dbb29e
BuildRequires:  perl(Acme::Alien::DontPanic) >= 0.026
0456050
# Break build cycle: perl-Alien-Base-ModuleBuild → perl-Alien-Build
e2e8b15
BuildRequires:  perl(Alien::Base::ModuleBuild) >= 0.040
0456050
%endif
e2e8b15
BuildRequires:  perl(Devel::Hide)
8e968d7
BuildRequires:  perl(Env::ShellWords)
2685194
# (HTTP::Tiny and Mozilla::CA) or curl
e2e8b15
BuildRequires:  perl(HTTP::Tiny) >= 0.044
567c7af
# Prefer Mojo::DOM with Mojolicious, URI, URI::Escape over Mojo::DOM58
567c7af
BuildRequires:  perl(Mojo::DOM)
567c7af
BuildRequires:  perl(Mojolicious) >= 7.00
2685194
# (HTTP::Tiny and Mozilla::CA) or curl
2685194
# Mozilla::CA not used
8e968d7
# PkgConfig not packaged
8f51d13
BuildRequires:  perl(Readonly) >= 1.60
c444d96
BuildRequires:  perl(Sort::Versions)
567c7af
BuildRequires:  perl(URI)
567c7af
BuildRequires:  perl(URI::Escape)
8e968d7
BuildRequires:  perl(URI::file)
8e968d7
%endif
26df0c3
# Alien::Build::Plugin::Build::Copy executes cp
26df0c3
Requires:       coreutils
22931c8
# Alien::Base::Wrapper::cc() executes $Config{cc}.
22931c8
Requires:       gcc
93c31ec
# make in the lib/Alien/Build/Plugin/Build/CMake.pm plugin
93c31ec
# make in the lib/Alien/Build/Plugin/Build/Make.pm plugin
93c31ec
# make or Alien::gmake
93c31ec
Requires:       make
63732d0
# A subset of Alien-Build modules is packaged in perl-Alien-Base to minimize
63732d0
# dependencies.
63732d0
Requires:       perl-Alien-Base = %{?epoch:%{epoch}:}%{version}-%{release}
0a30ed0
%if !%{defined perl_bootstrap}
0a30ed0
# Build cycle: perl-Alien-cmake3 → perl-Alien-Build
0a30ed0
Requires:       perl(Alien::cmake3) >= 0.02
0a30ed0
%endif
b5c941b
# Alien::Build::Plugin::Download::Negotiate defaults to Decode::Mojo instead
b5c941b
# of Decode::HTML
b5c941b
Suggests:       perl(Alien::Build::Plugin::Decode::HTML)
b5c941b
Requires:       perl(Alien::Build::Plugin::Decode::Mojo)
8e968d7
# Archive::Tar or (tar and bzip2 and gzip and xz)
8e968d7
Requires:       perl(Archive::Tar)
8e968d7
# Archive::Zip or unzip
8e968d7
Requires:       perl(Archive::Zip)
8e968d7
Requires:       perl(Config::INI::Reader::Multiline)
8e968d7
Requires:       perl(ExtUtils::CBuilder)
a7491da
Requires:       perl(ExtUtils::MakeMaker) >= 6.52
8e968d7
Requires:       perl(ExtUtils::ParseXS) >= 3.30
ba791dd
%if %{with perl_Alien_Build_enables_platypus}
ba791dd
Recommends:     perl(FFI::Platypus) >= 0.12
ba791dd
%endif
63732d0
Requires:       perl(Capture::Tiny) >= 0.17
8e968d7
Requires:       perl(File::BOM)
8e968d7
Requires:       perl(File::Find)
2685194
# (HTTP::Tiny and Mozilla::CA) or curl for Alien::Build::Plugin::Download::Negotiate
2685194
Requires:       perl(HTTP::Tiny) >= 0.044
2685194
# (HTTP::Tiny and Mozilla::CA) or curl for Alien::Build::Plugin::Download::Negotiate
2685194
Requires:       perl(Mozilla::CA)
8e968d7
Requires:       perl(Path::Tiny) >= 0.077
8e968d7
# Alien::Build::Plugin::PkgConfig::Negotiate finds a pkgconfig implementation
8e968d7
# in this order:
8e968d7
# PkgConfig::LibPkgConf 0.04, pkgconf, pkg-config, PkgConfig 0.14026
8e968d7
# We selected the most advanced PkgConfig::LibPkgConf and removed the other
8e968d7
# plugins.
8e968d7
Requires:       perl(PkgConfig::LibPkgConf::Client) >= 0.04
8e968d7
Requires:       perl(PkgConfig::LibPkgConf::Util) >= 0.04
8e968d7
Requires:       perl(Storable)
bcf7c7c
Requires:       perl(Test2::API) >= 1.302096
8e968d7
Requires:       perl(Text::ParseWords) >= 3.26
8e968d7
# YAML or Data::Dumper
2685194
Recommends:     perl(YAML)
294d72d
# Test-Alien merged into Alien-Build
294d72d
Obsoletes:      perl-Test-Alien < 0.15-13
294d72d
Provides:       perl-Test-Alien = %{version}-%{release}
8e968d7
8e968d7
# Do not gather dependencies from the documentation
8e968d7
%{?perl_default_filter}
8e968d7
8e968d7
# Remove underspecified dependencies
93c31ec
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((Capture::Tiny|Path::Tiny|Test2::API|Test2::V0|Text::ParseWords)\\)$
567c7af
# Remove private redefinitions
0603715
%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Alien::Build::rc\\)$
93c31ec
# Remove private modules
9e6f4d6
%global __provides_exclude %{__provides_exclude}|^perl\\(Alien::Build::Plugin::(Download::Foo|Fetch::Corpus|Fetch::Foo|NesAdvantage::Controller|NesAdvantage::HelperTest|NesAdvantage::Negotiate|RogerRamjet)|Alien::Foo|Alien::Foo1|Alien::Foo1::ConfigData|Alien::Foo2|Alien::Foo2::ConfigData|Alien::foomake|Alien::libfoo1|Alien::libfoo2|Alien::libfoo3|Alien::perlhelp|Alien::SansShare|Foo::Bar::Baz|Foo::Bar::Baz1|MyTest::.*\\)
8b7af6d
%global __requires_exclude %{__requires_exclude}|^perl\\(Alien::Build::Plugin::RogerRamjet|Alien::Foo|Alien::libfoo1|Alien::libfoo2|Alien::perlhelp|MyTest::.*\\)$
93c31ec
93c31ec
# Some tests, e.g. t/alien_build_plugin_extract_negotiate.t, compare a script file
93c31ec
# content against an archived one. Do not rewrite their shebangs.
93c31ec
%global __brp_mangle_shebangs_exclude_from %{?__brp_mangle_shebangs_exclude_from:%{__brp_mangle_shebangs_exclude_from}|}^%{_libexecdir}/%{name}/corpus/dist/foo-1\.00/configure$
8e968d7
8e968d7
%description
8e968d7
This package provides tools for building external (non-CPAN) dependencies
8e968d7
for CPAN. It is mainly designed to be used at install time of a CPAN
8e968d7
client, and work closely with Alien::Base which is used at run time.
8e968d7
63732d0
%package -n perl-Alien-Base
63732d0
Summary:        Base classes for Alien:: modules
63732d0
Requires:       perl(DynaLoader)
63732d0
Requires:       perl(FFI::CheckLib)
63732d0
Requires:       perl(File::Find)
63732d0
Requires:       perl(JSON::PP)
63732d0
Requires:       perl(Path::Tiny) >= 0.077
63732d0
Requires:       perl(Storable)
63732d0
Requires:       perl(Text::ParseWords) >= 3.26
63732d0
# pkgconf-pkg-config for pkg-config tool executed by
63732d0
# Alien::Base::PkgConfig::pkg_config_command()
63732d0
Requires:       pkgconf-pkg-config
63732d0
# Alien::Base::PkgConfig moved from perl-Alien-Base-ModuleBuild
63732d0
Conflicts:      perl-Alien-Base-ModuleBuild < 1.00
63732d0
# Subpackaged from perl-Alien-Build-2.47-1
63732d0
Conflicts:      perl-Alien-Build < 2.47-2
63732d0
63732d0
%description -n perl-Alien-Base
63732d0
Alien::Base comprises base classes to help in the construction of
63732d0
"Alien::" modules.
63732d0
b5c941b
%package Plugin-Decode-HTML
b5c941b
Summary:        Alien::Build plugin to extract links from HTML
b5c941b
Requires:       %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
b5c941b
Requires:       perl(HTML::LinkExtor)
b5c941b
Requires:       perl(URI)
b5c941b
Requires:       perl(URI::Escape)
b5c941b
# Subpackaged from perl-Alien-Build-1.76
b5c941b
Conflicts:      perl-Alien-Build < 1.76
b5c941b
b5c941b
%description Plugin-Decode-HTML
b5c941b
This Alien::Build plugin decodes an HTML file listing into a list of
b5c941b
candidates for your Prefer plugin.
b5c941b
567c7af
%package Plugin-Decode-Mojo
567c7af
Summary:        Alien::Build plugin to extract links from HTML
567c7af
Requires:       %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
567c7af
# Prefer Mojo::DOM with Mojolicious >= 7.00 over Mojo::DOM58 that is not yet
567c7af
# packaged.
567c7af
Requires:       perl(Mojo::DOM)
567c7af
Requires:       perl(Mojolicious) >= 7.00
567c7af
Requires:       perl(URI)
567c7af
Requires:       perl(URI::Escape)
567c7af
567c7af
%description Plugin-Decode-Mojo
567c7af
This Alien::Build plugin decodes an HTML file listing into a list of
567c7af
candidates for your Prefer plugin.
567c7af
93c31ec
%package tests
93c31ec
Summary:        Tests for %{name}
93c31ec
Requires:       %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
93c31ec
Requires:       coreutils
93c31ec
Requires:       perl-Test-Harness
93c31ec
Requires:       perl(Net::FTP)
0b83930
Requires:       perl(Test2::V0) >= 0.000121
93c31ec
%if %{with perl_Alien_Build_enables_optional_test}
93c31ec
%if !%{defined perl_bootstrap}
93c31ec
# Break build cycle: Acme::Alien::DontPanic → Test::Alien
93c31ec
Requires:       perl(Acme::Alien::DontPanic) >= 0.026
93c31ec
# Break build cycle: perl-Alien-Base-ModuleBuild → perl-Alien-Build
93c31ec
Requires:       perl(Alien::Base::ModuleBuild) >= 0.040
93c31ec
%endif
93c31ec
Requires:       perl(Devel::Hide)
93c31ec
Requires:       perl(Env::ShellWords)
93c31ec
# FFI::Platypus not packaged
2685194
# (HTTP::Tiny and Mozilla::CA) or curl
93c31ec
Requires:       perl(HTTP::Tiny) >= 0.044
93c31ec
# Prefer Mojo::DOM with Mojolicious, URI, URI::Escape over Mojo::DOM58
93c31ec
Requires:       perl(Mojo::DOM)
93c31ec
Requires:       perl(Mojolicious) >= 7.00
2685194
# (HTTP::Tiny and Mozilla::CA) or curl
2685194
# Mozilla::CA not used
93c31ec
# PkgConfig not packaged
93c31ec
Requires:       perl(Readonly) >= 1.60
93c31ec
Requires:       perl(Sort::Versions)
93c31ec
Requires:       perl(URI::file)
93c31ec
%endif
93c31ec
93c31ec
%description tests
93c31ec
Tests from %{name}. Execute them
93c31ec
with "%{_libexecdir}/%{name}/test".
93c31ec
8e968d7
%prep
8e968d7
%setup -q -n Alien-Build-%{version}
8e968d7
# Remove redundant pkgconfig implementations, keep
e2e8b15
# Alien::Build::Plugin::PkgConfig::LibPkgConf,
8b7af6d
# MANIFEST is updated by Remove-redundant-pkgconfig-implementations.patch.
e2e8b15
%patch0 -p1
8e968d7
rm lib/Alien/Build/Plugin/PkgConfig/{CommandLine,PP}.pm 
8e968d7
rm t/alien_build_plugin_pkgconfig_{commandline,pp}.t
8b7af6d
# Remove redundant SHA digest imlementations, keep
8b7af6d
# Alien::Build::Plugin::Digest::SHA, MANIFEST is updated by
8b7af6d
# Alien-Build-2.59-Remove-redundant-SHA-implementations.patch.
8b7af6d
%patch1 -p1
8b7af6d
rm lib/Alien/Build/Plugin/Digest/SHAPP.pm
8b7af6d
rm t/alien_build_plugin_digest_shapp.t
93c31ec
# Remove unused tests
93c31ec
for F in \
93c31ec
    t/bin/ftpd \
93c31ec
    t/bin/httpd \
93c31ec
%if !%{with perl_Alien_Build_enables_optional_test} || %{defined perl_bootstrap}
93c31ec
    t/alien_base__system_installed.t \
93c31ec
%endif
93c31ec
%if !%{with perl_Alien_Build_enables_optional_test}
93c31ec
    t/alien_build_plugin_build_searchdep.t \
93c31ec
    t/alien_build_plugin_extract_commandline__tar_can.t \
93c31ec
    t/alien_build_plugin_prefer_badversion.t \
93c31ec
    t/alien_build_plugin_prefer_goodversion.t \
93c31ec
%endif
93c31ec
; do
93c31ec
    rm "$F"
93c31ec
    perl -i -ne 'print $_ unless m{\A\Q'"$F"'\E\b}' MANIFEST
93c31ec
    perl -i -ne 'print $_ unless m{\b\Q'"$F"'\E\b}' t/01_use.t
93c31ec
done
3ec2b60
# Symlink identical files
3ec2b60
function symlink_duplicates {
3ec2b60
    local KEEP="$1"
3ec2b60
    local DUPLICATE_GLOB="$2"
3ec2b60
    local F
3ec2b60
    shopt -s globstar
3ec2b60
    for F in $DUPLICATE_GLOB; do
3ec2b60
        test "$KEEP" = "$F" && continue
3ec2b60
        cmp "$KEEP" "$F" || continue
3ec2b60
        rm "$F"
3ec2b60
        ln -s "$(realpath --relative-to $(dirname $F) $KEEP)" "$F"
3ec2b60
    done
3ec2b60
}
3ec2b60
symlink_duplicates 'corpus/alien_build_plugin_fetch_curlcommand/dir/foo-1.00.tar' 'corpus/*/dir/foo-1.00.tar'
3ec2b60
symlink_duplicates 'corpus/alien_build_plugin_fetch_curlcommand/dir/foo-1.01.tar' 'corpus/*/dir/foo-1.01.tar'
3ec2b60
symlink_duplicates 'corpus/alien_build_plugin_fetch_curlcommand/dir/foo-1.02.tar' 'corpus/*/dir/foo-1.02.tar'
3ec2b60
symlink_duplicates 'corpus/alien_build_plugin_fetch_curlcommand/dir/html_test.html' 'corpus/*/dir/html_test.html'
3ec2b60
symlink_duplicates 'example/user/ffi-platypus/t/lzma_example.t' 'example/user/*/t/lzma_example.t'
3ec2b60
symlink_duplicates 'example/user/xs-dzil/Example.xs' 'example/**/Example.xs'
3ec2b60
symlink_duplicates 'example/user/xs-dzil/lib/LZMA/Example.pm' 'example/**/Example.pm'
93c31ec
# Help generators to recognize Perl scripts
93c31ec
for F in t/*.t; do
93c31ec
    perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
93c31ec
    chmod +x "$F"
93c31ec
done
8e968d7
8e968d7
%build
cd276bc
unset PKG_CONFIG
61e1f61
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
61e1f61
%{make_build}
8e968d7
8e968d7
%install
61e1f61
%{make_install}
93c31ec
%{_fixperms} %{buildroot}/*
93c31ec
# Install tests
93c31ec
mkdir -p %{buildroot}%{_libexecdir}/%{name}
93c31ec
cp -a corpus t %{buildroot}%{_libexecdir}/%{name}
93c31ec
# t/alienfile.t uses example/*.alienfile
93c31ec
mkdir %{buildroot}%{_libexecdir}/%{name}/example
93c31ec
cp -a example/*.alienfile %{buildroot}%{_libexecdir}/%{name}/example
93c31ec
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
93c31ec
#!/bin/bash
93c31ec
set -e
93c31ec
# Many tests, e.g. t/alien_build_commandsequence.t, write into CWD
93c31ec
DIR=$(mktemp -d)
93c31ec
cp -a %{_libexecdir}/%{name}/* "$DIR"
93c31ec
pushd "$DIR"
93c31ec
unset ACLOCAL_PATH ALIEN_BASE_WRAPPER_QUIET ALIEN_BUILD_LIVE_TEST \
93c31ec
    ALIEN_BUILD_LOG ALIEN_BUILD_PKG_CONFIG ALIEN_BUILD_POSTLOAD \
267f7d3
    ALIEN_BUILD_PRELOAD ALIEN_BUILD_RC ALIEN_BUILD_SITE_CONFIG \
49c015d
    ALIEN_CPU_COUNT ALIEN_DOWNLOAD_RULE ALIEN_FORCE \
2685194
    ALIEN_INSTALL_NETWORK ALIEN_INSTALL_TYPE CONFIG_SITE CURL DESTDIR \
8b7af6d
    FOO1 FOO2 FOO3 TEST_ALIEN_ALIENS_MISSING TEST_ALIEN_ALWAYS_KEEP VERBOSE WGET
93c31ec
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
93c31ec
popd
93c31ec
rm -r "$DIR"
93c31ec
EOF
93c31ec
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
8e968d7
8e968d7
%check
cd276bc
unset ACLOCAL_PATH ALIEN_BASE_WRAPPER_QUIET ALIEN_BUILD_LIVE_TEST \
cd276bc
    ALIEN_BUILD_LOG ALIEN_BUILD_PKG_CONFIG ALIEN_BUILD_POSTLOAD \
267f7d3
    ALIEN_BUILD_PRELOAD ALIEN_BUILD_RC ALIEN_BUILD_SITE_CONFIG \
49c015d
    ALIEN_CPU_COUNT ALIEN_DOWNLOAD_RULE ALIEN_FORCE \
2685194
    ALIEN_INSTALL_NETWORK ALIEN_INSTALL_TYPE CONFIG_SITE CURL DESTDIR \
8b7af6d
    FOO1 FOO2 FOO3 TEST_ALIEN_ALIENS_MISSING TEST_ALIEN_ALWAYS_KEEP VERBOSE WGET
93c31ec
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
8e968d7
make test
8e968d7
8e968d7
%files
63732d0
%doc Changes.Alien-Base-Wrapper Changes.Test-Alien
63732d0
%doc example
8e968d7
%{perl_vendorlib}/*
63732d0
%exclude %dir %{perl_vendorlib}/Alien
63732d0
%exclude %{perl_vendorlib}/Alien/Base.pm
63732d0
%exclude %dir %{perl_vendorlib}/Alien/Base
63732d0
%exclude %{perl_vendorlib}/Alien/Base/PkgConfig.pm
b5c941b
%exclude %{perl_vendorlib}/Alien/Build/Plugin/Decode/HTML.pm
567c7af
%exclude %{perl_vendorlib}/Alien/Build/Plugin/Decode/Mojo.pm
745fd3d
%exclude %{perl_vendorlib}/Alien/Util.pm
8e968d7
%{_mandir}/man3/*
63732d0
%exclude %{_mandir}/man3/Alien::Base.3pm.*
63732d0
%exclude %{_mandir}/man3/Alien::Base::PkgConfig.3pm.*
b5c941b
%exclude %{_mandir}/man3/Alien::Build::Plugin::Decode::HTML.3pm.*
567c7af
%exclude %{_mandir}/man3/Alien::Build::Plugin::Decode::Mojo.3pm.*
745fd3d
%exclude %{_mandir}/man3/Alien::Util.3pm.*
567c7af
63732d0
%files -n perl-Alien-Base
63732d0
%license LICENSE
63732d0
%doc Changes Changes.Alien-Base
63732d0
%doc README SUPPORT
63732d0
%dir %{perl_vendorlib}/Alien
63732d0
%{perl_vendorlib}/Alien/Base.pm
63732d0
%dir %{perl_vendorlib}/Alien/Base
63732d0
%{perl_vendorlib}/Alien/Base/PkgConfig.pm
745fd3d
%{perl_vendorlib}/Alien/Util.pm
63732d0
%{_mandir}/man3/Alien::Base.3pm.*
63732d0
%{_mandir}/man3/Alien::Base::PkgConfig.3pm.*
745fd3d
%{_mandir}/man3/Alien::Util.3pm.*
63732d0
b5c941b
%files Plugin-Decode-HTML
b5c941b
%{perl_vendorlib}/Alien/Build/Plugin/Decode/HTML.pm
b5c941b
%{_mandir}/man3/Alien::Build::Plugin::Decode::HTML.3pm.*
b5c941b
567c7af
%files Plugin-Decode-Mojo
567c7af
%doc Changes.Alien-Build-Decode-Mojo
567c7af
%{perl_vendorlib}/Alien/Build/Plugin/Decode/Mojo.pm
567c7af
%{_mandir}/man3/Alien::Build::Plugin::Decode::Mojo.3pm.*
8e968d7
93c31ec
%files tests
93c31ec
%{_libexecdir}/%{name}
93c31ec
8e968d7
%changelog
16eef4e
* Fri Jan 20 2023 Petr Pisar <ppisar@redhat.com> - 2.77-1
16eef4e
- 2.77 bump
16eef4e
94f276a
* Wed Jan 04 2023 Petr Pisar <ppisar@redhat.com> - 2.76-1
94f276a
- 2.76 bump
94f276a
9e6f4d6
* Wed Dec 07 2022 Petr Pisar <ppisar@redhat.com> - 2.74-2
9e6f4d6
- Remove private provides from tests
9e6f4d6
cd1c25e
* Wed Nov 30 2022 Petr Pisar <ppisar@redhat.com> - 2.74-1
cd1c25e
- 2.74 bump
cd1c25e
9f2b885
* Sun Nov 27 2022 Florian Weimer <fweimer@redhat.com> - 2.73-2
9f2b885
- Avoid triggering C99 implit int/function declaration errors
9f2b885
04b1804
* Mon Nov 21 2022 Petr Pisar <ppisar@redhat.com> - 2.73-1
04b1804
- 2.73 bump
04b1804
715d24b
* Thu Oct 27 2022 Petr Pisar <ppisar@redhat.com> - 2.72-1
715d24b
- 2.72 bump
715d24b
999e2ed
* Wed Oct 05 2022 Petr Pisar <ppisar@redhat.com> - 2.71-1
999e2ed
- 2.71 bump
999e2ed
49c015d
* Mon Sep 26 2022 Petr Pisar <ppisar@redhat.com> - 2.70-1
49c015d
- 2.70 bump
49c015d
ae8cec9
* Tue Sep 06 2022 Petr Pisar <ppisar@redhat.com> - 2.68-1
ae8cec9
- 2.68 bump
ae8cec9
2685194
* Mon Sep 05 2022 Petr Pisar <ppisar@redhat.com> - 2.67-1
2685194
- 2.67 bump
2685194
267f7d3
* Wed Aug 31 2022 Petr Pisar <ppisar@redhat.com> - 2.65-1
267f7d3
- 2.65 bump
267f7d3
8b7af6d
* Tue Aug 16 2022 Petr Pisar <ppisar@redhat.com> - 2.59-1
8b7af6d
- 2.59 bump
8b7af6d
469bfe4
* Thu Aug 04 2022 Petr Pisar <ppisar@redhat.com> - 2.51-1
469bfe4
- 2.51 bump
469bfe4
bec0cf7
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.50-2
bec0cf7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
bec0cf7
ebe5bb1
* Fri Jun 24 2022 Petr Pisar <ppisar@redhat.com> - 2.50-1
ebe5bb1
- 2.50 bump
ebe5bb1
ff35656
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.48-3
ff35656
- Perl 5.36 re-rebuild of bootstrapped packages
ff35656
1b0c925
* Wed Jun 01 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.48-2
1b0c925
- Perl 5.36 rebuild
1b0c925
745fd3d
* Tue Mar 15 2022 Petr Pisar <ppisar@redhat.com> - 2.48-1
745fd3d
- 2.48 bump
745fd3d
63732d0
* Fri Mar 11 2022 Petr Pisar <ppisar@redhat.com> - 2.47-2
63732d0
- Move Alien::Base and Alien::Base::PkgConfig to perl-Alien-Base (bug #2063125)
63732d0
68b843b
* Mon Mar 07 2022 Petr Pisar <ppisar@redhat.com> - 2.47-1
68b843b
- 2.47 bump
68b843b
d3d557f
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.46-2
d3d557f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
d3d557f
ba75ebd
* Thu Dec 02 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.46-1
ba75ebd
- 2.46 bump
ba75ebd
7453acb
* Fri Oct 29 2021 Petr Pisar <ppisar@redhat.com> - 2.45-1
7453acb
- 2.45 bump
7453acb
5194749
* Thu Oct 21 2021 Petr Pisar <ppisar@redhat.com> - 2.44-1
5194749
- 2.44 bump
5194749
1c808be
* Thu Sep 30 2021 Petr Pisar <ppisar@redhat.com> - 2.42-1
1c808be
- 2.42 bump
1c808be
72e0c67
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.41-2
72e0c67
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
72e0c67
0b83930
* Tue Jun 22 2021 Petr Pisar <ppisar@redhat.com> - 2.41-1
0b83930
- 2.41 bump
0b83930
b807843
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.40-3
b807843
- Perl 5.34 re-rebuild of bootstrapped packages
b807843
fdf38fc
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.40-2
fdf38fc
- Perl 5.34 rebuild
fdf38fc
deac6d1
* Thu May 13 2021 Petr Pisar <ppisar@redhat.com> - 2.40-1
deac6d1
- 2.40 bump
93c31ec
- Package the tests
deac6d1
a0168f5
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.38-3
a0168f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a0168f5
294d72d
* Tue Jan 12 2021 Petr Pisar <ppisar@redhat.com> - 2.38-2
294d72d
- Test-Alien merged into Alien-Build
294d72d
ec51f1d
* Tue Jan 12 2021 Petr Pisar <ppisar@redhat.com> - 2.38-1
ec51f1d
- 2.38 bump
ec51f1d
2a1b1bf
* Tue Nov 03 2020 Petr Pisar <ppisar@redhat.com> - 2.37-1
2a1b1bf
- 2.37 bump
2a1b1bf
315d027
* Mon Sep 21 2020 Petr Pisar <ppisar@redhat.com> - 2.33-1
315d027
- 2.33 bump
315d027
4d302ca
* Mon Sep 14 2020 Petr Pisar <ppisar@redhat.com> - 2.32-1
4d302ca
- 2.32 bump
4d302ca
1fdae8f
* Tue Aug 11 2020 Petr Pisar <ppisar@redhat.com> - 2.29-1
1fdae8f
- 2.29 bump
1fdae8f
80062c6
* Wed Aug 05 2020 Petr Pisar <ppisar@redhat.com> - 2.28-1
80062c6
- 2.28 bump
80062c6
843fcad
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.26-4
843fcad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
843fcad
3cd760c
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.26-3
3cd760c
- Perl 5.32 re-rebuild of bootstrapped packages
3cd760c
a86579e
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.26-2
a86579e
- Perl 5.32 rebuild
a86579e
413df7e
* Wed Jun 17 2020 Petr Pisar <ppisar@redhat.com> - 2.26-1
413df7e
- 2.26 bump
413df7e
e6703d5
* Mon May 18 2020 Petr Pisar <ppisar@redhat.com> - 2.23-1
e6703d5
- 2.23 bump
e6703d5
31ef9e4
* Wed May 06 2020 Petr Pisar <ppisar@redhat.com> - 2.22-1
31ef9e4
- 2.22 bump
31ef9e4
5003817
* Tue Apr 14 2020 Petr Pisar <ppisar@redhat.com> - 2.21-1
5003817
- 2.21 bump
5003817
26df0c3
* Thu Apr 09 2020 Petr Pisar <ppisar@redhat.com> - 2.19-1
26df0c3
- 2.19 bump
26df0c3
588a010
* Fri Mar 20 2020 Petr Pisar <ppisar@redhat.com> - 2.17-1
588a010
- 2.17 bump
588a010
d74d678
* Mon Mar 16 2020 Petr Pisar <ppisar@redhat.com> - 2.15-1
d74d678
- 2.15 bump
d74d678
bdb1434
* Tue Mar 10 2020 Petr Pisar <ppisar@redhat.com> - 2.12-1
bdb1434
- 2.12 bump
bdb1434
4c01d2e
* Mon Mar 09 2020 Petr Pisar <ppisar@redhat.com> - 2.11-1
4c01d2e
- 2.11 bump
4c01d2e
d81a036
* Mon Feb 17 2020 Petr Pisar <ppisar@redhat.com> - 2.08-1
d81a036
- 2.08 bump
d81a036
1c43a89
* Thu Feb 06 2020 Petr Pisar <ppisar@redhat.com> - 2.04-1
1c43a89
- 2.04 bump
1c43a89
1af2d06
* Wed Feb 05 2020 Petr Pisar <ppisar@redhat.com> - 2.02-1
1af2d06
- 2.02 bump
1af2d06
488d0b1
* Mon Feb 03 2020 Petr Pisar <ppisar@redhat.com> - 2.00-1
488d0b1
- 2.00 bump
488d0b1
a7491da
* Fri Jan 31 2020 Petr Pisar <ppisar@redhat.com> - 1.98-1
a7491da
- 1.98 bump
a7491da
4458411
* Tue Jan 28 2020 Petr Pisar <ppisar@redhat.com> - 1.96-1
4458411
- 1.96 bump
4458411
7928abf
* Tue Dec 17 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.94-1
7928abf
- 1.94 bump
7928abf
797b6e4
* Tue Dec 10 2019 Petr Pisar <ppisar@redhat.com> - 1.93-1
797b6e4
- 1.93 bump
797b6e4
bcf7c7c
* Mon Nov 04 2019 Petr Pisar <ppisar@redhat.com> - 1.92-1
bcf7c7c
- 1.92 bump
bcf7c7c
26d1643
* Mon Nov 04 2019 Petr Pisar <ppisar@redhat.com> - 1.91-1
26d1643
- 1.91 bump
26d1643
f9cbf00
* Thu Sep 26 2019 Petr Pisar <ppisar@redhat.com> - 1.89-1
f9cbf00
- 1.89 bump
f9cbf00
0603715
* Fri Sep 13 2019 Petr Pisar <ppisar@redhat.com> - 1.86-1
0603715
- 1.86 bump
0603715
79ae646
* Mon Sep 02 2019 Petr Pisar <ppisar@redhat.com> - 1.85-1
79ae646
- 1.85 bump
79ae646
cd276bc
* Tue Aug 20 2019 Petr Pisar <ppisar@redhat.com> - 1.83-1
cd276bc
- 1.83 bump
cd276bc
c6af248
* Mon Aug 19 2019 Petr Pisar <ppisar@redhat.com> - 1.79-1
c6af248
- 1.79 bump
c6af248
bad577d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.78-2
bad577d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bad577d
fedc603
* Mon Jul 01 2019 Petr Pisar <ppisar@redhat.com> - 1.78-1
fedc603
- 1.78 bump
fedc603
b5c941b
* Mon Jun 24 2019 Petr Pisar <ppisar@redhat.com> - 1.76-1
b5c941b
- 1.76 bump
b5c941b
7e9d0f9
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.74-3
7e9d0f9
- Perl 5.30 re-rebuild of bootstrapped packages
7e9d0f9
2585a63
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.74-2
2585a63
- Perl 5.30 rebuild
2585a63
a8ae364
* Wed May 22 2019 Petr Pisar <ppisar@redhat.com> - 1.74-1
a8ae364
- 1.74 bump
a8ae364
567c7af
* Tue May 21 2019 Petr Pisar <ppisar@redhat.com> - 1.73-1
567c7af
- 1.73 bump
567c7af
23e4fe6
* Mon Apr 29 2019 Petr Pisar <ppisar@redhat.com> - 1.69-1
23e4fe6
- 1.69 bump
23e4fe6
a660cfb
* Tue Apr 23 2019 Petr Pisar <ppisar@redhat.com> - 1.68-1
a660cfb
- 1.68 bump
a660cfb
f8dd44c
* Thu Apr 11 2019 Petr Pisar <ppisar@redhat.com> - 1.65-1
f8dd44c
- 1.65 bump
f8dd44c
1d16c29
* Tue Apr 09 2019 Petr Pisar <ppisar@redhat.com> - 1.63-1
1d16c29
- 1.63 bump
1d16c29
fe8476d
* Thu Mar 28 2019 Petr Pisar <ppisar@redhat.com> - 1.62-1
fe8476d
- 1.62 bump
fe8476d
ba791dd
* Wed Mar 13 2019 Petr Pisar <ppisar@redhat.com> - 1.60-2
ba791dd
- Use now-packaged FFI::Platypus
ba791dd
7900e95
* Fri Mar 01 2019 Petr Pisar <ppisar@redhat.com> - 1.60-1
7900e95
- 1.60 bump
7900e95
beef961
* Mon Feb 25 2019 Petr Pisar <ppisar@redhat.com> - 1.55-1
beef961
- 1.55 bump
beef961
61e1f61
* Mon Feb 11 2019 Petr Pisar <ppisar@redhat.com> - 1.52-1
61e1f61
- 1.52 bump
61e1f61
5c21c4e
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.51-2
5c21c4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5c21c4e
f980bd1
* Mon Jan 21 2019 Petr Pisar <ppisar@redhat.com> - 1.51-1
f980bd1
- 1.51 bump
f980bd1
40e41cd
* Fri Jan 18 2019 Petr Pisar <ppisar@redhat.com> - 1.50-1
40e41cd
- 1.50 bump
40e41cd
f71398a
* Mon Nov 05 2018 Petr Pisar <ppisar@redhat.com> - 1.49-1
f71398a
- 1.49 bump
f71398a
f5e623c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.48-2
f5e623c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f5e623c
22deffb
* Mon Jul 09 2018 Petr Pisar <ppisar@redhat.com> - 1.48-1
22deffb
- 1.48 bump
22deffb
04fe9a8
* Tue Jul 03 2018 Petr Pisar <ppisar@redhat.com> - 1.46-3
04fe9a8
- Perl 5.28 re-rebuild of bootstrapped packages
04fe9a8
39f042d
* Tue Jul 03 2018 Petr Pisar <ppisar@redhat.com> - 1.46-2
39f042d
- Perl 5.28 rebuild
39f042d
ef0b670
* Mon Jun 25 2018 Petr Pisar <ppisar@redhat.com> - 1.46-1
ef0b670
- 1.46 bump
ef0b670
dd51efc
* Mon Jun 04 2018 Petr Pisar <ppisar@redhat.com> - 1.43-1
dd51efc
- 1.43 bump
dd51efc
1489e91
* Thu May 10 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.42-1
1489e91
- 1.42 bump
1489e91
ac70ab8
* Tue Apr 24 2018 Petr Pisar <ppisar@redhat.com> - 1.41-1
ac70ab8
- 1.41 bump
ac70ab8
5df0a8b
* Mon Mar 12 2018 Petr Pisar <ppisar@redhat.com> - 1.39-1
5df0a8b
- 1.39 bump
5df0a8b
f7778a4
* Mon Feb 26 2018 Petr Pisar <ppisar@redhat.com> - 1.37-1
f7778a4
- 1.37 bump
f7778a4
1bdac35
* Fri Feb 23 2018 Petr Pisar <ppisar@redhat.com> - 1.36-2
1bdac35
- Do not require C++ for build ing C tests (bug #923024)
22931c8
- Build-require gcc because it is executed by tests via cmake (bug #923024)
22931c8
- Run-requires gcc for Alien::Base::Wrapper::cc()
1bdac35
73ea060
* Tue Feb 06 2018 Petr Pisar <ppisar@redhat.com> - 1.36-1
73ea060
- 1.36 bump
73ea060
c444d96
* Mon Nov 06 2017 Petr Pisar <ppisar@redhat.com> - 1.32-1
c444d96
- 1.32 bump
c444d96
de8ea42
* Fri Nov 03 2017 Petr Pisar <ppisar@redhat.com> - 1.28-2
de8ea42
- Conflict with perl-Alien-Base-ModuleBuild < 1.00 because of
de8ea42
  Alien::Base::PkgConfig
de8ea42
0d5ea32
* Fri Nov 03 2017 Petr Pisar <ppisar@redhat.com> - 1.28-1
0d5ea32
- 1.28 bump
0d5ea32
3dbb29e
* Tue Sep 26 2017 Petr Pisar <ppisar@redhat.com> - 1.18-1
3dbb29e
- 1.18 bump
3dbb29e
8f51d13
* Tue Sep 19 2017 Petr Pisar <ppisar@redhat.com> - 1.16-1
8f51d13
- 1.16 bump
8f51d13
e2e8b15
* Fri Sep 08 2017 Petr Pisar <ppisar@redhat.com> - 1.10-1
e2e8b15
- 1.10 bump
e2e8b15
0d2fac5
* Tue Aug 29 2017 Petr Pisar <ppisar@redhat.com> - 1.05-1
0d2fac5
- 1.05 bump
0d2fac5
5f9bfad
* Mon Aug 28 2017 Petr Pisar <ppisar@redhat.com> - 1.04-1
5f9bfad
- 1.04 bump
5f9bfad
0a30ed0
* Fri Aug 18 2017 Petr Pisar <ppisar@redhat.com> - 0.99-1
0a30ed0
- 0.99 bump
0a30ed0
8e968d7
* Thu Aug 17 2017 Petr Pisar <ppisar@redhat.com> 0.95-1
8e968d7
- Specfile autogenerated by cpanspec 1.78.