b8cde6b
Name:           perl-Email-MIME-ContentType
80c21c5
Version:        1.022
6f77d4d
Release:        4%{?dist}
b8cde6b
Summary:        Parse a MIME Content-Type Header
b8cde6b
b8cde6b
Group:          Development/Libraries
0a199e8
License:        GPL+ or Artistic
5a004d4
URL:            https://metacpan.org/release/Email-MIME-ContentType
5a004d4
Source0:        https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Email-MIME-ContentType-%{version}.tar.gz
b8cde6b
b8cde6b
BuildArch:      noarch
581b265
BuildRequires:  perl-generators
b1803ca
BuildRequires:  perl(blib)
b1803ca
BuildRequires:  perl(Capture::Tiny)
b1803ca
BuildRequires:  perl(Carp)
b1803ca
BuildRequires:  perl(Exporter) >= 5.57
b1803ca
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
b1803ca
BuildRequires:  perl(strict)
b1803ca
BuildRequires:  perl(Test::More) >= 0.96
b1803ca
BuildRequires:  perl(Test::Pod) >= 1.41
b1803ca
BuildRequires:  perl(version) > 0.99
b1803ca
BuildRequires:  perl(warnings)
b8cde6b
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
b8cde6b
b8cde6b
%description
b1803ca
This module is responsible for parsing email content type headers according
b1803ca
to section 5.1 of RFC 2045. It returns a hash with entries for the type, the
b1803ca
subtype, and a hash of attributes.
b1803ca
b1803ca
For backward compatibility with a really unfortunate misunderstanding of RFC
b1803ca
2045 by the early implementors of this module, 'discrete' and 'composite' are
b1803ca
also present in the returned hashref, with the values of 'type' and 'subtype'
b1803ca
respectively.
b8cde6b
b8cde6b
b8cde6b
%prep
b8cde6b
%setup -q -n Email-MIME-ContentType-%{version}
b8cde6b
b8cde6b
b8cde6b
%build
b8cde6b
%{__perl} Makefile.PL INSTALLDIRS=vendor
b8cde6b
make %{?_smp_mflags}
b8cde6b
b8cde6b
b8cde6b
%install
b8cde6b
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
b8cde6b
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
b8cde6b
chmod -R u+w $RPM_BUILD_ROOT/*
b8cde6b
b8cde6b
b8cde6b
%check
b8cde6b
make test
b1803ca
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
b8cde6b
b8cde6b
b8cde6b
%files
0733231
%doc Changes LICENSE README
b8cde6b
%{perl_vendorlib}/Email/
b8cde6b
%{_mandir}/man3/*.3pm*
b8cde6b
b8cde6b
b8cde6b
%changelog
6f77d4d
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.022-4
6f77d4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6f77d4d
d17af2a
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.022-3
d17af2a
- Perl 5.28 rebuild
d17af2a
81aa47a
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.022-2
81aa47a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
81aa47a
80c21c5
* Thu Aug 31 2017 Tom Callaway <spot@fedoraproject.org> - 1.022-1
80c21c5
- update to 1.022
80c21c5
7c16c4c
* Fri Aug  4 2017 Tom Callaway <spot@fedoraproject.org> - 1.021-1
7c16c4c
- update to 1.021
7c16c4c
1bad20d
* Mon Jul 31 2017 Tom Callaway <spot@fedoraproject.org> - 1.020-1
1bad20d
- update to 1.020
1bad20d
ec131d4
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.018-7
ec131d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ec131d4
a29bc8f
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.018-6
a29bc8f
- Perl 5.26 rebuild
a29bc8f
7f43990
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.018-5
7f43990
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7f43990
348d1af
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.018-4
348d1af
- Perl 5.24 rebuild
348d1af
18e92d7
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.018-3
18e92d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
18e92d7
28ef647
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.018-2
28ef647
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
28ef647
96b4f59
* Thu Jun 11 2015 Tom Callaway <spot@fedoraproject.rog> - 1.0.18-1
96b4f59
- update to 1.0.18
96b4f59
e37fbb4
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.017-4
e37fbb4
- Perl 5.22 rebuild
e37fbb4
c5b9d17
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.017-3
c5b9d17
- Perl 5.20 rebuild
c5b9d17
504e375
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.017-2
504e375
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
504e375
b1803ca
* Sun Aug 11 2013 Paul Howarth <paul@city-fan.org> - 1.017-1
b1803ca
- Update to 1.017
b1803ca
  - Correct the longstanding and embarrassing misuse of "discrete" and
b1803ca
    "composite" to mean "type" and "subtype"; the returned data still contains
b1803ca
    the wrong old names so your code shouldn't break
b1803ca
  - Repackage to update bugtracker, repo, etc.
b1803ca
  - Make $STRICT_PARAMS actually work! (CPAN RT#87460)
b1803ca
- Don't need to remove empty directories from the buildroot
b1803ca
- Drop %%defattr, redundant since rpm 4.4
b1803ca
- Explicitly run the release tests
b1803ca
d74176e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.015-16
d74176e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d74176e
e875c0e
* Sat Jul 20 2013 Petr Pisar <ppisar@redhat.com> - 1.015-15
e875c0e
- Perl 5.18 rebuild
e875c0e
cffc8ae
* Sun Feb 24 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.015-14
cffc8ae
- Add BR: perl(ExtUtils::MakeMaker) (Fix FTBFS #914271).
cffc8ae
- Modernize spec.
cffc8ae
6cd4414
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.015-13
6cd4414
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6cd4414
6070c00
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.015-12
6070c00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6070c00
956020c
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 1.015-11
956020c
- Perl 5.16 rebuild
956020c
e0ef3b1
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.015-10
e0ef3b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e0ef3b1
139d619
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.015-9
139d619
- Perl mass rebuild
139d619
f47473b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.015-8
f47473b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f47473b
f66b349
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.015-7
f66b349
- 661697 rebuild for fixing problems with vendorach/lib
f66b349
06c11f8
* Sat May 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.015-6
06c11f8
- Mass rebuild with perl-5.12.0
06c11f8
425bbb3
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.015-5
425bbb3
- Mass rebuild with perl-5.12.0
425bbb3
5e7b83c
* Fri Apr 23 2010 Marcela Mašláňová <mmaslano@redhat.com> - 1.015-4
5e7b83c
- rebuild
5e7b83c
ba2942e
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.015-3
ba2942e
- rebuild against perl 5.10.1
ba2942e
c600bcf
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.015-2
c600bcf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c600bcf
9dc0b4e
* Fri Mar 13 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.015-1
9dc0b4e
- update to 1.015
9dc0b4e
35ee5f1
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.014-4
35ee5f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
35ee5f1
c66c843
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.014-3
c66c843
- Rebuild for perl 5.10 (again)
c66c843
2da9333
* Sun Jan 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.014-2
2da9333
- rebuild for new perl
2da9333
7c847a5
* Fri Mar 23 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.014-1
7c847a5
- Update to 1.014.
7c847a5
0733231
* Sat Nov 25 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.012-1
0733231
- Update to 1.012.
0733231
7ccfc1f
* Fri Oct 13 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.011-1
7ccfc1f
- Update to 1.011.
7ccfc1f
b8cde6b
* Thu Sep 08 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.01-1
b8cde6b
- First build.