This commit is contained in:
Petr Písař 2015-07-10 12:23:16 +02:00
parent 1dcec0a0d3
commit 4935a40c2a
3 changed files with 60 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/MIME-Base64-3.15.tar.gz

58
perl-MIME-Base64.spec Normal file
View File

@ -0,0 +1,58 @@
Name: perl-MIME-Base64
Version: 3.15
Release: 348%{?dist}
Summary: Encoding and decoding of Base64 and quoted-printable strings
# Base.xs: (GPL+ or Artistic) and MIT (Bellcore's part)
# Other files: GPL+ or Artistic
License: (GPL+ or Artistic) and MIT
Group: Development/Libraries
URL: http://search.cpan.org/dist/MIME-Base64/
Source0: http://www.cpan.org/authors/id/G/GA/GAAS/MIME-Base64-%{version}.tar.gz
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time:
BuildRequires: perl(Exporter)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
BuildRequires: perl(XSLoader)
# Tests:
BuildRequires: perl(Encode)
BuildRequires: perl(Test)
# Optional tests:
# Perl::API not yet packaged and does not work since perl 5.8.8
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Conflicts: perl < 4:5.22.0-347
%description
This package contains a Base64 encoder/decoder and a quoted-printable
encoder/decoder. These encoding methods are specified in RFC 2045 - MIME
(Multipurpose Internet Mail Extensions).
%prep
%setup -q -n MIME-Base64-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/MIME*
%{_mandir}/man3/*
%changelog
* Wed Jul 01 2015 Petr Pisar <ppisar@redhat.com> 3.15-348
- Specfile autogenerated by cpanspec 1.78.

View File

@ -0,0 +1 @@
ef958dc2bf96be5f759391c6ac1debd4 MIME-Base64-3.15.tar.gz