From 11c8b1ed123e932aa0f638eda582ab90a69d3747 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 7 May 2019 05:33:13 -0400 Subject: [PATCH] import perl-MIME-Charset-1.012.2-4.el8 --- .gitignore | 1 + .perl-MIME-Charset.metadata | 1 + ...ot-install-modules-from-the-Internet.patch | 35 ++++ SPECS/perl-MIME-Charset.spec | 188 ++++++++++++++++++ 4 files changed, 225 insertions(+) create mode 100644 .gitignore create mode 100644 .perl-MIME-Charset.metadata create mode 100644 SOURCES/MIME-Charset-1.012-Do-not-install-modules-from-the-Internet.patch create mode 100644 SPECS/perl-MIME-Charset.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..81c4b6e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/MIME-Charset-1.012.2.tar.gz diff --git a/.perl-MIME-Charset.metadata b/.perl-MIME-Charset.metadata new file mode 100644 index 0000000..e58b9ad --- /dev/null +++ b/.perl-MIME-Charset.metadata @@ -0,0 +1 @@ +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/SOURCES/MIME-Charset-1.012-Do-not-install-modules-from-the-Internet.patch new file mode 100644 index 0000000..a08a2b9 --- /dev/null +++ b/SOURCES/MIME-Charset-1.012-Do-not-install-modules-from-the-Internet.patch @@ -0,0 +1,35 @@ +From f0334077907769117b627d6388d2df8d87828ee4 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Thu, 25 Jun 2015 13:54:15 +0200 +Subject: [PATCH] Do not install modules from the Internet +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Písař +--- + Makefile.PL | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/Makefile.PL b/Makefile.PL +index 410cc85..962b517 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -12,7 +12,6 @@ configure_requires 'CPAN' => 0; # for inc::Module::AutoInstall + test_requires 'Test::More' => '0'; + if ( $] >= 5.007003 ) { + requires 'Encode' => '1.98'; +- include 'Module::AutoInstall'; + feature 'Extended mappings by Japanese codepages', + -default => 0, + 'Encode::EUCJPASCII' => '0.02'; +@@ -29,6 +28,5 @@ if ( $] >= 5.007003 ) { + + # Write out + no_index directory => 't', 'inc'; +-auto_install force => 0, do_once => 1; + WriteAll; + +-- +2.1.0 + diff --git a/SPECS/perl-MIME-Charset.spec b/SPECS/perl-MIME-Charset.spec new file mode 100644 index 0000000..89fde50 --- /dev/null +++ b/SPECS/perl-MIME-Charset.spec @@ -0,0 +1,188 @@ +Name: perl-MIME-Charset +Version: 1.012.2 +Release: 4%{?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 +# 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(inc::Module::Install) +BuildRequires: perl(Module::Install::Metadata) +BuildRequires: perl(Module::Install::Win32) +BuildRequires: perl(Module::Install::WriteAll) +# Run-time: +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +BuildRequires: perl(Encode::Encoding) +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 +BuildRequires: perl(Encode::EUCJPASCII) >= 0.02 +# Tests: +# Encode::CN not used +# Encode::JP not used +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\\)$ + +%description +MIME::Charset provides information about character sets used for MIME +messages on Internet. + +%prep +%setup -q -n MIME-Charset-%{version} +%patch0 -p1 +# Remove bundled modules +rm -rf ./inc +sed -i -e '/^inc\//d' MANIFEST + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%license ARTISTIC COPYING +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Feb 08 2018 Fedora Release Engineering - 1.012.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.012.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Jun 05 2017 Jitka Plesnikova - 1.012.2-2 +- Perl 5.26 rebuild + +* Fri Apr 14 2017 Xavier Bachelot - 1.012.2-1 +- Update to 1.012.2. + +* Sat Feb 11 2017 Fedora Release Engineering - 1.012-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sun May 15 2016 Jitka Plesnikova - 1.012-3 +- Perl 5.24 rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.012-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 25 2015 Petr Pisar - 1.012-1 +- 1.012 bump + +* Thu Jun 18 2015 Fedora Release Engineering - 1.011.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 06 2015 Jitka Plesnikova - 1.011.1-4 +- Perl 5.22 rebuild + +* Thu Aug 28 2014 Jitka Plesnikova - 1.011.1-3 +- Perl 5.20 rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.011.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed Oct 16 2013 Xavier Bachelot 1.011.1-1 +- Update to 1.011.1. + +* Wed Aug 28 2013 Xavier Bachelot 1.010.1-1 +- Update to 1.010.1. + +* Sat Aug 03 2013 Fedora Release Engineering - 1.010-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Sun Jul 21 2013 Petr Pisar - 1.010-2 +- Perl 5.18 rebuild + +* Wed Apr 10 2013 Xavier Bachelot 1.010-1 +- Update to 1.010. + +* Thu Feb 14 2013 Fedora Release Engineering - 1.009.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jul 20 2012 Fedora Release Engineering - 1.009.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Jun 12 2012 Petr Pisar - 1.009.2-2 +- Perl 5.16 rebuild + +* Mon Jun 04 2012 Xavier Bachelot 1.009.2-1 +- Update to 1.009.2. + +* Fri Jan 06 2012 Xavier Bachelot 1.009.1-5 +- Add BR: for perl(Encode::EUCJPASCII) for better test coverage. + +* Wed Dec 21 2011 Xavier Bachelot 1.009.1-4 +- Add BR: for perl(Encode::JIS2K) and perl(Encode::HanExtra) for better test + coverage. + +* Thu Jul 21 2011 Petr Sabata - 1.009.1-3 +- Perl mass rebuild + +* Wed Jul 20 2011 Petr Sabata - 1.009.1-2 +- Perl mass rebuild + +* Fri Jul 08 2011 Xavier Bachelot 1.009.1-1 +- Update to 1.009.1. + +* Mon Jun 20 2011 Marcela Mašláňová - 1.008.2-2 +- Perl mass rebuild + +* Mon May 30 2011 Xavier Bachelot 1.008.2-1 +- Update to 1.008.2. + +* Thu May 12 2011 Xavier Bachelot 1.008.1-1 +- Update to 1.008.1. + +* Tue Feb 08 2011 Fedora Release Engineering - 1.008-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Dec 20 2010 Marcela Maslanova - 1.008-2 +- 661697 rebuild for fixing problems with vendorach/lib + +* Tue Dec 14 2010 Xavier Bachelot 1.008-1 +- Update to 1.008. +- Update Source0 URL. +- More BRs for better tests coverage. + +* Mon May 03 2010 Marcela Maslanova - 1.006.2-5 +- Mass rebuild with perl-5.12.0 + +* Mon Dec 7 2009 Stepan Kasal - 1.006.2-4 +- rebuild against perl 5.10.1 + +* Sun Jul 26 2009 Fedora Release Engineering - 1.006.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Apr 28 2009 Xavier Bachelot 1.006.2-2 +- Filter duplicate Provides:. + +* Fri Apr 24 2009 Xavier Bachelot 1.006.2-1 +- Specfile autogenerated by cpanspec 1.77. +- Fix license.