]>
Commit | Line | Data |
---|---|---|
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 | 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 |
7e91145a | 10 | Version: 2.22 |
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 |
7e91145a | 16 | # Source0-md5: be84dd3231e94baf34ea7943c3f5cc25 |
a90e99d4 | 17 | URL: https://metacpan.org/dist/MIME-Types |
518fe47f | 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 |
a90e99d4 | 22 | BuildRequires: rpmbuild(macros) >= 1.745 |
fc695343 MK |
23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
518fe47f JB |
27 | MIME types are used in MIME compliant lines, for instance as part of |
28 | e-mail and HTTP traffic, to indicate the type of content which is | |
29 | transmitted. Sometimes real knowledge about a mime-type is need. | |
4492be1e | 30 | |
518fe47f JB |
31 | This module maintains a set of MIME::Type objects, which each describe |
32 | one known MIME type. There are many types defined by RFCs and vendors, | |
33 | so the list is long but not complete. | |
34 | ||
aa450749 JR |
35 | %description -l pl.UTF-8 |
36 | Typy MIME są używane w liniach nagłówka zgodnych z MIME, na przykład | |
37 | jako część transmisji e-mail lub HTTP, do określenia rodzaju | |
38 | przesyłanej treści. Czasem potrzebna jest znajomość prawdziwego | |
518fe47f JB |
39 | mime-type. |
40 | ||
aa450749 JR |
41 | Ten moduł utrzymuje zbiór obiektów MIME::Type, z których każdy opisuje |
42 | jeden znany typ MIME. Zawiera wiele typów zdefiniowanych przez RFC i | |
43 | producentów, więc lista jest długa, ale niepełna. | |
fc695343 | 44 | |
32c9add0 JB |
45 | %package -n perl-MojoX-MIME-Types |
46 | Summary: MojoX::MIME::Types - MIME Types for Mojolicious | |
47 | Summary(pl.UTF-8): MojoX::MIME::Types - typy MIME dla szkieletu Mojolicious | |
48 | Group: Development/Languages/Perl | |
49 | Requires: %{name} = %{version}-%{release} | |
50 | ||
51 | %description -n perl-MojoX-MIME-Types | |
52 | This module is a drop-in replacement for Mojolicious::Types, but with | |
53 | a more correct handling plus a complete list of types... a huge list | |
54 | of types. | |
55 | ||
56 | %description -n perl-MojoX-MIME-Types -l pl.UTF-8 | |
57 | Ten moduł to zamiennik Mojolicious::Types, ale z bardziej poprawną | |
58 | obsł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 | |
71 | rm -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 |
80 | rm -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* |