5f2b406
Summary:	Modules for parsing and creating MIME entities in Perl
3f8a5ed
Name:		perl-MIME-tools
794a9ea
Version:	5.504
c6abe48
Release:	3%{?dist}
5f2b406
Group:		Development/Libraries
abf58a1
License:	GPL+ or Artistic
5f2b406
URL:		http://search.cpan.org/dist/MIME-tools/
697c35c
Source0:	http://search.cpan.org/CPAN/authors/id/D/DS/DSKOLL/MIME-tools-%{version}.tar.gz
13ea9f5
Patch0:		MIME-tools-5.502-UTF8.patch
a804a7e
BuildRequires:	perl(ExtUtils::MakeMaker)
653fe62
BuildRequires:	perl(File::Path)	>= 1
653fe62
BuildRequires:	perl(File::Spec)	>= 0.6
d0f0035
BuildRequires:	perl(File::Temp)	>= 0.18
c95becc
BuildRequires:	perl(IO::File)		>= 1.13
c1a6a9c
BuildRequires:	perl(IO::Handle)
c1a6a9c
BuildRequires:	perl(Mail::Field)	>= 1.05
c1a6a9c
BuildRequires:	perl(Mail::Header)	>= 1.01
c1a6a9c
BuildRequires:	perl(Mail::Internet)	>= 1.0203
653fe62
BuildRequires:	perl(MIME::Base64)	>= 3.03
5f2b406
BuildRequires:	perl(MIME::QuotedPrint)
3f8a5ed
BuildRequires:	perl-MailTools		>= 1.50
c1a6a9c
BuildRequires:	perl(Test::Deep)
c1a6a9c
BuildRequires:	perl(Test::More)
c1a6a9c
BuildRequires:	perl(Test::Pod)
c1a6a9c
BuildRequires:	perl(Test::Pod::Coverage)
3f8a5ed
BuildArch:	noarch
13ea9f5
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
13ea9f5
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
861fbdb
Requires:	perl(Convert::BinHex)
cvsextras b879e4b
c6abe48
# Currently fails a couple of kwalitee tests
c6abe48
BuildConflicts:	perl(Test::Kwalitee)
c6abe48
cvsextras b879e4b
%description
3f8a5ed
MIME-tools - modules for parsing (and creating!) MIME entities. Modules in this
3f8a5ed
toolkit: Abstract message holder (file, scalar, etc.), OO interface for
3f8a5ed
decoding MIME messages, an extracted and decoded MIME entity, Mail::Field
3f8a5ed
subclasses for parsing fields, a parsed MIME header (Mail::Header subclass),
3f8a5ed
parser and tool for building your own MIME parser, and utilities.
cvsextras b879e4b
cvsextras b879e4b
%prep
9897be1
%setup -q -n MIME-tools-%{version}
cvsextras b879e4b
618b765
# Fix character encoding
13ea9f5
%patch0 -p1
618b765
c1a6a9c
# The more useful examples will go in %%{_bindir}
13ea9f5
mkdir useful-examples
13ea9f5
mv examples/mime{dump,encode,explode,postcard,send} useful-examples/
e96d103
cvsextras b879e4b
%build
87d9b6f
perl Makefile.PL INSTALLDIRS=vendor
13ea9f5
make %{?_smp_mflags}
3f8a5ed
cvsextras b879e4b
%install
13ea9f5
rm -rf %{buildroot}
13ea9f5
make pure_install DESTDIR=%{buildroot}
13ea9f5
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
13ea9f5
%{_fixperms} %{buildroot}
cvsextras b879e4b
c1a6a9c
# Put the more useful examples in %%{_bindir}
13ea9f5
install -d -m 755 %{buildroot}%{_bindir}
13ea9f5
install -d -m 755 %{buildroot}%{_mandir}/man1
e96d103
cd useful-examples
e96d103
for ex in mime*
e96d103
do
13ea9f5
	install -p -m 755 ${ex} %{buildroot}%{_bindir}/
13ea9f5
	pod2man ${ex} > %{buildroot}%{_mandir}/man1/${ex}.1
e96d103
done
e96d103
cd -
e96d103
2b873a0
%check
3f8a5ed
# POD Coverage test fails due to lots of undocumented routines
13ea9f5
TEST_POD_COVERAGE=0 make test
13ea9f5
13ea9f5
%clean
13ea9f5
rm -rf %{buildroot}
cvsextras b879e4b
cvsextras b879e4b
%files
653fe62
%doc README COPYING ChangeLog
618b765
# Adding examples introduces additional deps, but these are all satisfied by
618b765
# perl, perl-MIME-tools, and perl-MailTools, which are all deps anyway.
618b765
%doc examples
2b873a0
%{perl_vendorlib}/MIME/
3f8a5ed
%{_bindir}/mimedump
3f8a5ed
%{_bindir}/mimeencode
3f8a5ed
%{_bindir}/mimeexplode
3f8a5ed
%{_bindir}/mimepostcard
3f8a5ed
%{_bindir}/mimesend
3f8a5ed
%{_mandir}/man1/mimedump.1*
3f8a5ed
%{_mandir}/man1/mimeencode.1*
3f8a5ed
%{_mandir}/man1/mimeexplode.1*
3f8a5ed
%{_mandir}/man1/mimepostcard.1*
13ea9f5
%{_mandir}/man1/mimesend.1*
Marcela Mašláňová 7c24ebe
%{_mandir}/man3/MIME::Body.3pm*
13ea9f5
%{_mandir}/man3/MIME::Decoder.3pm*
13ea9f5
%{_mandir}/man3/MIME::Decoder::Base64.3pm*
13ea9f5
%{_mandir}/man3/MIME::Decoder::BinHex.3pm*
13ea9f5
%{_mandir}/man3/MIME::Decoder::Binary.3pm*
13ea9f5
%{_mandir}/man3/MIME::Decoder::Gzip64.3pm*
13ea9f5
%{_mandir}/man3/MIME::Decoder::NBit.3pm*
13ea9f5
%{_mandir}/man3/MIME::Decoder::QuotedPrint.3pm*
13ea9f5
%{_mandir}/man3/MIME::Decoder::UU.3pm*
Marcela Mašláňová 7c24ebe
%{_mandir}/man3/MIME::Entity.3pm*
13ea9f5
%{_mandir}/man3/MIME::Field::ConTraEnc.3pm*
13ea9f5
%{_mandir}/man3/MIME::Field::ContDisp.3pm*
13ea9f5
%{_mandir}/man3/MIME::Field::ContType.3pm*
13ea9f5
%{_mandir}/man3/MIME::Field::ParamVal.3pm*
Marcela Mašláňová 7c24ebe
%{_mandir}/man3/MIME::Head.3pm*
13ea9f5
%{_mandir}/man3/MIME::Parser.3pm*
13ea9f5
%{_mandir}/man3/MIME::Parser::Filer.3pm*
13ea9f5
%{_mandir}/man3/MIME::Parser::Reader.3pm*
13ea9f5
%{_mandir}/man3/MIME::Parser::Results.3pm*
Marcela Mašláňová 7c24ebe
%{_mandir}/man3/MIME::Tools.3pm*
13ea9f5
%{_mandir}/man3/MIME::WordDecoder.3pm*
13ea9f5
%{_mandir}/man3/MIME::Words.3pm*
cvsextras b879e4b
cvsextras b879e4b
%changelog
c6abe48
* Thu Jul 25 2013 Paul Howarth <paul@city-fan.org> - 5.504-3
c6abe48
- Don't try to run the kwalitee test, as it fails a couple of kwalitee metrics
c6abe48
  with Test::Kwalitee 1.09
Jochen Schmitt cc078c0
794a9ea
* Thu Jan 31 2013 Paul Howarth <paul@city-fan.org> - 5.504-1
794a9ea
- Update to 5.504
794a9ea
  - Fix encoding of MIME parameters that contain a quoted string: "like \"this"
794a9ea
    (CPAN RT#80433)
794a9ea
  - Suppress useless warnings from tests (CPAN RT#80679)
794a9ea
  - Fix long-standing bug in encode_mimewords that can break multi-byte
794a9ea
    encodings such as UTF-8 (CPAN RT#5462)
794a9ea
6c2d068
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.503-3
6c2d068
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6c2d068
621ca5d
* Sat Jun 23 2012 Petr Pisar <ppisar@redhat.com> - 5.503-2
621ca5d
- Perl 5.16 rebuild
621ca5d
861fbdb
* Fri Jun  8 2012 Paul Howarth <paul@city-fan.org> - 5.503-1
861fbdb
- Update to 5.503
861fbdb
  - Avoid inappropriately untainting data (CPAN RT#67119)
861fbdb
  - Localise $\ to avoid parsing problems if it's set elsewhere (CPAN RT#71041)
861fbdb
  - Improve exorcising of filenames (CPAN RT#71677)
861fbdb
  - Fix potential race condition in t/Smtpsend.t (CPAN RT#68879)
861fbdb
  - Allow native I/O on File::Handle objects (CPAN RT#72538)
861fbdb
  - Add "recommends Convert::BinHex" clause to Makefile.PL (CPAN RT#72223)
861fbdb
  - Add module_name to Makefile.PL (CPAN RT#77138)
861fbdb
  - Fix "Uninitialized value" warning (CPAN RT#77190)
861fbdb
  - Don't run t/Smtpsend.t on systems that lack fork() (CPAN RT#77351)
861fbdb
  - Add "use strict" everywhere (CPAN RT#77582)
861fbdb
- Don't need to remove empty directories from the buildroot
861fbdb
- Drop %%defattr, redundant since rpm 4.4
861fbdb
- Require perl(Convert::BinHex) to support BinHex-encoded mail
861fbdb
fbacb69
* Thu Jan 12 2012 Paul Howarth <paul@city-fan.org> - 5.502-5
fbacb69
- Fedora 17 mass rebuild
fbacb69
13ea9f5
* Wed Oct 26 2011 Paul Howarth <paul@city-fan.org> - 5.502-4
13ea9f5
- Use patch rather than scripted iconv to fix character encoding
13ea9f5
- Use DESTDIR rather than PERL_INSTALL_ROOT
13ea9f5
- Nobody else likes macros for commands
13ea9f5
- Use %%{_fixperms} macro rather than our own chmod incantation
13ea9f5
- Explicitly specify all manpages in %%files list
87d9b6f
- The Makefile.PL --skipdeps option is no longer needed
13ea9f5
Marcela Mašláňová 7c24ebe
* Wed Oct 26 2011 Marcela Mašláňová <mmaslano@redhat.com> - 5.502-3
13ea9f5
- Own only man pages of this packages (conflict with Perl package)
Marcela Mašláňová 7c24ebe
Petr Sabata cbfc737
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 5.502-2
Petr Sabata cbfc737
- Perl mass rebuild
Petr Sabata cbfc737
b13ffb8
* Tue Mar  8 2011 Paul Howarth <paul@city-fan.org> - 5.502-1
b13ffb8
- Update to 5.502
b13ffb8
  - Fix parsing bug (CPAN RT#66025)
b13ffb8
  - Fix typo (CPAN RT#65387)
b13ffb8
  - Fix unit tests on Perl 5.8.x (CPAN RT#66188)
b13ffb8
  - Fix unit test failure on Win32 (CPAN RT#66286)
b13ffb8
697c35c
* Thu Feb 17 2011 Paul Howarth <paul@city-fan.org> - 5.501-1
697c35c
- Update to 5.501
697c35c
  - Add build_requires 'Test::Deep'; to Makefile (CPAN RT#64659)
697c35c
  - Fix spelling errors (CPAN RT#64610)
697c35c
  - Fix double-decoding bug when decoding RFC-2231-encoded parameters
697c35c
    (CPAN RT#65162)
697c35c
  - Fix inappropriate inclusion of CR characters in parsed headers
697c35c
    (CPAN RT#65681)
697c35c
  - Document that MIME::WordDecoder is mostly deprecated
697c35c
  - Document that MIME::Head->get(...) can include a trailing newline
697c35c
  - Increase buffer size from 2kB to 8kB in MIME::Entity and MIME::Body
697c35c
    (part of CPAN RT#65162)
697c35c
- This release by DSKOLL -> update source URL
697c35c
e95be8e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.500-2
e95be8e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e95be8e
c1a6a9c
* Mon Jan 10 2011 Paul Howarth <paul@city-fan.org> - 5.500-1
c1a6a9c
- Update to 5.500
c1a6a9c
  - cleanup: IO-Stringy is no longer used
c1a6a9c
  - cleanup: remove auto_install from Makefile.PL
c1a6a9c
  - RT#22684: fix deadlock in filter() when invoking external programs
c1a6a9c
    such as gzip
c1a6a9c
  - RT#60931: if preamble is empty, make sure it's still empty after
c1a6a9c
    round-tripping through MIME::Entity
c1a6a9c
  - RT#63739: properly decode RFC2231 encodings in attachment filenames
c1a6a9c
- New build requirements:
c1a6a9c
  - perl(IO::Handle)
c1a6a9c
  - perl(Mail::Field) >= 1.05
c1a6a9c
  - perl(Mail::Header) >= 1.01
c1a6a9c
  - perl(Mail::Internet) >= 1.0203
c1a6a9c
  - perl(Test::Deep)
c1a6a9c
- Drop buildreq perl(IO::Stringy)
c1a6a9c
Marcela Mašláňová cbda3ec
* Mon Dec 20 2010 Marcela Maslanova <mmaslano@redhat.com> - 5.428-3
4813720
- Rebuild to fix problems with vendorarch/lib (#661697)
Marcela Mašláňová cbda3ec
01c6131
* Mon May 03 2010 Marcela Maslanova <mmaslano@redhat.com> - 5.428-2
01c6131
- Mass rebuild with perl-5.12.0
01c6131
3f8a5ed
* Thu Apr 22 2010 Paul Howarth <paul@city-fan.org> - 5.428-1
3f8a5ed
- Update to 5.428
3f8a5ed
  - RT#56764: build release with a newer Module::Install
3f8a5ed
  - RT#52924: ensure we add <> around Content-id data
3f8a5ed
  - RT#48036: make mimesend example script a bit more useful
3f8a5ed
  - RT#43439: fix for parsing of doubled ; in multipart headers
3f8a5ed
  - RT#41632: if RFC-2231 and non-RFC-2231 params present, use only RFC-2231
3f8a5ed
  - RT#40715: reference Encode::MIME::Header in docs
3f8a5ed
  - RT#39985: correct POD typos
3f8a5ed
  - Only bind to localhost in smtpsend test, not all interfaces
3f8a5ed
- Specify --skipdeps in Makefile.PL invocation to prevent use of CPAN module
3f8a5ed
- Buildreq perl(Test::Kwalitee) for additional test coverage
3f8a5ed
- Tidy up %%description and other largely cosmetic spec changes
3f8a5ed
ce6c537
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 5.427-4
3f8a5ed
- Rebuild against perl 5.10.1
ce6c537
00e1fa6
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.427-3
00e1fa6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
00e1fa6
e79693d
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.427-2
e79693d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e79693d
c95becc
* Tue Jul  1 2008 Paul Howarth <paul@city-fan.org> 5.427-1
c95becc
- Update to 5.427
c95becc
- Require and BuildRequire perl(IO::File) >= 1.13
c95becc
d0f0035
* Wed Mar 19 2008 Paul Howarth <paul@city-fan.org> 5.426-1
d0f0035
- Update to 5.426
d0f0035
- Now require File::Temp >= 0.18
d0f0035
- Add POD tests, coverage disabled because of lack of coverage from upstream
d0f0035
653fe62
* Tue Mar 11 2008 Paul Howarth <paul@city-fan.org> 5.425-1
653fe62
- Update to 5.425
653fe62
- Add note about File::Temp requirement
653fe62
- New upstream maintainer -> updated URL for source
653fe62
- Given that this package will not build on old distributions, don't cater
653fe62
  for handling old versions of MIME::QuotedPrint in %%check and buildreq
653fe62
  perl(MIME::Base64) >= 3.03
653fe62
- Buildreq perl(File::Path) >= 1, perl(File::Spec) >= 0.6, and
653fe62
  perl(IO::Stringy) >= 2.110
653fe62
- Only include README as %%doc, not README*
653fe62
- Dispense with provides filter, no longer needed
653fe62
5e1d9b9
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 5.420-6
5e1d9b9
- Rebuild for perl 5.10 (again)
5e1d9b9
be9e26f
* Sun Jan 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> 5.420-5
be9e26f
- rebuild for new perl
be9e26f
abf58a1
* Mon Aug 13 2007 Paul Howarth <paul@city-fan.org> 5.420-4
abf58a1
- Clarify license as GPL v1 or later, or Artistic (same as perl)
abf58a1
- Add buildreq perl(Test::More)
abf58a1
a804a7e
* Tue Apr 17 2007 Paul Howarth <paul@city-fan.org> 5.420-3
a804a7e
- Buildrequire perl(ExtUtils::MakeMaker)
5f2b406
- Fix argument order for find with -depth
5f2b406
e96d103
* Tue Aug  8 2006 Paul Howarth <paul@city-fan.org> 5.420-2
e96d103
- Install the more useful examples in %%{_bindir} (#201691)
e96d103
618b765
* Wed Apr 19 2006 Paul Howarth <paul@city-fan.org> - 5.420-1
618b765
- 5.420
618b765
- Cosmetic changes reflecting new maintainer's preferences
618b765
- Examples remain executable since they don't introduce new dependencies
618b765
- Simplify provides filter
618b765
252f942
* Mon Jan 16 2006 Ville Skyttä <ville.skytta at iki.fi> - 5.419-1
252f942
- 5.419.
252f942
- Don't provide perl(main).
252f942
5bc8a12
* Tue Oct  4 2005 Paul Howarth <paul@city-fan.org> - 5.418-2
5bc8a12
- License is same as perl (GPL or Artistic), not just Artistic
5bc8a12
2b873a0
* Mon Oct  3 2005 Ville Skyttä <ville.skytta at iki.fi> - 5.418-1
2b873a0
- 5.418.
2b873a0
- Cosmetic specfile cleanups.
2b873a0
794a9ea
* Wed Apr  6 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 5.417-2
784a259
- rebuilt
784a259
9897be1
* Sat Jan 22 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:5.417-1
9897be1
- Update to 5.417.
9897be1
9897be1
* Wed Jan  5 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:5.416-0.fdr.1
9897be1
- Update to 5.416.
9897be1
9897be1
* Thu Oct 28 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:5.415-0.fdr.1
9897be1
- Update to 5.415.
9897be1
9897be1
* Thu Oct  7 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:5.414-0.fdr.1
9897be1
- Update to 5.414.
9897be1
9897be1
* Wed Sep 15 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:5.413-0.fdr.1
9897be1
- Update to 5.413, includes the mimedefang patches.
9897be1
- Bring up to date with current fedora.us Perl spec template.
9897be1
cvsextras b879e4b
* Sat Feb  7 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:5.411-0.fdr.6.a
cvsextras b879e4b
- Install into vendor dirs.
cvsextras b879e4b
- BuildRequire perl-MailTools (bug 373).
cvsextras b879e4b
cvsextras b879e4b
* Sat Aug 16 2003 Dams <anvil[AT]livna.org> 0:5.411-0.fdr.5.a
cvsextras b879e4b
- Hopefully fixed BuildRequires (for make test)
cvsextras b879e4b
- rm-ing perllocal.pod instead of excluding it
cvsextras b879e4b
cvsextras b879e4b
* Sat Jul 12 2003 Dams <anvil[AT]livna.org> 0:5.411-0.fdr.4.a
cvsextras b879e4b
- Package is now noarch
cvsextras b879e4b
cvsextras b879e4b
* Fri Jul 11 2003 Dams <anvil[AT]livna.org> 0:5.411-0.fdr.3.a
cvsextras b879e4b
- Changed Group tag value
cvsextras b879e4b
- make test in build section
cvsextras b879e4b
- Added missing directory
cvsextras b879e4b
cvsextras b879e4b
* Wed Jun 25 2003 Dams <anvil[AT]livna.org> 0:5.411-0.fdr.2.a
cvsextras b879e4b
- Now using roaringpenguin tarball
cvsextras b879e4b
0cd3549
* Sun Jun 15 2003 Dams <anvil[AT]livna.org>
cvsextras b879e4b
- Initial build.