forked from pool/perl-Encode
Several bugfixes, see Changes OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Encode?expand=0&rev=6
78 lines
2.7 KiB
RPMSpec
78 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package perl-Encode (Version 2.43)
|
|
#
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
Name: perl-Encode
|
|
Version: 2.43
|
|
Release: 1
|
|
License: GPL+ or Artistic
|
|
%define cpan_name Encode
|
|
Summary: character encodings in Perl
|
|
Url: http://search.cpan.org/dist/Encode/
|
|
Group: Development/Libraries/Perl
|
|
Source: http://www.cpan.org/authors/id/D/DA/DANKOGAI/%{cpan_name}-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
%{perl_requires}
|
|
|
|
%description
|
|
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
|
|
variant of EBCDIC rather than a superset of ASCII; see the perlebcdic
|
|
manpage.
|
|
|
|
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".
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%check
|
|
%{__make} test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root,755)
|
|
%doc AUTHORS Changes README
|
|
|
|
%changelog
|