146238
# Because encoding sub-package has independent version, version macro gets
146238
# redefined.
146238
%global cpan_version 2.88
146238
Name:           perl-Encode
146238
Epoch:          4
146238
Version:        %{cpan_version}
146238
# Keep increasing release number even when rebasing version because
146238
# perl-encoding sub-package has independent version which does not change
146238
# often and consecutive builds would clash on perl-encoding NEVRA. This is the
146238
# same case as in perl.spec.
146238
Release:        7%{?dist}
146238
Summary:        Character encodings in Perl
146238
# ucm:          UCD
146238
# bin/encguess: Artistic 2.0
146238
# other files:  GPL+ or Artistic
146238
License:        (GPL+ or Artistic) and Artistic 2.0 and UCD
146238
Group:          Development/Libraries
146238
URL:            http://search.cpan.org/dist/Encode/
146238
Source0:        http://www.cpan.org/authors/id/D/DA/DANKOGAI/Encode-%{cpan_version}.tar.gz
146238
BuildRequires:  coreutils
146238
BuildRequires:  findutils
146238
BuildRequires:  gcc
146238
BuildRequires:  make
146238
BuildRequires:  perl
146238
BuildRequires:  perl-devel
146238
BuildRequires:  perl-generators
146238
BuildRequires:  perl(Config)
146238
BuildRequires:  perl(ExtUtils::MakeMaker)
146238
BuildRequires:  perl(File::Spec)
146238
BuildRequires:  perl(File::Spec::Functions)
146238
BuildRequires:  perl(strict)
146238
BuildRequires:  perl(warnings)
146238
# enc2xs is run at build-time
146238
# Run-time:
146238
BuildRequires:  perl(bytes)
146238
BuildRequires:  perl(Carp)
146238
BuildRequires:  perl(constant)
146238
BuildRequires:  perl(Exporter) >= 5.57
146238
BuildRequires:  perl(File::Basename)
146238
BuildRequires:  perl(File::Find)
146238
BuildRequires:  perl(Filter::Util::Call)
146238
BuildRequires:  perl(Getopt::Long)
146238
BuildRequires:  perl(Getopt::Std)
146238
# I18N::Langinfo is optional
146238
BuildRequires:  perl(MIME::Base64)
146238
BuildRequires:  perl(overload)
146238
BuildRequires:  perl(parent) >= 0.221
146238
# PerlIO::encoding is optional
146238
# POSIX is optional
146238
BuildRequires:  perl(re)
146238
# Storable is optional
146238
BuildRequires:  perl(utf8)
146238
BuildRequires:  perl(vars)
146238
BuildRequires:  perl(XSLoader)
146238
# Tests:
146238
# Benchmark not used
146238
BuildRequires:  perl(charnames)
146238
BuildRequires:  perl(File::Compare)
146238
BuildRequires:  perl(File::Copy)
146238
BuildRequires:  perl(FileHandle)
146238
BuildRequires:  perl(FindBin)
146238
BuildRequires:  perl(IO::Select)
146238
BuildRequires:  perl(IPC::Open3)
146238
# IPC::Run not used
146238
BuildRequires:  perl(lib)
146238
BuildRequires:  perl(Scalar::Util)
146238
BuildRequires:  perl(Symbol)
146238
BuildRequires:  perl(Test::More)
146238
BuildRequires:  perl(Tie::Scalar)
146238
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
146238
Requires:       perl(parent) >= 0.221
146238
146238
%{?perl_default_filter}
146238
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\((Encode::ConfigLocal|MY)\\)
146238
146238
# Filter under-specified dependencies
146238
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Exporter|parent)\\)$
146238
146238
%description
146238
The Encode module provides the interface between Perl strings and the rest
146238
of the system. Perl strings are sequences of characters.
146238
146238
%package -n perl-encoding
146238
Summary:        Write your Perl script in non-ASCII or non-UTF-8
146238
Version:        2.19
146238
License:        GPL+ or Artistic
146238
Group:          Development/Libraries
146238
# Keeping this sub-package arch-specific because it installs files into
146238
# arch-specific directories.
146238
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
146238
Requires:       perl(Carp)
146238
# Config not needed on perl ≥ 5.008
146238
# Consider Filter::Util::Call as mandatory, bug #1165183, CPAN RT#100427
146238
Requires:       perl(Filter::Util::Call)
146238
# I18N::Langinfo is optional
146238
# PerlIO::encoding is optional
146238
Requires:       perl(utf8)
146238
Conflicts:      perl-Encode < 2:2.64-2
146238
146238
%description -n perl-encoding
146238
With the encoding pragma, you can write your Perl script in any encoding you
146238
like (so long as the Encode module supports it) and still enjoy Unicode
146238
support.
146238
146238
However, this encoding module is deprecated under perl 5.18. It uses
146238
a mechanism provided by perl that is deprecated under 5.18 and higher, and may
146238
be removed in a future version.
146238
146238
The easiest and the best alternative is to write your script in UTF-8.
146238
146238
# To mirror files from perl-devel (bug #456534)
146238
# Keep architecture specific because files go into vendorarch
146238
%package devel
146238
Summary:        Perl Encode Module Generator
146238
Version:        %{cpan_version}
146238
License:        (GPL+ or Artistic) and UCD
146238
Group:          Development/Libraries
146238
Requires:       %{name}%{?_isa} = %{epoch}:%{cpan_version}-%{release}
146238
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
146238
Recommends:     perl-devel%{?_isa}
146238
Requires:       perl(Encode)
146238
146238
%description devel
146238
enc2xs builds a Perl extension for use by Encode from either Unicode Character
146238
Mapping files (.ucm) or Tcl Encoding Files (.enc). You can use enc2xs to add
146238
your own encoding to perl. No knowledge of XS is necessary.
146238
146238
146238
%prep
146238
%setup -q -n Encode-%{cpan_version}
146238
146238
%build
146238
# Additional scripts can be installed by appending MORE_SCRIPTS, UCM files by
146238
# INSTALL_UCM.
146238
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
146238
make %{?_smp_mflags}
146238
146238
%install
146238
make pure_install DESTDIR=$RPM_BUILD_ROOT
146238
find $RPM_BUILD_ROOT -type f -name .packlist -delete
146238
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
146238
%{_fixperms} $RPM_BUILD_ROOT/*
146238
146238
%check
146238
make test
146238
146238
%files
146238
%doc AUTHORS Changes README
146238
%{_bindir}/encguess
146238
%{_bindir}/piconv
146238
%{perl_vendorarch}/auto/*
146238
%{perl_vendorarch}/Encode*
146238
%exclude %{perl_vendorarch}/Encode/*.e2x
146238
%exclude %{perl_vendorarch}/Encode/encode.h
146238
%{_mandir}/man1/encguess.*
146238
%{_mandir}/man1/piconv.*
146238
%{_mandir}/man3/Encode.*
146238
%{_mandir}/man3/Encode::*
146238
146238
%files -n perl-encoding
146238
%doc AUTHORS Changes README
146238
%{perl_vendorarch}/encoding.pm
146238
%{_mandir}/man3/encoding.*
146238
146238
%files devel
146238
%{_bindir}/enc2xs
146238
%{_mandir}/man1/enc2xs.*
146238
%{perl_vendorarch}/Encode/*.e2x
146238
%{perl_vendorarch}/Encode/encode.h
146238
146238
%changelog
146238
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 4:2.88-7
146238
- Rebuild with enable hardening (bug #1636329)
146238
146238
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4:2.88-6
146238
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
146238
146238
* Wed Nov 30 2016 Petr Pisar <ppisar@redhat.com> - 4:2.88-5
146238
- 2.88 bump
146238
146238
* Mon Oct 31 2016 Petr Pisar <ppisar@redhat.com> - 4:2.87-4
146238
- 2.87 bump
146238
146238
* Fri Sep 30 2016 Petr Pisar <ppisar@redhat.com> - 4:2.86-3
146238
- Fix Encode::encode_utf8(undef) to return undef (CPAN RT#116904)
146238
- Refuse non-shortests UTF-8 representations in strict mode
146238
- Fix panic when encoding undefined scalars
146238
146238
* Fri Sep 16 2016 Petr Pisar <ppisar@redhat.com> - 4:2.86-2
146238
- Add Artistic 2.0 into license tag because of encguess tool
146238
146238
* Thu Aug 11 2016 Jitka Plesnikova <jplesnik@redhat.com> - 4:2.86-1
146238
- 2.86 bump
146238
146238
* Tue Aug 09 2016 Jitka Plesnikova <jplesnik@redhat.com> - 4:2.85-1
146238
- 2.85 bump
146238
146238
* Tue Aug 02 2016 Jitka Plesnikova <jplesnik@redhat.com> - 4:2.84-11
146238
- Avoid loading optional modules from default . (CVE-2016-1238)
146238
146238
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 4:2.84-10
146238
- Increase epoch to favour standalone package
146238
146238
* Mon Apr 18 2016 Petr Pisar <ppisar@redhat.com> - 3:2.84-9
146238
- Weak perl-Encode-devel dependency on perl-devel to Recommends level
146238
  (bug #1129443)
146238
146238
* Mon Apr 11 2016 Petr Pisar <ppisar@redhat.com> - 3:2.84-8
146238
- 2.84 bump
146238
146238
* Thu Mar 24 2016 Petr Pisar <ppisar@redhat.com> - 3:2.83-7
146238
- 2.83 bump
146238
146238
* Tue Feb 09 2016 Petr Pisar <ppisar@redhat.com> - 3:2.82-6
146238
- 2.82 bump
146238
146238
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3:2.80-5
146238
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
146238
146238
* Mon Jan 25 2016 Petr Pisar <ppisar@redhat.com> - 3:2.80-4
146238
- 2.80 bump
146238
146238
* Fri Jan 22 2016 Petr Pisar <ppisar@redhat.com> - 3:2.79-3
146238
- 2.79 bump
146238
146238
* Thu Sep 24 2015 Petr Pisar <ppisar@redhat.com> - 3:2.78-2
146238
- 2.78 bump
146238
146238
* Wed Sep 16 2015 Petr Pisar <ppisar@redhat.com> - 3:2.77-1
146238
- 2.77 bump
146238
146238
* Fri Jul 31 2015 Petr Pisar <ppisar@redhat.com> - 3:2.76-2
146238
- Increase release number to have unique perl-encoding NEVRA
146238
146238
* Fri Jul 31 2015 Petr Pisar <ppisar@redhat.com> - 3:2.76-1
146238
- 2.76 bump
146238
146238
* Wed Jul 01 2015 Petr Pisar <ppisar@redhat.com> - 3:2.75-1
146238
- 2.75 bump
146238
146238
* Thu Jun 25 2015 Petr Pisar <ppisar@redhat.com> - 3:2.74-1
146238
- 2.74 bump
146238
146238
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3:2.73-3
146238
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
146238
146238
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2:2.73-2
146238
- Perl 5.22 rebuild
146238
- Increase Epoch to favour standalone package
146238
146238
* Mon Apr 20 2015 Petr Pisar <ppisar@redhat.com> - 2:2.73-1
146238
- 2.73 bump
146238
146238
* Mon Mar 16 2015 Petr Pisar <ppisar@redhat.com> - 2:2.72-1
146238
- 2.72 bump
146238
146238
* Thu Mar 12 2015 Petr Pisar <ppisar@redhat.com> - 2:2.71-1
146238
- 2.71 bump
146238
146238
* Wed Mar 04 2015 Petr Pisar <ppisar@redhat.com> - 2:2.70-2
146238
- Correct license from (GPL+ or Artistic) to ((GPL+ or Artistic) and UCD)
146238
146238
* Thu Feb 05 2015 Petr Pisar <ppisar@redhat.com> - 2:2.70-1
146238
- 2.70 bump
146238
146238
* Fri Jan 23 2015 Petr Pisar <ppisar@redhat.com> - 2:2.68-1
146238
- 2.68 bump
146238
146238
* Fri Dec 05 2014 Petr Pisar <ppisar@redhat.com> - 2:2.67-1
146238
- 2.67 bump
146238
146238
* Wed Dec 03 2014 Petr Pisar <ppisar@redhat.com> - 2:2.66-1
146238
- 2.66 bump
146238
146238
* Tue Nov 18 2014 Petr Pisar <ppisar@redhat.com> - 2:2.64-2
146238
- Consider Filter::Util::Call dependency as mandatory (bug #1165183)
146238
- Sub-package encoding module
146238
146238
* Mon Nov 03 2014 Petr Pisar <ppisar@redhat.com> - 2:2.64-1
146238
- 2.64 bump
146238
146238
* Mon Oct 20 2014 Petr Pisar <ppisar@redhat.com> - 2:2.63-1
146238
- 2.63 bump
146238
146238
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2:2.62-5
146238
- Increase Epoch to favour standalone package
146238
146238
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.62-4
146238
- Perl 5.20 rebuild
146238
146238
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.62-3
146238
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
146238
146238
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.62-2
146238
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
146238
146238
* Mon Jun 02 2014 Petr Pisar <ppisar@redhat.com> - 1:2.62-1
146238
- 2.62 bump
146238
146238
* Wed Apr 30 2014 Petr Pisar <ppisar@redhat.com> - 1:2.60-1
146238
- 2.60 bump
146238
146238
* Mon Apr 14 2014 Petr Pisar <ppisar@redhat.com> - 1:2.59-1
146238
- 2.59 bump
146238
146238
* Mon Mar 31 2014 Petr Pisar <ppisar@redhat.com> - 1:2.58-1
146238
- 2.58 bump
146238
146238
* Fri Jan 03 2014 Petr Pisar <ppisar@redhat.com> - 1:2.57-1
146238
- 2.57 bump
146238
146238
* Mon Sep 16 2013 Petr Pisar <ppisar@redhat.com> - 1:2.55-1
146238
- 2.55 bump
146238
146238
* Mon Sep 02 2013 Petr Pisar <ppisar@redhat.com> - 1:2.54-1
146238
- 2.54 bump
146238
146238
* Wed Aug 21 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.52-1
146238
- 2.52 bump
146238
146238
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.51-7
146238
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
146238
146238
* Fri Jul 26 2013 Petr Pisar <ppisar@redhat.com> - 1:2.51-6
146238
- Specify more dependencies
146238
146238
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 1:2.51-5
146238
- Put epoch into dependecny declaration
146238
146238
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:2.51-4
146238
- Link minimal build-root packages against libperl.so explicitly
146238
146238
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:2.51-3
146238
- Perl 5.18 rebuild
146238
146238
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:2.51-2
146238
- Perl 5.18 rebuild
146238
146238
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:2.51-1
146238
- Increase epoch to compete with perl.spec
146238
146238
* Fri May 17 2013 Petr Pisar <ppisar@redhat.com> - 2.51-2
146238
- Specify all dependencies
146238
146238
* Thu May 02 2013 Petr Pisar <ppisar@redhat.com> - 2.51-1
146238
- 2.51 bump
146238
146238
* Mon Apr 29 2013 Petr Pisar <ppisar@redhat.com> - 2.50-1
146238
- 2.50 bump (recoding does not launders taintedness)
146238
146238
* Tue Mar 05 2013 Petr Pisar <ppisar@redhat.com> - 2.49-1
146238
- 2.49 bump
146238
146238
* Mon Feb 18 2013 Petr Pisar <ppisar@redhat.com> - 2.48-1
146238
- 2.48 bump
146238
146238
* Thu Sep 20 2012 Petr Pisar <ppisar@redhat.com> 2.47-1
146238
- Specfile autogenerated by cpanspec 1.78.
146238
- Make devel sub-package architecture specific due to file location