diff --git a/.gitignore b/.gitignore index e69de29..f20607a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/MIME-Base64-3.15.tar.gz diff --git a/perl-MIME-Base64.spec b/perl-MIME-Base64.spec new file mode 100644 index 0000000..5f0db4f --- /dev/null +++ b/perl-MIME-Base64.spec @@ -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 3.15-348 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..16a08c1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ef958dc2bf96be5f759391c6ac1debd4 MIME-Base64-3.15.tar.gz