]> git.pld-linux.org Git - packages/perl-MIME-Charset.git/blob - perl-MIME-Charset.spec
- more verbose %files
[packages/perl-MIME-Charset.git] / perl-MIME-Charset.spec
1 #
2 ############################################################
3 #
4 # NOTE
5 # - use the SOURCES/pldcpan.pl script for new perl packages
6 #   also available in pldcpan package.
7 #
8 ############################################################
9 #
10 # Conditional build:
11 %bcond_without  autodeps        # don't BR packages needed only for resolving deps
12 %bcond_without  tests   # do not perform "make test"
13 #
14 %include        /usr/lib/rpm/macros.perl
15 %define         pdir    MIME
16 %define         pnam    Charset
17 Summary:        Charset Informations for MIME
18 Summary(pl.UTF-8):      Informacje o zestawach znaków dla MIME
19 Name:           perl-MIME-Charset
20 Version:        1.006
21 Release:        0.1
22 License:        GPL v2
23 Group:          Development/Languages/Perl
24 Source0:        http://www.cpan.org/modules/by-module/MIME/%{pdir}-%{pnam}-%{version}.tar.gz
25 # Source0-md5:  a764906fe10ca4b61badbc2a00cc58fc
26 URL:            http://search.cpan.org/dist/MIME-Charset/
27 BuildRequires:  perl-devel >= 1:5.8.0
28 BuildRequires:  rpm-perlprov >= 4.1-13
29 BuildArch:      noarch
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 MIME::Charset provides informations about character sets used for MIME
34 messages on Internet.
35
36 %description -l pl.UTF-8
37 Moduł perla zawierający informacje o zestawach znaków używanych przez
38 MIME.
39
40 %prep
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor
46
47 %{__make}
48
49 %{?with_tests:%{__make} test}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{_mandir}/ja/man3
54
55 %{__make} pure_install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 mv $RPM_BUILD_ROOT%{_mandir}/man3/'MIME::Charset::JA_JP.3pm' $RPM_BUILD_ROOT%{_mandir}/ja/man3/'MIME::Charset.3pm'
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %doc Changes README
66 %{perl_vendorlib}/MIME/Charset.pm
67 %dir %{perl_vendorlib}/MIME/Charset
68 %{perl_vendorlib}/MIME/Charset/Defaults.pm.sample
69 %{perl_vendorlib}/MIME/Charset/JA_JP.pod
70 %{perl_vendorlib}/MIME/Charset/_Compat.pm
71 %{_mandir}/man3/MIME::Charset.3pm*
72 %lang(ja) %{_mandir}/ja/man3/MIME::Charset.3pm*
This page took 0.110216 seconds and 4 git commands to generate.