]>
Commit | Line | Data |
---|---|---|
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 | 8 | Summary: MIME::Types Perl module - definition of MIME types |
86f584be | 9 | Summary(pl.UTF-8): Moduł Perla MIME::Types - definicje typów MIME |
fc695343 | 10 | Name: perl-MIME-Types |
335cc244 | 11 | Version: 2.09 |
5feab54c | 12 | Release: 2 |
7ef233fb | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
fc695343 | 15 | Group: Development/Languages/Perl |
393a16c6 | 16 | Source0: http://www.cpan.org/modules/by-module/MIME/%{pdir}-%{pnam}-%{version}.tar.gz |
335cc244 | 17 | # Source0-md5: 99952df4f4a1e2e31eb80d98b6197774 |
518fe47f JB |
18 | URL: http://search.cpan.org/dist/MIME-Types/ |
19 | %{?with_tests:BuildRequires: perl-Test-Simple >= 0.47} | |
0a8bc8de | 20 | BuildRequires: perl-devel >= 1:5.8.8 |
fc695343 | 21 | BuildRequires: perl-libnet |
f4ce651f | 22 | BuildRequires: rpm-perlprov >= 4.1-13 |
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 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 | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
91771003 | 58 | %{__make} install \ |
59 | DESTDIR=$RPM_BUILD_ROOT | |
fc695343 | 60 | |
2dde8fcf | 61 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/MIME/*.pod |
518fe47f | 62 | |
fc695343 MK |
63 | %clean |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
518fe47f | 68 | %doc ChangeLog README |
518fe47f | 69 | %{perl_vendorlib}/MIME/Type.pm |
2dde8fcf | 70 | %{perl_vendorlib}/MIME/Types.pm |
cc0124b0 | 71 | %{perl_vendorlib}/MIME/types.db |
2dde8fcf JB |
72 | %{_mandir}/man3/MIME::Type.3pm* |
73 | %{_mandir}/man3/MIME::Types.3pm* | |
5feab54c JR |
74 | # move it to separate package if ever needed |
75 | #%{perl_vendorlib}/MojoX/MIME/Types.pm | |
76 | #%{_mandir}/man3/MojoX::MIME::Types.3pm* |