perl-Encode/perl-Encode.spec

423 lines
13 KiB
RPMSpec
Raw Normal View History

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