Blame SPECS/perl-Encode.spec

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