]> git.pld-linux.org Git - packages/perl-MIME-Types.git/blame - perl-MIME-Types.spec
- up to 1.20
[packages/perl-MIME-Types.git] / perl-MIME-Types.spec
CommitLineData
4492be1e 1#
fc695343 2# Conditional build:
e12899ca 3%bcond_without tests # do not perform "make test"
4492be1e 4#
fc695343 5%include /usr/lib/rpm/macros.perl
86fc8b1f 6%define pdir MIME
7%define pnam Types
518fe47f 8Summary: MIME::Types Perl module - definition of MIME types
86f584be 9Summary(pl.UTF-8): Moduł Perla MIME::Types - definicje typów MIME
fc695343 10Name: perl-MIME-Types
2c1979b5 11Version: 1.20
ca26c3ae 12Release: 1
7ef233fb 13# same as perl
14License: GPL v1+ or Artistic
fc695343 15Group: Development/Languages/Perl
518fe47f 16Source0: http://www.cpan.org/modules/by-module/MIME/%{pdir}-%{pnam}-%{version}.tar.gz
2c1979b5 17# Source0-md5: b6ead8df4c9afecf7ab7f986ba7f5a4c
518fe47f
JB
18URL: http://search.cpan.org/dist/MIME-Types/
19%{?with_tests:BuildRequires: perl-Test-Simple >= 0.47}
28da455c 20BuildRequires: perl-devel >= 1:5.8.0
fc695343 21BuildRequires: perl-libnet
f4ce651f 22BuildRequires: rpm-perlprov >= 4.1-13
fc695343
MK
23BuildArch: noarch
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
518fe47f
JB
27MIME types are used in MIME compliant lines, for instance as part of
28e-mail and HTTP traffic, to indicate the type of content which is
29transmitted. Sometimes real knowledge about a mime-type is need.
4492be1e 30
518fe47f
JB
31This module maintains a set of MIME::Type objects, which each describe
32one known MIME type. There are many types defined by RFCs and vendors,
33so the list is long but not complete.
34
aa450749
JR
35%description -l pl.UTF-8
36Typy MIME są używane w liniach nagłówka zgodnych z MIME, na przykład
37jako część transmisji e-mail lub HTTP, do określenia rodzaju
38przesyłanej treści. Czasem potrzebna jest znajomość prawdziwego
518fe47f
JB
39mime-type.
40
aa450749
JR
41Ten moduł utrzymuje zbiór obiektów MIME::Type, z których każdy opisuje
42jeden znany typ MIME. Zawiera wiele typów zdefiniowanych przez RFC i
43producentów, więc lista jest długa, ale niepełna.
fc695343
MK
44
45%prep
46%setup -q -n %{pdir}-%{pnam}-%{version}
47
48%build
f4ce651f 49%{__perl} Makefile.PL \
eab4bb5c 50 INSTALLDIRS=vendor
fc695343 51%{__make}
91771003 52
e12899ca 53%{?with_tests:%{__make} test}
fc695343
MK
54
55%install
56rm -rf $RPM_BUILD_ROOT
57
91771003 58%{__make} install \
59 DESTDIR=$RPM_BUILD_ROOT
fc695343 60
518fe47f
JB
61rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/MIME/*.pod
62
fc695343
MK
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%files
67%defattr(644,root,root,755)
518fe47f
JB
68%doc ChangeLog README
69%{perl_vendorlib}/MIME/Types.pm
70%{perl_vendorlib}/MIME/Type.pm
fc695343 71%{_mandir}/man3/*
This page took 0.092989 seconds and 4 git commands to generate.