]> git.pld-linux.org Git - packages/perl-MIME-Types.git/blob - perl-MIME-Types.spec
initial release
[packages/perl-MIME-Types.git] / perl-MIME-Types.spec
1 # Conditional build:
2 # _without_tests - do not perform "make test"
3 %include        /usr/lib/rpm/macros.perl
4 %define pdir    MIME
5 %define pnam    Types
6 Summary:        MIME::Types perl module
7 Summary(pl):    Modu³ perla MIME::Types
8 Name:           perl-MIME-Types
9 Version:        1.002
10 Release:        1
11 License:        GPL
12 Group:          Development/Languages/Perl
13 Source0:        ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
14 BuildRequires:  rpm-perlprov >= 3.0.3-16
15 BuildRequires:  perl >= 5.6
16 BuildRequires:  perl-libnet
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 MIME::Types - Definition of MIME types
22
23 %prep
24 %setup -q -n %{pdir}-%{pnam}-%{version}
25
26 %build
27 perl Makefile.PL
28 %{__make}
29 %{!?_without_tests:%{__make} test}
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33
34 %{__make} install DESTDIR=$RPM_BUILD_ROOT
35
36 gzip -9nf README
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %files
42 %defattr(644,root,root,755)
43 %doc README.gz
44 %{perl_sitelib}/MIME/Types.pm
45 %{perl_sitelib}/MIME/Type.pm
46 %{_mandir}/man3/*
This page took 0.070737 seconds and 3 git commands to generate.