]> git.pld-linux.org Git - packages/perl-MIME-Types.git/blame - perl-MIME-Types.spec
- updated URL and macros
[packages/perl-MIME-Types.git] / perl-MIME-Types.spec
CommitLineData
4492be1e 1#
fc695343 2# Conditional build:
a90e99d4 3%bcond_without tests # unit tests
4492be1e 4#
86fc8b1f 5%define pdir MIME
6%define pnam Types
518fe47f 7Summary: MIME::Types Perl module - definition of MIME types
86f584be 8Summary(pl.UTF-8): Moduł Perla MIME::Types - definicje typów MIME
fc695343 9Name: perl-MIME-Types
7e91145a 10Version: 2.22
e11f3e84 11Release: 1
7ef233fb 12# same as perl
13License: GPL v1+ or Artistic
fc695343 14Group: Development/Languages/Perl
393a16c6 15Source0: http://www.cpan.org/modules/by-module/MIME/%{pdir}-%{pnam}-%{version}.tar.gz
7e91145a 16# Source0-md5: be84dd3231e94baf34ea7943c3f5cc25
a90e99d4 17URL: https://metacpan.org/dist/MIME-Types
518fe47f 18%{?with_tests:BuildRequires: perl-Test-Simple >= 0.47}
0a8bc8de 19BuildRequires: perl-devel >= 1:5.8.8
fc695343 20BuildRequires: perl-libnet
f4ce651f 21BuildRequires: rpm-perlprov >= 4.1-13
a90e99d4 22BuildRequires: rpmbuild(macros) >= 1.745
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 44
32c9add0
JB
45%package -n perl-MojoX-MIME-Types
46Summary: MojoX::MIME::Types - MIME Types for Mojolicious
47Summary(pl.UTF-8): MojoX::MIME::Types - typy MIME dla szkieletu Mojolicious
48Group: Development/Languages/Perl
49Requires: %{name} = %{version}-%{release}
50
51%description -n perl-MojoX-MIME-Types
52This module is a drop-in replacement for Mojolicious::Types, but with
53a more correct handling plus a complete list of types... a huge list
54of types.
55
56%description -n perl-MojoX-MIME-Types -l pl.UTF-8
57Ten moduł to zamiennik Mojolicious::Types, ale z bardziej poprawną
58obsługą oraz pełną listą typów... bardzo dużą listą typów.
59
fc695343
MK
60%prep
61%setup -q -n %{pdir}-%{pnam}-%{version}
62
63%build
f4ce651f 64%{__perl} Makefile.PL \
eab4bb5c 65 INSTALLDIRS=vendor
fc695343 66%{__make}
91771003 67
e12899ca 68%{?with_tests:%{__make} test}
fc695343
MK
69
70%install
71rm -rf $RPM_BUILD_ROOT
72
91771003 73%{__make} install \
74 DESTDIR=$RPM_BUILD_ROOT
fc695343 75
2dde8fcf 76%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/MIME/*.pod
32c9add0 77%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/MojoX/MIME/Types.pod
518fe47f 78
fc695343
MK
79%clean
80rm -rf $RPM_BUILD_ROOT
81
82%files
83%defattr(644,root,root,755)
518fe47f 84%doc ChangeLog README
518fe47f 85%{perl_vendorlib}/MIME/Type.pm
2dde8fcf 86%{perl_vendorlib}/MIME/Types.pm
cc0124b0 87%{perl_vendorlib}/MIME/types.db
2dde8fcf
JB
88%{_mandir}/man3/MIME::Type.3pm*
89%{_mandir}/man3/MIME::Types.3pm*
32c9add0
JB
90
91%files -n perl-MojoX-MIME-Types
92%defattr(644,root,root,755)
93%dir %{perl_vendorlib}/MojoX/MIME
94%{perl_vendorlib}/MojoX/MIME/Types.pm
95%{_mandir}/man3/MojoX::MIME::Types.3pm*
This page took 0.190587 seconds and 4 git commands to generate.