Compare commits

...

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

9 changed files with 148 additions and 21 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

13
.gitignore vendored
View File

@ -1 +1,12 @@
SOURCES/MIME-Charset-1.012.2.tar.gz MIME-Charset-1.006.2.tar.gz
/MIME-Charset-1.008.tar.gz
/MIME-Charset-1.008.1.tar.gz
/MIME-Charset-1.008.2.tar.gz
/MIME-Charset-1.009.1.tar.gz
/MIME-Charset-1.009.2.tar.gz
/MIME-Charset-1.010.tar.gz
/MIME-Charset-1.010.1.tar.gz
/MIME-Charset-1.011.1.tar.gz
/MIME-Charset-1.012.tar.gz
/MIME-Charset-1.012.2.tar.gz
/MIME-Charset-1.013.1.tar.gz

View File

@ -1 +0,0 @@
a79618a04197d303bba9174feee66767760c15fd SOURCES/MIME-Charset-1.012.2.tar.gz

7
gating.yaml Normal file
View File

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

View File

@ -1,19 +1,17 @@
Name: perl-MIME-Charset Name: perl-MIME-Charset
Version: 1.012.2 Version: 1.013.1
Release: 4%{?dist} Release: 8%{?dist}
Summary: Charset Informations for MIME Summary: Charset Informations for MIME
License: GPL+ or Artistic License: GPL-1.0-or-later OR Artistic-1.0-Perl
Group: Development/Libraries URL: https://metacpan.org/release/MIME-Charset
URL: http://search.cpan.org/dist/MIME-Charset/ Source0: https://cpan.metacpan.org/authors/id/N/NE/NEZUMI/MIME-Charset-%{version}.tar.gz
Source0: http://search.cpan.org/CPAN/authors/id/N/NE/NEZUMI/MIME-Charset-%{version}.tar.gz
# Disable Module::AutoInstall # Disable Module::AutoInstall
Patch0: MIME-Charset-1.012-Do-not-install-modules-from-the-Internet.patch Patch0: MIME-Charset-1.012-Do-not-install-modules-from-the-Internet.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: coreutils BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(inc::Module::Install) BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(Module::Install::Metadata) BuildRequires: perl(Module::Install::Metadata)
BuildRequires: perl(Module::Install::Win32) BuildRequires: perl(Module::Install::Win32)
@ -26,9 +24,10 @@ BuildRequires: perl(Exporter)
BuildRequires: perl(strict) BuildRequires: perl(strict)
BuildRequires: perl(vars) BuildRequires: perl(vars)
# Optional run-time: # Optional run-time:
# Encode::JISX0213 0.03 not yet packaged # Encode::DIN66003 0.01 not needed at tests
# Encode::HanExtra 0.20 not needed at tests
BuildRequires: perl(Encode::EUCJPASCII) >= 0.02 BuildRequires: perl(Encode::EUCJPASCII) >= 0.02
# Encode::HanExtra 0.20 not needed at tests
# Encode::JISX0213 0.03 not yet packaged
# Tests: # Tests:
# Encode::CN not used # Encode::CN not used
# Encode::JP not used # Encode::JP not used
@ -36,8 +35,6 @@ BuildRequires: perl(Test)
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More)
# Optional tests: # Optional tests:
BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: sed
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
# Filter under-specified symbols # Filter under-specified symbols
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(MIME::Charset\\)$ %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(MIME::Charset\\)$
@ -46,21 +43,44 @@ Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
MIME::Charset provides information about character sets used for MIME MIME::Charset provides information about character sets used for MIME
messages on Internet. messages on Internet.
%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 %prep
%setup -q -n MIME-Charset-%{version} %setup -q -n MIME-Charset-%{version}
%patch0 -p1 %patch -P0 -p1
# Remove bundled modules # Remove bundled modules
rm -rf ./inc rm -rf ./inc
sed -i -e '/^inc\//d' MANIFEST perl -i -ne 'print $_ unless m{^inc/}' MANIFEST
# 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
%build %build
perl Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
make %{?_smp_mflags} %{make_build}
%install %install
make pure_install DESTDIR=$RPM_BUILD_ROOT %{make_install}
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; %{_fixperms} %{buildroot}/*
%{_fixperms} $RPM_BUILD_ROOT/* # Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
# Remote author tests
rm -f %{buildroot}%{_libexecdir}/%{name}/t/pod.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 %check
make test make test
@ -71,7 +91,78 @@ make test
%{perl_vendorlib}/* %{perl_vendorlib}/*
%{_mandir}/man3/* %{_mandir}/man3/*
%files tests
%{_libexecdir}/%{name}
%changelog %changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.013.1-8
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Sun Aug 04 2024 Michal Josef Špaček <mspacek@redhat.com> - 1.013.1-7
- Fix %patch macro
- Package tests
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.013.1-6
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.013.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.013.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.013.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.013.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Mon Aug 22 2022 Petr Pisar <ppisar@redhat.com> - 1.013.1-1
- 1.013.1 bump (bug #2116641)
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.012.2-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed Jun 01 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.012.2-17
- Perl 5.36 rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.012.2-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.012.2-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.012.2-14
- Perl 5.34 rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.012.2-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.012.2-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.012.2-11
- Perl 5.32 rebuild
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.012.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.012.2-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.012.2-8
- Perl 5.30 rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.012.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.012.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.012.2-5
- Perl 5.28 rebuild
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.012.2-4 * Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.012.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

5
plans/sanity.fmf Normal file
View File

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

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (MIME-Charset-1.013.1.tar.gz) = 10d6b57cc1b08d126a1d7dea2c5d48be0cd3a6457b75de6a91f47dcaa3cd9314b0d7b147ae14053952571b3d50882ec71af7a9808870a08c97aacd43b13e764c

12
tests/upstream-tests.fmf Normal file
View File

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