|
|
965f69 |
Name: perl-Encode
|
|
|
965f69 |
Version: 2.51
|
|
|
fde6bc |
Release: 7%{?dist}
|
|
|
965f69 |
Summary: Character encodings in Perl
|
|
|
965f69 |
License: GPL+ or Artistic
|
|
|
965f69 |
Group: Development/Libraries
|
|
|
965f69 |
URL: http://search.cpan.org/dist/Encode/
|
|
|
965f69 |
Source0: http://www.cpan.org/authors/id/D/DA/DANKOGAI/Encode-%{version}.tar.gz
|
|
|
fde6bc |
# Stringify all decode_utf8() arguments, bug #1048147, CPAN RT#91569, in 2.56
|
|
|
fde6bc |
Patch0: Encode-2.51-Stringify-all-decode_utf8-arguments.patch
|
|
|
965f69 |
BuildRequires: perl
|
|
|
965f69 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
965f69 |
BuildRequires: perl(File::Spec)
|
|
|
965f69 |
BuildRequires: perl(File::Spec::Functions)
|
|
|
965f69 |
BuildRequires: perl(strict)
|
|
|
965f69 |
BuildRequires: perl(warnings)
|
|
|
965f69 |
# Run-time:
|
|
|
965f69 |
BuildRequires: perl(base)
|
|
|
965f69 |
BuildRequires: perl(bytes)
|
|
|
965f69 |
BuildRequires: perl(Carp)
|
|
|
965f69 |
BuildRequires: perl(constant)
|
|
|
965f69 |
BuildRequires: perl(Exporter)
|
|
|
965f69 |
# Filter::Util::Call is optional
|
|
|
965f69 |
BuildRequires: perl(Getopt::Long)
|
|
|
965f69 |
# I18N::Langinfo is optional
|
|
|
965f69 |
BuildRequires: perl(MIME::Base64)
|
|
|
965f69 |
BuildRequires: perl(overload)
|
|
|
965f69 |
# PerlIO::encoding is optional
|
|
|
965f69 |
BuildRequires: perl(re)
|
|
|
965f69 |
# Storable is optional
|
|
|
965f69 |
BuildRequires: perl(utf8)
|
|
|
965f69 |
BuildRequires: perl(vars)
|
|
|
965f69 |
BuildRequires: perl(XSLoader)
|
|
|
965f69 |
# Tests:
|
|
|
965f69 |
BuildRequires: perl(charnames)
|
|
|
965f69 |
BuildRequires: perl(Config)
|
|
|
965f69 |
BuildRequires: perl(File::Basename)
|
|
|
965f69 |
BuildRequires: perl(File::Compare)
|
|
|
965f69 |
BuildRequires: perl(File::Copy)
|
|
|
965f69 |
BuildRequires: perl(FileHandle)
|
|
|
965f69 |
BuildRequires: perl(FindBin)
|
|
|
965f69 |
BuildRequires: perl(IO::Select)
|
|
|
965f69 |
BuildRequires: perl(IPC::Open3)
|
|
|
965f69 |
BuildRequires: perl(lib)
|
|
|
965f69 |
BuildRequires: perl(Scalar::Util)
|
|
|
965f69 |
BuildRequires: perl(Test)
|
|
|
965f69 |
BuildRequires: perl(Test::More)
|
|
|
965f69 |
BuildRequires: perl(Tie::Scalar)
|
|
|
965f69 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
965f69 |
|
|
|
965f69 |
%{?perl_default_filter}
|
|
|
965f69 |
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Encode::ConfigLocal|MY\\)
|
|
|
965f69 |
|
|
|
965f69 |
%description
|
|
|
965f69 |
The Encode module provides the interface between Perl strings and the rest
|
|
|
965f69 |
of the system. Perl strings are sequences of characters.
|
|
|
965f69 |
|
|
|
965f69 |
# To mirror files from perl-devel (bug #456534)
|
|
|
965f69 |
# Keep architecture specific because files go into vendorarch
|
|
|
965f69 |
%package devel
|
|
|
965f69 |
Summary: Perl Encode Module Generator
|
|
|
965f69 |
Group: Development/Libraries
|
|
|
965f69 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
965f69 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
965f69 |
Requires: perl-devel
|
|
|
965f69 |
Requires: perl(Encode)
|
|
|
965f69 |
|
|
|
965f69 |
%description devel
|
|
|
965f69 |
enc2xs builds a Perl extension for use by Encode from either Unicode Character
|
|
|
965f69 |
Mapping files (.ucm) or Tcl Encoding Files (.enc). You can use enc2xs to add
|
|
|
965f69 |
your own encoding to perl. No knowledge of XS is necessary.
|
|
|
965f69 |
|
|
|
965f69 |
|
|
|
965f69 |
%prep
|
|
|
965f69 |
%setup -q -n Encode-%{version}
|
|
|
fde6bc |
%patch0 -p1
|
|
|
965f69 |
|
|
|
965f69 |
%build
|
|
|
965f69 |
# Additional scripts can be installed by appending MORE_SCRIPTS, UCM files by
|
|
|
965f69 |
# INSTALL_UCM.
|
|
|
965f69 |
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
965f69 |
make %{?_smp_mflags}
|
|
|
965f69 |
|
|
|
965f69 |
%install
|
|
|
965f69 |
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
965f69 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
965f69 |
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
|
965f69 |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
965f69 |
|
|
|
965f69 |
%check
|
|
|
965f69 |
make test
|
|
|
965f69 |
|
|
|
965f69 |
%files
|
|
|
965f69 |
%doc AUTHORS Changes README
|
|
|
965f69 |
%{_bindir}/piconv
|
|
|
965f69 |
%{perl_vendorarch}/auto/*
|
|
|
965f69 |
%{perl_vendorarch}/Encode*
|
|
|
965f69 |
%exclude %{perl_vendorarch}/Encode/*.e2x
|
|
|
965f69 |
%exclude %{perl_vendorarch}/Encode/encode.h
|
|
|
965f69 |
%{perl_vendorarch}/encoding.pm
|
|
|
965f69 |
%{_mandir}/man1/piconv.*
|
|
|
965f69 |
%{_mandir}/man3/*
|
|
|
965f69 |
|
|
|
965f69 |
%files devel
|
|
|
965f69 |
%{_bindir}/enc2xs
|
|
|
965f69 |
%{_mandir}/man1/enc2xs.*
|
|
|
965f69 |
%{perl_vendorarch}/Encode/*.e2x
|
|
|
965f69 |
%{perl_vendorarch}/Encode/encode.h
|
|
|
965f69 |
|
|
|
965f69 |
%changelog
|
|
|
fde6bc |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.51-7
|
|
|
fde6bc |
- Mass rebuild 2014-01-24
|
|
|
fde6bc |
|
|
|
fde6bc |
* Tue Jan 07 2014 Petr Pisar <ppisar@redhat.com> - 2.51-6
|
|
|
fde6bc |
- Rebuild against "file" package fixed by Jan Kaluza to correct run-time
|
|
|
fde6bc |
dependencies (bug #1048910)
|
|
|
fde6bc |
|
|
|
fde6bc |
* Fri Jan 03 2014 Petr Pisar <ppisar@redhat.com> - 2.51-5
|
|
|
fde6bc |
- Stringify all decode_utf8() arguments (bug #1048147)
|
|
|
fde6bc |
|
|
|
fde6bc |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.51-4
|
|
|
fde6bc |
- Mass rebuild 2013-12-27
|
|
|
fde6bc |
|
|
|
965f69 |
* Fri Jul 26 2013 Petr Pisar <ppisar@redhat.com> - 2.51-3
|
|
|
965f69 |
- Specify more dependencies
|
|
|
965f69 |
|
|
|
965f69 |
* Fri May 17 2013 Petr Pisar <ppisar@redhat.com> - 2.51-2
|
|
|
965f69 |
- Specify all dependencies
|
|
|
965f69 |
|
|
|
965f69 |
* Thu May 02 2013 Petr Pisar <ppisar@redhat.com> - 2.51-1
|
|
|
965f69 |
- 2.51 bump
|
|
|
965f69 |
|
|
|
965f69 |
* Mon Apr 29 2013 Petr Pisar <ppisar@redhat.com> - 2.50-1
|
|
|
965f69 |
- 2.50 bump (recoding does not launders taintedness)
|
|
|
965f69 |
|
|
|
965f69 |
* Tue Mar 05 2013 Petr Pisar <ppisar@redhat.com> - 2.49-1
|
|
|
965f69 |
- 2.49 bump
|
|
|
965f69 |
|
|
|
965f69 |
* Mon Feb 18 2013 Petr Pisar <ppisar@redhat.com> - 2.48-1
|
|
|
965f69 |
- 2.48 bump
|
|
|
965f69 |
|
|
|
965f69 |
* Thu Sep 20 2012 Petr Pisar <ppisar@redhat.com> 2.47-1
|
|
|
965f69 |
- Specfile autogenerated by cpanspec 1.78.
|
|
|
965f69 |
- Make devel sub-package architecture specific due to file location
|