# Detect the distribution in use %global __despace head -n 1 | tr -d '[:space:]' | sed -e 's/[(].*[)]//g' %global __lower4 cut -c 1-4 | tr '[:upper:]' '[:lower:]' %global __distfile %([ -f /etc/SuSE-release ] && echo /etc/SuSE-release || echo /etc/redhat-release) %global __distinit %(sed -e 's/ release .*//' -e 's/\\([A-Za-z]\\)[^ ]*/\\1/g' %{__distfile} | %{__despace} | %{__lower4}) %global __distvers %(sed -e 's/.* release \\([^. ]*\\).*/\\1/' %{__distfile} | %{__despace}) # Identify Alma, CentOS, CentOS Stream and Rocky Linux as rhel %if "%{__distinit}" == "a" || "%{__distinit}" == "c" || "%{__distinit}" == "cl" || "%{__distinit}" == "cs" || "%{__distinit}" == "rl" %global __distinit rhel %endif # Dist tag for Fedora is still "fc" %if "%{__distinit}" == "f" %global __distinit fc %endif Name: perl-MIME-Base32 Version: 1.303 Release: 17.%{__distinit}%{__distvers} Summary: Base32 encoder / decoder License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/MIME-Base32 Source0: https://cpan.metacpan.org/modules/by-module/MIME/MIME-Base32-%{version}.tar.gz BuildArch: noarch # Module Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) # Module Runtime BuildRequires: perl(Exporter) BuildRequires: perl(strict) BuildRequires: perl(warnings) # Test Suite BuildRequires: perl(Test::More) >= 0.88 # Dependencies %if 0%{?fedora} < 38 && 0%{?rhel} < 10 Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %endif %description Encodes and decodes data in a similar way like MIME::Base64 does. %prep %setup -q -n MIME-Base32-%{version} %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -delete %{_fixperms} -c %{buildroot} %check make test %files %license ARTISTIC-1.0 GPL-1 LICENSE %{perl_vendorlib}/MIME/ %{_mandir}/man3/MIME::Base32.3* %changelog * Tue Jul 18 2023 Paul Howarth - 1.303-17 - Use SPDX-format license tag - Switch upstream from search.cpan.org to metacpan.org - Use %%license unconditionally * Fri Apr 27 2018 Paul Howarth - 1.303-2 - BR: perl-generators unconditionally - BR: perl-interpreter rather than perl * Fri May 19 2017 Paul Howarth - 1.303-1 - Update to 1.303 - Make the decode methods case insensitive as encoding will always use upper case (CPAN RT#107998) - Fix typos referencing wrong section of RFC 3548 (CPAN RT#121752) - Drop support for EOL distributions prior to F-13 - Drop BuildRoot: and Group: tags - Drop explicit buildroot cleaning in %%install section - Drop explicit %%clean section - Drop workaround for building with Test::More < 0.88 * Mon Sep 5 2016 Paul Howarth - 1.301-2 - BR: perl-generators where available - Simplify find command using -delete * Mon Apr 18 2016 Paul Howarth - 1.301-1 - Update to 1.301 - Updated the module to fit current release standards - Added POD and POD-Coverage tests - Combined test.pl and test1.pl into t/00-basic.t - Fix build on Strawberry Perl (CPAN RT#53173, CPAN RT#105711) - This release by REHSACK → update source URL - We need Test::More ≥ 0.88, so use a bundled one if we don't have it - Ship license files - Upstream dropped README * Tue Jul 7 2015 Paul Howarth - 1.02a-16 - Import from Fedora * Thu Jun 18 2015 Fedora Release Engineering - 1.02a-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Jun 03 2015 Jitka Plesnikova - 1.02a-14 - Perl 5.22 rebuild * Wed Aug 27 2014 Jitka Plesnikova - 1.02a-13 - Perl 5.20 rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.02a-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 1.02a-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 17 2013 Petr Pisar - 1.02a-10 - Perl 5.18 rebuild * Thu Feb 14 2013 Fedora Release Engineering - 1.02a-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 1.02a-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jun 11 2012 Petr Pisar - 1.02a-7 - Perl 5.16 rebuild * Fri Jan 13 2012 Fedora Release Engineering - 1.02a-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Jun 17 2011 Marcela Mašláňová - 1.02a-5 - Perl mass rebuild * Tue Jun 14 2011 Marcela Mašláňová - 1.02a-4 - Perl mass rebuild * Tue Feb 08 2011 Fedora Release Engineering - 1.02a-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Dec 20 2010 Marcela Maslanova - 1.02a-2 - Rebuild to fix problems with vendorarch/lib (#661697) * Thu Aug 26 2010 Paul Wouters - 1.02a-1 - Updated version that includes license - Slightly changed Summary/Description text * Mon Aug 23 2010 Paul Wouters - 1.01-1 - Specfile autogenerated by cpanspec 1.78