]>
Commit | Line | Data |
---|---|---|
4492be1e | 1 | # |
fc695343 | 2 | # Conditional build: |
e12899ca | 3 | %bcond_without tests # do not perform "make test" |
4492be1e | 4 | # |
86fc8b1f | 5 | %define pdir MIME |
6 | %define pnam Types | |
518fe47f | 7 | Summary: MIME::Types Perl module - definition of MIME types |
86f584be | 8 | Summary(pl.UTF-8): Moduł Perla MIME::Types - definicje typów MIME |
fc695343 | 9 | Name: perl-MIME-Types |
d895cd21 | 10 | Version: 2.17 |
e11f3e84 | 11 | Release: 1 |
7ef233fb | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
fc695343 | 14 | Group: Development/Languages/Perl |
393a16c6 | 15 | Source0: http://www.cpan.org/modules/by-module/MIME/%{pdir}-%{pnam}-%{version}.tar.gz |
d895cd21 | 16 | # Source0-md5: 6f1441addab947137bac92c379a47ba3 |
518fe47f JB |
17 | URL: http://search.cpan.org/dist/MIME-Types/ |
18 | %{?with_tests:BuildRequires: perl-Test-Simple >= 0.47} | |
0a8bc8de | 19 | BuildRequires: perl-devel >= 1:5.8.8 |
fc695343 | 20 | BuildRequires: perl-libnet |
f4ce651f | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
fc695343 MK |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
518fe47f JB |
26 | MIME types are used in MIME compliant lines, for instance as part of |
27 | e-mail and HTTP traffic, to indicate the type of content which is | |
28 | transmitted. Sometimes real knowledge about a mime-type is need. | |
4492be1e | 29 | |
518fe47f JB |
30 | This module maintains a set of MIME::Type objects, which each describe |
31 | one known MIME type. There are many types defined by RFCs and vendors, | |
32 | so the list is long but not complete. | |
33 | ||
aa450749 JR |
34 | %description -l pl.UTF-8 |
35 | Typy MIME są używane w liniach nagłówka zgodnych z MIME, na przykład | |
36 | jako część transmisji e-mail lub HTTP, do określenia rodzaju | |
37 | przesyłanej treści. Czasem potrzebna jest znajomość prawdziwego | |
518fe47f JB |
38 | mime-type. |
39 | ||
aa450749 JR |
40 | Ten moduł utrzymuje zbiór obiektów MIME::Type, z których każdy opisuje |
41 | jeden znany typ MIME. Zawiera wiele typów zdefiniowanych przez RFC i | |
42 | producentów, więc lista jest długa, ale niepełna. | |
fc695343 | 43 | |
32c9add0 JB |
44 | %package -n perl-MojoX-MIME-Types |
45 | Summary: MojoX::MIME::Types - MIME Types for Mojolicious | |
46 | Summary(pl.UTF-8): MojoX::MIME::Types - typy MIME dla szkieletu Mojolicious | |
47 | Group: Development/Languages/Perl | |
48 | Requires: %{name} = %{version}-%{release} | |
49 | ||
50 | %description -n perl-MojoX-MIME-Types | |
51 | This module is a drop-in replacement for Mojolicious::Types, but with | |
52 | a more correct handling plus a complete list of types... a huge list | |
53 | of types. | |
54 | ||
55 | %description -n perl-MojoX-MIME-Types -l pl.UTF-8 | |
56 | Ten moduł to zamiennik Mojolicious::Types, ale z bardziej poprawną | |
57 | obsługą oraz pełną listą typów... bardzo dużą listą typów. | |
58 | ||
fc695343 MK |
59 | %prep |
60 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
61 | ||
62 | %build | |
f4ce651f | 63 | %{__perl} Makefile.PL \ |
eab4bb5c | 64 | INSTALLDIRS=vendor |
fc695343 | 65 | %{__make} |
91771003 | 66 | |
e12899ca | 67 | %{?with_tests:%{__make} test} |
fc695343 MK |
68 | |
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
91771003 | 72 | %{__make} install \ |
73 | DESTDIR=$RPM_BUILD_ROOT | |
fc695343 | 74 | |
2dde8fcf | 75 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/MIME/*.pod |
32c9add0 | 76 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/MojoX/MIME/Types.pod |
518fe47f | 77 | |
fc695343 MK |
78 | %clean |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
518fe47f | 83 | %doc ChangeLog README |
518fe47f | 84 | %{perl_vendorlib}/MIME/Type.pm |
2dde8fcf | 85 | %{perl_vendorlib}/MIME/Types.pm |
cc0124b0 | 86 | %{perl_vendorlib}/MIME/types.db |
2dde8fcf JB |
87 | %{_mandir}/man3/MIME::Type.3pm* |
88 | %{_mandir}/man3/MIME::Types.3pm* | |
32c9add0 JB |
89 | |
90 | %files -n perl-MojoX-MIME-Types | |
91 | %defattr(644,root,root,755) | |
92 | %dir %{perl_vendorlib}/MojoX/MIME | |
93 | %{perl_vendorlib}/MojoX/MIME/Types.pm | |
94 | %{_mandir}/man3/MojoX::MIME::Types.3pm* |