|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
# Because encoding sub-package has independent version, version macro gets
|
|
|
|
|
# Because encoding sub-package has an independent version, version macro gets
|
|
|
|
|
# redefined.
|
|
|
|
|
%global cpan_version 2.88
|
|
|
|
|
%global cpan_version 3.01
|
|
|
|
|
Name: perl-Encode
|
|
|
|
|
Epoch: 4
|
|
|
|
|
Version: %{cpan_version}
|
|
|
|
@ -8,24 +8,22 @@ Version: %{cpan_version}
|
|
|
|
|
# perl-encoding sub-package has independent version which does not change
|
|
|
|
|
# often and consecutive builds would clash on perl-encoding NEVRA. This is the
|
|
|
|
|
# same case as in perl.spec.
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Release: 439%{?dist}
|
|
|
|
|
Summary: Character encodings in Perl
|
|
|
|
|
# ucm: UCD
|
|
|
|
|
# bin/encguess: Artistic 2.0
|
|
|
|
|
# other files: GPL+ or Artistic
|
|
|
|
|
License: (GPL+ or Artistic) and Artistic 2.0 and UCD
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
URL: http://search.cpan.org/dist/Encode/
|
|
|
|
|
Source0: http://www.cpan.org/authors/id/D/DA/DANKOGAI/Encode-%{cpan_version}.tar.gz
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
URL: https://metacpan.org/release/Encode
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DA/DANKOGAI/Encode-%{cpan_version}.tar.gz
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
BuildRequires: perl(File::Spec::Functions)
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
@ -48,7 +46,7 @@ BuildRequires: perl(parent) >= 0.221
|
|
|
|
|
# PerlIO::encoding is optional
|
|
|
|
|
# POSIX is optional
|
|
|
|
|
BuildRequires: perl(re)
|
|
|
|
|
# Storable is optional
|
|
|
|
|
BuildRequires: perl(Storable)
|
|
|
|
|
BuildRequires: perl(utf8)
|
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
|
BuildRequires: perl(XSLoader)
|
|
|
|
@ -62,7 +60,9 @@ BuildRequires: perl(FindBin)
|
|
|
|
|
BuildRequires: perl(IO::Select)
|
|
|
|
|
BuildRequires: perl(IPC::Open3)
|
|
|
|
|
# IPC::Run not used
|
|
|
|
|
# JSON::PP not used
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
BuildRequires: perl(open)
|
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
|
BuildRequires: perl(Symbol)
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
@ -82,9 +82,8 @@ of the system. Perl strings are sequences of characters.
|
|
|
|
|
|
|
|
|
|
%package -n perl-encoding
|
|
|
|
|
Summary: Write your Perl script in non-ASCII or non-UTF-8
|
|
|
|
|
Version: 2.19
|
|
|
|
|
Version: 2.22
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
# Keeping this sub-package arch-specific because it installs files into
|
|
|
|
|
# arch-specific directories.
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
@ -93,7 +92,7 @@ Requires: perl(Carp)
|
|
|
|
|
# Consider Filter::Util::Call as mandatory, bug #1165183, CPAN RT#100427
|
|
|
|
|
Requires: perl(Filter::Util::Call)
|
|
|
|
|
# I18N::Langinfo is optional
|
|
|
|
|
# PerlIO::encoding is optional
|
|
|
|
|
Suggests: perl(PerlIO::encoding)
|
|
|
|
|
Requires: perl(utf8)
|
|
|
|
|
Conflicts: perl-Encode < 2:2.64-2
|
|
|
|
|
|
|
|
|
@ -114,7 +113,6 @@ The easiest and the best alternative is to write your script in UTF-8.
|
|
|
|
|
Summary: Perl Encode Module Generator
|
|
|
|
|
Version: %{cpan_version}
|
|
|
|
|
License: (GPL+ or Artistic) and UCD
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: %{name}%{?_isa} = %{epoch}:%{cpan_version}-%{release}
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Recommends: perl-devel%{?_isa}
|
|
|
|
@ -132,16 +130,18 @@ your own encoding to perl. No knowledge of XS is necessary.
|
|
|
|
|
%build
|
|
|
|
|
# Additional scripts can be installed by appending MORE_SCRIPTS, UCM files by
|
|
|
|
|
# INSTALL_UCM.
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 \
|
|
|
|
|
OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
|
|
%{make_build}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
|
|
|
|
|
%{make_install}
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -delete
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
unset AUTHOR_TESTING ENC2XS_VERBOSE MAKEFLAGS PERL_CORE PERL_ENCODING \
|
|
|
|
|
PERL_ENCODE_DEBUG RELEASE_TESTING
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
@ -169,8 +169,74 @@ make test
|
|
|
|
|
%{perl_vendorarch}/Encode/encode.h
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 4:2.88-7
|
|
|
|
|
- Rebuild with enable hardening (bug #1636329)
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4:3.01-439
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 4:3.01-438
|
|
|
|
|
- Increase release to favour standalone package
|
|
|
|
|
|
|
|
|
|
* Wed Mar 13 2019 Petr Pisar <ppisar@redhat.com> - 4:3.01-10
|
|
|
|
|
- 3.01 bump
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4:3.00-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 31 2019 Petr Pisar <ppisar@redhat.com> - 4:3.00-8
|
|
|
|
|
- 3.00 bump
|
|
|
|
|
|
|
|
|
|
* Mon Jan 21 2019 Petr Pisar <ppisar@redhat.com> - 4:2.99-7
|
|
|
|
|
- 2.99 bump
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4:2.98-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 4:2.98-5
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Apr 23 2018 Petr Pisar <ppisar@redhat.com> - 4:2.98-4
|
|
|
|
|
- 2.98 bump
|
|
|
|
|
|
|
|
|
|
* Wed Feb 21 2018 Petr Pisar <ppisar@redhat.com> - 4:2.97-3
|
|
|
|
|
- 2.97 bump
|
|
|
|
|
|
|
|
|
|
* Mon Feb 19 2018 Petr Pisar <ppisar@redhat.com> - 4:2.96-2
|
|
|
|
|
- Preserve a warning on Perl 5.26.1 (bug #1544345)
|
|
|
|
|
|
|
|
|
|
* Mon Feb 12 2018 Petr Pisar <ppisar@redhat.com> - 4:2.96-1
|
|
|
|
|
- 2.96 bump
|
|
|
|
|
|
|
|
|
|
* Thu Feb 08 2018 Petr Pisar <ppisar@redhat.com> - 4:2.95-1
|
|
|
|
|
- 2.95 bump
|
|
|
|
|
|
|
|
|
|
* Tue Jan 09 2018 Petr Pisar <ppisar@redhat.com> - 4:2.94-16
|
|
|
|
|
- 2.94 bump
|
|
|
|
|
|
|
|
|
|
* Mon Oct 09 2017 Petr Pisar <ppisar@redhat.com> - 4:2.93-15
|
|
|
|
|
- 2.93 bump
|
|
|
|
|
|
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4:2.92-14
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4:2.92-13
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 19 2017 Petr Pisar <ppisar@redhat.com> - 4:2.92-12
|
|
|
|
|
- 2.92 bump
|
|
|
|
|
|
|
|
|
|
* Thu Jun 22 2017 Petr Pisar <ppisar@redhat.com> - 4:2.91-11
|
|
|
|
|
- 2.91 bump
|
|
|
|
|
|
|
|
|
|
* Thu Jun 22 2017 Petr Pisar <ppisar@redhat.com> - 4:2.90-10
|
|
|
|
|
- Fix "use parent q{Encode::Encoding}" (CPAN RT#122167)
|
|
|
|
|
|
|
|
|
|
* Mon Jun 12 2017 Petr Pisar <ppisar@redhat.com> - 4:2.90-9
|
|
|
|
|
- 2.90 bump
|
|
|
|
|
|
|
|
|
|
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 4:2.89-8
|
|
|
|
|
- Perl 5.26 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 21 2017 Petr Pisar <ppisar@redhat.com> - 4:2.89-7
|
|
|
|
|
- 2.89 bump
|
|
|
|
|
|
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4:2.88-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|