Compare commits

..

No commits in common. "c10s" and "c9s" have entirely different histories.
c10s ... c9s

5 changed files with 14 additions and 98 deletions

View File

@ -1 +0,0 @@
1

View File

@ -1,7 +0,0 @@
# RHEL
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -1,8 +1,8 @@
Name: perl-Test-CPAN-Meta-JSON
Version: 0.16
Release: 31%{?dist}
Release: 21%{?dist}
Summary: Validate a META.json file within a CPAN distribution
License: Artistic-2.0
License: Artistic 2.0
URL: https://metacpan.org/release/Test-CPAN-Meta-YAML
Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-CPAN-Meta-JSON-%{version}.tar.gz
Patch0: Test-CPAN-Meta-JSON-0.16-utf8.patch
@ -13,7 +13,6 @@ BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker)
# Module Runtime
BuildRequires: perl(IO::File)
@ -29,8 +28,8 @@ BuildRequires: perl(Test::More)
BuildRequires: perl(Test::CPAN::Meta)
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage) >= 0.08
# Dependencies
# (none)
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
This module was written to ensure that a META.json file, provided with a
@ -40,25 +39,11 @@ Module::Build and Module::Install.
See CPAN::Meta for further details of the CPAN Meta Specification.
%package tests
Summary: Tests for %{name}
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl-Test-Harness
%description tests
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".
%prep
%setup -q -n Test-CPAN-Meta-JSON-%{version}
# Help generators to recognize Perl scripts
for F in t/*.t; do
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
chmod +x "$F"
done
# Recode LICENSE as UTF-8
%patch -P 0
%patch0
%build
perl Makefile.PL INSTALLDIRS=vendor
@ -68,72 +53,28 @@ make %{?_smp_mflags}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot}
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
# Remove author tests
rm -f %{buildroot}%{_libexecdir}/%{name}/t/90podtest.t
rm -f %{buildroot}%{_libexecdir}/%{name}/t/91podcover.t
rm -f %{buildroot}%{_libexecdir}/%{name}/t/94metatest.t
rm -f %{buildroot}%{_libexecdir}/%{name}/t/95changedate.t
rm -f %{buildroot}%{_libexecdir}/%{name}/t/96metatest.t
rm -f %{buildroot}%{_libexecdir}/%{name}/t/97metatest.t
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
make test AUTOMATED_TESTING=1
%files
%if 0%{?_licensedir:1}
%license LICENSE
%else
%doc LICENSE
%endif
%doc Changes README examples/
%{perl_vendorlib}/Test/
%{_mandir}/man3/Test::CPAN::Meta::JSON.3*
%{_mandir}/man3/Test::CPAN::Meta::JSON::Version.3*
%files tests
%{_libexecdir}/%{name}
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.16-31
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.16-21
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Mon Aug 19 2024 Michal Josef Špaček <mspacek@redhat.com> - 0.16-30
- Package tests
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.16-29
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.16-23
- Perl 5.36 rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.16-20
- Perl 5.34 rebuild
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.16-20
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

View File

@ -1,5 +0,0 @@
summary: Sanity tests
discover:
how: fmf
execute:
how: tmt

View File

@ -1,12 +0,0 @@
summary: Upstream tests
contact: Michal Josef Spacek <mspacek@redhat.com>
component: perl-Test-CPAN-Meta-JSON
require: perl-Test-CPAN-Meta-JSON-tests
test: /usr/libexec/perl-Test-CPAN-Meta-JSON/test
enabled: true
tag:
- rhel-buildroot
adjust:
- enabled: false
when: distro < rhel-10 or distro < centos-stream-10
continue: false