The package rpms/perl-Alien-ROOT.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/perl-Alien-ROOT.git/commit/?id=87aae....
Change: -ExcludeArch: s390x
Thanks.
Full change: ============
commit d1e65d05fb05482859dd0eb4895edbe115fcab71 Author: Petr Písař ppisar@redhat.com Date: Tue Sep 14 12:20:10 2021 +0200
Add FMF tests and gating
diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..282e16b --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_stable +subject_type: koji_build +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} diff --git a/plans/sanity.fmf b/plans/sanity.fmf new file mode 100644 index 0000000..a72ded4 --- /dev/null +++ b/plans/sanity.fmf @@ -0,0 +1,5 @@ +summary: Sanity tests +discover: + how: fmf +execute: + how: tmt diff --git a/tests/upstream-tests.fmf b/tests/upstream-tests.fmf new file mode 100644 index 0000000..3b4be5c --- /dev/null +++ b/tests/upstream-tests.fmf @@ -0,0 +1,4 @@ +summary: Upstream tests +component: perl-Alien-ROOT +require: perl-Alien-ROOT-tests +test: /usr/libexec/perl-Alien-ROOT/test
commit 6d3aac9268a1c323a109d76368105016008eb4ad Author: Petr Písař ppisar@redhat.com Date: Tue Sep 14 12:17:01 2021 +0200
Use perl instead of sed
diff --git a/perl-Alien-ROOT.spec b/perl-Alien-ROOT.spec index c307d4b..4d922b9 100644 --- a/perl-Alien-ROOT.spec +++ b/perl-Alien-ROOT.spec @@ -32,7 +32,6 @@ BuildRequires: perl(lib) BuildRequires: perl(Module::Build) BuildRequires: perl(strict) BuildRequires: perl(warnings) -BuildRequires: sed # Run-time: BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Spec) @@ -65,10 +64,10 @@ with "%{_libexecdir}/%{name}/test". %patch0 -p1 # Remove bundled modules find inc -depth -mindepth 1 -maxdepth 1 ! -name Alien -exec rm -rf -- {} + -sed -i -e '/^inc//d' MANIFEST +perl -i -ne 'print $_ unless m{^inc/}' MANIFEST find inc -type f >> MANIFEST # Bypass inc::latest as it requires packlists -sed -i -e "s/use inc::latest '([^']*)'/use \1/" Build.PL +perl -i -pe "s/use inc::latest '([^']*)'/use $1/" Build.PL
%build perl Build.PL installdirs=vendor
commit 186f5ae2a7bcf661e42afdc5a28c6046190404ea Author: Petr Písař ppisar@redhat.com Date: Tue Sep 14 11:51:38 2021 +0200
Package the tests
diff --git a/perl-Alien-ROOT.rpmlintrc b/perl-Alien-ROOT.rpmlintrc index d3fce86..a5d5f5e 100644 --- a/perl-Alien-ROOT.rpmlintrc +++ b/perl-Alien-ROOT.rpmlintrc @@ -1,3 +1 @@ -from Config import * -# This pacakge contains data specific to ab architecture. Thus it's full-arch. -addFilter("perl-Alien-ROOT..*: E: no-binary"); +addFilter('-tests.noarch: W: no-documentation') diff --git a/perl-Alien-ROOT.spec b/perl-Alien-ROOT.spec index f7dc1eb..c307d4b 100644 --- a/perl-Alien-ROOT.spec +++ b/perl-Alien-ROOT.spec @@ -50,6 +50,16 @@ Requires: root-core The original intention is to install and detect CERN's ROOT library. This package always requires the ROOT library provided with your distribution.
+%package tests +Summary: Tests for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: perl-Test-Harness +Requires: perl(Alien::ROOT) + +%description tests +Tests from %{name}. Execute them +with "%{_libexecdir}/%{name}/test". + %prep %setup -q -n Alien-ROOT-v%{version} %patch0 -p1 @@ -65,10 +75,19 @@ perl Build.PL installdirs=vendor ./Build
%install -./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 -%{_fixperms} $RPM_BUILD_ROOT/* +./Build install destdir=%{buildroot} create_packlist=0 +%{_fixperms} %{buildroot}/* +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name} +cp -a t %{buildroot}%{_libexecdir}/%{name} +cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' +#!/bin/sh +cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" +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}') ./Build test
%files @@ -76,9 +95,13 @@ perl Build.PL installdirs=vendor %{perl_vendorlib}/* %{_mandir}/man3/*
+%files tests +%{_libexecdir}/%{name} + %changelog * Mon Aug 30 2021 Petr Pisar ppisar@redhat.com - 5.34.36.1-25 - Enable building for s390x (bug #1482813) +- Package the tests
* Thu Jul 22 2021 Fedora Release Engineering releng@fedoraproject.org - 5.34.36.1-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
commit 87aae67a58911c2ceb694e6bb3223bd010cc8f04 Author: Petr Písař ppisar@redhat.com Date: Tue Sep 14 11:44:34 2021 +0200
Enable building for s390x
diff --git a/perl-Alien-ROOT.spec b/perl-Alien-ROOT.spec index a732c07..f7dc1eb 100644 --- a/perl-Alien-ROOT.spec +++ b/perl-Alien-ROOT.spec @@ -1,6 +1,6 @@ Name: perl-Alien-ROOT Version: 5.34.36.1 -Release: 24%{?dist} +Release: 25%{?dist} Summary: Utility package to install and locate CERN's ROOT library # README: GPLv2+ # lib/Alien/ROOT.pm: GPLv2+ @@ -11,13 +11,7 @@ License: GPLv2+ URL: https://metacpan.org/release/Alien-ROOT Source0: https://cpan.metacpan.org/authors/id/S/SM/SMUELLER/Alien-ROOT-v%%7Bversion%7... Patch0: Alien-ROOT-v5.34.36.1-Disable-build-time-check-for-Root.patch -# Make packages architecture specific to prevent building on architectures -# were root package is not available. -# This is workaround for https://pagure.io/releng/issue/6359. -# And disable debuginfo generation becaue of no compiled code, bug #1141466 -%global debug_package %{nil} -# bug #1482813 -ExcludeArch: s390x +BuildArch: noarch BuildRequires: coreutils BuildRequires: findutils BuildRequires: perl-generators @@ -83,6 +77,9 @@ perl Build.PL installdirs=vendor %{_mandir}/man3/*
%changelog +* Mon Aug 30 2021 Petr Pisar ppisar@redhat.com - 5.34.36.1-25 +- Enable building for s390x (bug #1482813) + * Thu Jul 22 2021 Fedora Release Engineering releng@fedoraproject.org - 5.34.36.1-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild