SHA256
8
0
forked from pool/perl-Encode

- updated to 2.43

Several bugfixes, see Changes

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Encode?expand=0&rev=6
This commit is contained in:
Stephan Kulow
2011-05-31 14:49:50 +00:00
committed by Git OBS Bridge
parent 02dc3a9e95
commit be99b56671
4 changed files with 67 additions and 43 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a2bfb0e6fb86a08525e8df6f3e7e93920fa82c1cb1f4bd255a021b6c87292bbf
size 1445665

3
Encode-2.43.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1864145deba238823c0d4acd0e0ee3921bf491aab981d558295d4833c6a18fe0
size 2002518

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 31 14:35:40 UTC 2011 - coolo@novell.com
- updated to 2.43
Several bugfixes, see Changes
-------------------------------------------------------------------
Wed Dec 1 13:32:13 UTC 2010 - coolo@novell.com

View File

@@ -1,59 +1,77 @@
# vim: set sw=4 ts=4 et nu:
# norootforbuild
#
# 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.39
Release: 0
Summary: Interfaces between Perl Strings and the rest of the system
# http://search.cpan.org/CPAN/authors/id/D/DA/DANKOGAI/Encode-%{version}.tar.gz
Source: Encode-%{version}.tar.bz2
Source99: rpmlintrc
URL: http://search.cpan.org/dist/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
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
%{perl_requires}
BuildRequires: gcc
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
BuildRequires: make
BuildRequires: perl(ExtUtils::MakeMaker)
%{perl_requires}
%description
The "Encode" module provides the interfaces between Perl's strings and the
rest of the system. Perl strings are sequences of characters.
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 "Encode-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%setup -q -n %{cpan_name}-%{version}
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%check
%__make test
%perl_gen_filelist
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%doc Changes README
# don't include these, they conflict with perl itself:
%exclude %{_bindir}/enc2xs
%exclude %{_bindir}/piconv
%exclude %doc %{_mandir}/man1/enc2xs.1%{ext_man}
%exclude %doc %{_mandir}/man1/piconv.1%{ext_man}
%{perl_vendorarch}/Encode.pm
%{perl_vendorarch}/Encode
%{perl_vendorarch}/encoding.pm
%{perl_vendorarch}/auto/Encode
%doc %{perl_man3dir}/Encode.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Encode::*.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/encoding.%{perl_man3ext}%{ext_man}
%files -f %{name}.files
%defattr(-,root,root,755)
%doc AUTHORS Changes README
%changelog