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