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=80....
Change:
-ExcludeArch: s390x
Thanks.
Full change:
============
commit ad06daaab26300df209245eeb7fdc890a2dedfc4
Author: Petr Písař <ppisar(a)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 e166142e6af3efb81e589097377716ed8f43d67c
Author: Petr Písař <ppisar(a)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 7067f18..3d06b5e 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 31295f58b1388d95fea526cafbaf497eb4dc0b4a
Author: Petr Písař <ppisar(a)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 e201ac3..7067f18 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(a)redhat.com> - 5.34.36.1-23
- Enable building for s390x (bug #1482813)
+- Package the tests
* Tue Jan 26 2021 Fedora Release Engineering <releng(a)fedoraproject.org> -
5.34.36.1-22
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
commit 805d57e65d27350ebd7f8e24fec9433bdd50b8c9
Author: Petr Písař <ppisar(a)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 2054403..e201ac3 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: 22%{?dist}
+Release: 23%{?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%{version}...
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(a)redhat.com> - 5.34.36.1-23
+- Enable building for s390x (bug #1482813)
+
* Tue Jan 26 2021 Fedora Release Engineering <releng(a)fedoraproject.org> -
5.34.36.1-22
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild