]> git.pld-linux.org Git - packages/perl-Encode.git/blame - perl-Encode.spec
- unify with perl.spec
[packages/perl-Encode.git] / perl-Encode.spec
CommitLineData
e178297d 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
7Summary: Encode - character encodings
76c5dcf4 8Summary(pl.UTF-8): Encode - kodowania znaków
e178297d 9Name: perl-Encode
f7825ee2
AM
10Version: 2.24
11Release: 1
4f328e55 12# same as perl
5e6fe337 13Epoch: 1
4f328e55 14License: GPL v1+ or Artistic
e178297d 15Group: Development/Languages/Perl
4f328e55 16Source0: http://www.cpan.org/modules/by-module/Encode/%{pdir}-%{version}.tar.gz
f7825ee2 17# Source0-md5: ac009876051ccb3735673bcda8424025
4f328e55 18URL: http://search.cpan.org/dist/Encode/
e178297d 19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24The Encode module provides the interfaces between Perl's strings and
25the rest of the system.
26
059b4387
JR
27%description -l pl.UTF-8
28Moduł Encode udostępnia interfejs pomiędzy łańcuchami w wewnętrznym
29formacie Perla a resztą systemu.
e178297d 30
31%prep
32%setup -q -n %{pdir}-%{version}
33
34%build
35%{__perl} Makefile.PL \
36 INSTALLDIRS=vendor
37%{__make} \
04acbe1e 38 CC="%{__cc}" \
e178297d 39 OPTIMIZE="%{rpmcflags}"
40
41%{?with_tests:%{__make} test}
42
43%install
44rm -rf $RPM_BUILD_ROOT
45
46%{__make} install \
47 DESTDIR=$RPM_BUILD_ROOT
48
49%clean
50rm -rf $RPM_BUILD_ROOT
51
52%files
53%defattr(644,root,root,755)
54%doc AUTHORS Changes README
55%attr(755,root,root) %{_bindir}/*
4a2ccf55
JB
56%{perl_vendorarch}/Encode.pm
57%{perl_vendorarch}/encoding.pm
fe71043d 58# FIXME: *.h to devel(?), check out the use for *.e2x files
e901fea2
JB
59%{perl_vendorarch}/Encode
60%dir %{perl_vendorarch}/auto/Encode
fe71043d 61%dir %{perl_vendorarch}/auto/Encode/*/
4f328e55 62%{perl_vendorarch}/auto/Encode/*/*.bs
fe71043d
ER
63%attr(755,root,root) %{perl_vendorarch}/auto/Encode/*/*.so
64%{_mandir}/man1/enc2xs.*
65%{_mandir}/man1/piconv.*
66%{_mandir}/man3/Encode*
67%{_mandir}/man3/encoding.*
This page took 0.063346 seconds and 4 git commands to generate.