2011-05-31 14:49:50 +00:00
|
|
|
#
|
2013-01-25 19:23:07 +00:00
|
|
|
# spec file for package perl-Encode
|
2011-05-31 14:49:50 +00:00
|
|
|
#
|
2016-01-27 10:25:46 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-05-31 14:49:50 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2010-08-26 23:08:03 +00:00
|
|
|
|
2013-01-25 19:23:07 +00:00
|
|
|
|
2010-08-26 23:08:03 +00:00
|
|
|
Name: perl-Encode
|
2016-04-19 16:00:49 +00:00
|
|
|
Version: 2.84
|
2013-01-25 19:23:07 +00:00
|
|
|
Release: 0
|
2016-01-27 10:25:46 +00:00
|
|
|
%define cpan_name Encode
|
|
|
|
Summary: Character Encodings in Perl
|
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2010-08-26 23:08:03 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2013-01-25 19:23:07 +00:00
|
|
|
Url: http://search.cpan.org/dist/Encode/
|
2011-08-23 14:39:17 +00:00
|
|
|
Source0: http://www.cpan.org/authors/id/D/DA/DANKOGAI/%{cpan_name}-%{version}.tar.gz
|
2016-01-27 10:25:46 +00:00
|
|
|
Source1: cpanspec.yml
|
2011-05-31 14:49:50 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-08-26 23:08:03 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 14:04:06 +00:00
|
|
|
BuildRequires: perl-macros
|
2016-01-27 10:25:46 +00:00
|
|
|
BuildRequires: perl(parent) >= 0.221
|
|
|
|
Requires: perl(parent) >= 0.221
|
2011-05-31 14:49:50 +00:00
|
|
|
%{perl_requires}
|
2010-08-26 23:08:03 +00:00
|
|
|
|
|
|
|
%description
|
2011-05-31 14:49:50 +00:00
|
|
|
The 'Encode' module provides the interface between Perl strings and the
|
|
|
|
rest of the system. Perl strings are sequences of _characters_.
|
|
|
|
|
|
|
|
The repertoire of characters that Perl can represent is a superset of those
|
|
|
|
defined by the Unicode Consortium. On most platforms the ordinal values of
|
|
|
|
a character as returned by 'ord(_S_)' is the _Unicode codepoint_ for that
|
|
|
|
character. The exceptions are platforms where the legacy encoding is some
|
2016-01-27 10:25:46 +00:00
|
|
|
variant of EBCDIC rather than a superset of ASCII; see perlebcdic.
|
2011-05-31 14:49:50 +00:00
|
|
|
|
|
|
|
During recent history, data is moved around a computer in 8-bit chunks,
|
|
|
|
often called "bytes" but also known as "octets" in standards documents.
|
|
|
|
Perl is widely used to manipulate data of many types: not only strings of
|
|
|
|
characters representing human or computer languages, but also "binary"
|
|
|
|
data, being the machine's representation of numbers, pixels in an image, or
|
|
|
|
just about anything.
|
|
|
|
|
|
|
|
When Perl is processing "binary data", the programmer wants Perl to process
|
|
|
|
"sequences of bytes". This is not a problem for Perl: because a byte has
|
|
|
|
256 possible values, it easily fits in Perl's much larger "logical
|
|
|
|
character".
|
2010-08-26 23:08:03 +00:00
|
|
|
|
2016-01-27 10:25:46 +00:00
|
|
|
This document mostly explains the _how_. perlunitut and perlunifaq explain
|
|
|
|
the _why_.
|
|
|
|
|
2010-08-26 23:08:03 +00:00
|
|
|
%prep
|
2011-05-31 14:49:50 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2010-08-26 23:08:03 +00:00
|
|
|
|
|
|
|
%build
|
2011-05-31 14:49:50 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
2010-08-26 23:08:03 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2011-05-31 14:49:50 +00:00
|
|
|
%perl_gen_filelist
|
2010-08-26 23:08:03 +00:00
|
|
|
|
2011-05-31 14:49:50 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc AUTHORS Changes README
|
2010-08-26 23:08:03 +00:00
|
|
|
|
2011-05-31 14:49:50 +00:00
|
|
|
%changelog
|