diff --git a/.gitignore b/.gitignore index 81c4b6e..82e7e52 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/MIME-Charset-1.012.2.tar.gz +MIME-Charset-1.013.1.tar.gz diff --git a/.perl-MIME-Charset.metadata b/.perl-MIME-Charset.metadata deleted file mode 100644 index e58b9ad..0000000 --- a/.perl-MIME-Charset.metadata +++ /dev/null @@ -1 +0,0 @@ -a79618a04197d303bba9174feee66767760c15fd SOURCES/MIME-Charset-1.012.2.tar.gz diff --git a/SOURCES/MIME-Charset-1.012-Do-not-install-modules-from-the-Internet.patch b/MIME-Charset-1.012-Do-not-install-modules-from-the-Internet.patch similarity index 100% rename from SOURCES/MIME-Charset-1.012-Do-not-install-modules-from-the-Internet.patch rename to MIME-Charset-1.012-Do-not-install-modules-from-the-Internet.patch diff --git a/SPECS/perl-MIME-Charset.spec b/perl-MIME-Charset.spec similarity index 57% rename from SPECS/perl-MIME-Charset.spec rename to perl-MIME-Charset.spec index 89fde50..a9a0617 100644 --- a/SPECS/perl-MIME-Charset.spec +++ b/perl-MIME-Charset.spec @@ -1,19 +1,17 @@ Name: perl-MIME-Charset -Version: 1.012.2 -Release: 4%{?dist} +Version: 1.013.1 +Release: 8%{?dist} Summary: Charset Informations for MIME -License: GPL+ or Artistic -Group: Development/Libraries -URL: http://search.cpan.org/dist/MIME-Charset/ -Source0: http://search.cpan.org/CPAN/authors/id/N/NE/NEZUMI/MIME-Charset-%{version}.tar.gz +License: GPL-1.0-or-later OR Artistic-1.0-Perl +URL: https://metacpan.org/release/MIME-Charset +Source0: https://cpan.metacpan.org/authors/id/N/NE/NEZUMI/MIME-Charset-%{version}.tar.gz # Disable Module::AutoInstall Patch0: MIME-Charset-1.012-Do-not-install-modules-from-the-Internet.patch BuildArch: noarch BuildRequires: coreutils -BuildRequires: findutils BuildRequires: make -BuildRequires: perl-interpreter BuildRequires: perl-generators +BuildRequires: perl-interpreter BuildRequires: perl(inc::Module::Install) BuildRequires: perl(Module::Install::Metadata) BuildRequires: perl(Module::Install::Win32) @@ -26,9 +24,10 @@ BuildRequires: perl(Exporter) BuildRequires: perl(strict) BuildRequires: perl(vars) # Optional run-time: -# Encode::JISX0213 0.03 not yet packaged -# Encode::HanExtra 0.20 not needed at tests +# Encode::DIN66003 0.01 not needed at tests BuildRequires: perl(Encode::EUCJPASCII) >= 0.02 +# Encode::HanExtra 0.20 not needed at tests +# Encode::JISX0213 0.03 not yet packaged # Tests: # Encode::CN not used # Encode::JP not used @@ -36,8 +35,6 @@ BuildRequires: perl(Test) BuildRequires: perl(Test::More) # Optional tests: BuildRequires: perl(Test::Pod) >= 1.00 -BuildRequires: sed -Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) # Filter under-specified symbols %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 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 %setup -q -n MIME-Charset-%{version} -%patch0 -p1 +%patch -P0 -p1 # Remove bundled modules 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 -perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install DESTDIR=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; -%{_fixperms} $RPM_BUILD_ROOT/* +%{make_install} +%{_fixperms} %{buildroot}/* +# 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 make test @@ -71,7 +91,78 @@ make test %{perl_vendorlib}/* %{_mandir}/man3/* +%files tests +%{_libexecdir}/%{name} + %changelog +* Tue Oct 29 2024 Troy Dawson - 1.013.1-8 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Sun Aug 04 2024 Michal Josef Špaček - 1.013.1-7 +- Fix %patch macro +- Package tests + +* Mon Jun 24 2024 Troy Dawson - 1.013.1-6 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 1.013.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.013.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 1.013.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jan 20 2023 Fedora Release Engineering - 1.013.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Mon Aug 22 2022 Petr Pisar - 1.013.1-1 +- 1.013.1 bump (bug #2116641) + +* Fri Jul 22 2022 Fedora Release Engineering - 1.012.2-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jun 01 2022 Jitka Plesnikova - 1.012.2-17 +- Perl 5.36 rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 1.012.2-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 1.012.2-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri May 21 2021 Jitka Plesnikova - 1.012.2-14 +- Perl 5.34 rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 1.012.2-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.012.2-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jun 23 2020 Jitka Plesnikova - 1.012.2-11 +- Perl 5.32 rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 1.012.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 1.012.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri May 31 2019 Jitka Plesnikova - 1.012.2-8 +- Perl 5.30 rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1.012.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.012.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jun 28 2018 Jitka Plesnikova - 1.012.2-5 +- Perl 5.28 rebuild + * Thu Feb 08 2018 Fedora Release Engineering - 1.012.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/sources b/sources new file mode 100644 index 0000000..f2cf753 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (MIME-Charset-1.013.1.tar.gz) = 10d6b57cc1b08d126a1d7dea2c5d48be0cd3a6457b75de6a91f47dcaa3cd9314b0d7b147ae14053952571b3d50882ec71af7a9808870a08c97aacd43b13e764c