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