]> git.pld-linux.org Git - packages/perl-Encode-Detect.git/blame - perl-Encode-Detect.spec
- release 2
[packages/perl-Encode-Detect.git] / perl-Encode-Detect.spec
CommitLineData
e5aa49f3 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir Encode
7%define pnam Detect
8Summary: Encode::Detect - An Encode::Encoding subclass that detects the encoding of data
04843316 9Summary(pl.UTF-8): Encode::Detect - podklasa Encode::Encoding wykrywająca kodowanie danych
e5aa49f3 10Name: perl-Encode-Detect
d2219559 11Version: 1.01
d08e7aec 12Release: 2
e5aa49f3 13License: MPL 1.1
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/Encode/%{pdir}-%{pnam}-%{version}.tar.gz
d2219559 16# Source0-md5: ee9faf55d7105c97b02b8ebe590819c7
e5aa49f3 17URL: http://search.cpan.org/dist/Encode-Detect/
d2219559 18BuildRequires: perl-ExtUtils-CBuilder
19BuildRequires: perl-Module-Build >= 0.2808
e5aa49f3 20BuildRequires: perl-devel >= 1:5.8.0
21BuildRequires: rpm-perlprov >= 4.1-13
17dc5132
AG
22%if %{with tests}
23BuildRequires: perl-Data-Dump
24%endif
e5aa49f3 25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28This Perl module is an Encode::Encoding subclass that uses
29Encode::Detect::Detector to determine the charset of the input data
30and then decodes it using the encoder of the detected charset.
31
32It is similar to Encode::Guess, but does not require the configuration
04843316
JB
33of a set of expected encodings. Like Encode::Guess, it only supports
34decoding - it cannot encode.
e5aa49f3 35
04843316
JB
36%description -l pl.UTF-8
37Ten moduł Perla jest podklasą Encode::Encoding wykorzystującą
38Encode::Detect::Detector do określenia zestawu znaków danych
39wejściowych i dekodującą je przy użyciu kodera dla wykrytego zestawu
40znaków.
41
42Moduł ten jest podobny do Encode::Guess, ale nie wymaga konfiguracji
43zbioru oczekiwanych kodowań. Podobnie jak Encode::Guess obsługuje
44tylko dekodowanie; nie potrafi kodować.
e5aa49f3 45
46%prep
47%setup -q -n %{pdir}-%{pnam}-%{version}
48
49%build
50%{__perl} Build.PL \
51 --extra-compiler-flags='%{rpmcflags} -x c++ -Iinclude' \
52 --destdir=$RPM_BUILD_ROOT \
53 --installdirs=vendor
54./Build
55
56%{?with_tests:./Build test}
57
58%install
59rm -rf $RPM_BUILD_ROOT
60
61./Build install
62
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%files
67%defattr(644,root,root,755)
68%doc Changes
69%{perl_vendorarch}/Encode/*.pm
70%{perl_vendorarch}/Encode/Detect
71%dir %{perl_vendorarch}/auto/Encode/Detect
72%dir %{perl_vendorarch}/auto/Encode/Detect/Detector
d2219559 73%{perl_vendorarch}/auto/Encode/Detect/Detector/Detector.bs
e5aa49f3 74%attr(755,root,root) %{perl_vendorarch}/auto/Encode/Detect/Detector/*.so
75%{_mandir}/man3/*
This page took 0.036427 seconds and 4 git commands to generate.