ABF is currently being migrated to new servers. Pull requests are currently not operational due to git upgrade, they will be fixed as soon as possible.
avatar
Rosa has added f32cc24f96
initial: add from SRPM
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "Encode-Locale-1.02.tar.gz": 25f79c9fc7636887ddf00e0a759a8cd4b9cb492c
view file @ f32cc24f96
... ... --- /dev/null
... ... +++ b/perl-Encode-Locale.spec
... ... @@ -0,0 +1,74 @@
1
%define upstream_name    Encode-Locale
2
%define upstream_version 1.02
3
4
Name:       perl-%{upstream_name}
5
Version:    %perl_convert_version %{upstream_version}
6
Release:    %mkrel 1
7
8
Summary:    Determine the locale encoding
9
License:    GPL+ or Artistic
10
Group:      Development/Perl
11
Url:        http://search.cpan.org/dist/%{upstream_name}
12
Source0:    http://www.cpan.org/modules/by-module/Encode/%{upstream_name}-%{upstream_version}.tar.gz
13
14
BuildRequires: perl(Encode)
15
BuildRequires: perl(Encode::Alias)
16
BuildRequires: perl(Test)
17
BuildArch: noarch
18
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
19
20
%description
21
In many applications it's wise to let Perl use Unicode for the strings it
22
processes. Most of the interfaces Perl has to the outside world is still
23
byte based. Programs therefore needs to decode byte strings that enter the
24
program from the outside and encode them again on the way out.
25
26
The POSIX locale system is used to specify both the language conventions
27
requested by the user and the preferred character set to consume and
28
output. The 'Encode::Locale' module looks up the charset and encoding
29
(called a CODESET in the locale jargon) and arrange for the the Encode
30
manpage module to know this encoding under the name "locale". It means
31
bytes obtained from the environment can be converted to Unicode strings by
32
calling 'Encode::encode(locale => $bytes)' and converted back again with
33
'Encode::decode(locale => $string)'.
34
35
Where file systems interfaces pass file names in and out of the program we
36
also need care. The trend is for operating systems to use a fixed file
37
encoding that don't actually depend on the locale; and this module
38
determines the most appropriate encoding for file names. The the Encode
39
manpage module will know this encoding under the name "locale_fs". For
40
traditional Unix systems this will be an alias to the same encoding as
41
"locale".
42
43
%prep
44
%setup -q -n %{upstream_name}-%{upstream_version}
45
46
%build
47
%{__perl} Makefile.PL INSTALLDIRS=vendor
48
49
%make
50
51
%check
52
%make test
53
54
%install
55
rm -rf %buildroot
56
%makeinstall_std
57
58
%clean
59
rm -rf %buildroot
60
61
%files
62
%defattr(-,root,root)
63
%doc Changes META.yml README
64
%{_mandir}/man3/*
65
%perl_vendorlib/*
66
67
68
69
70
%changelog
71
* Mon May 02 2011 Guillaume Rousse <guillomovitch@mandriva.org> 1.20.0-1mdv2011.0
72
+ Revision: 662537
73
- import perl-Encode-Locale
74

Comments