2 %define _pearname MIME_Type
3 Summary: %{_pearname} - utility class for dealing with MIME types
4 Summary(pl.UTF-8): %{_pearname} - przydatna klasa do obsługi typów MIME
5 Name: php-pear-%{_pearname}
9 Group: Development/Languages/PHP
10 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
11 # Source0-md5: 216bfa102230918cd57d662c14a5dc13
12 URL: http://pear.php.net/package/MIME_Type/
13 BuildRequires: php-pear-PEAR >= 1:1.4.0
14 BuildRequires: rpm-php-pearprov >= 4.4.2-11
15 BuildRequires: rpmbuild(macros) >= 1.300
17 Requires: php-pear-PEAR-core >= 1:1.4.0
18 Suggests: php-pear-System_Command
19 Obsoletes: php-pear-MIME_Type-tests
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 # exclude optional dependencies
24 %define _noautoreq pear(System/Command.*)
27 Provides functionality for dealing with MIME types.
29 - Supports full RFC2045 specification.
30 - Many utility functions for working with and determining info about
32 - Most functions can be called statically.
33 - Autodetect a file's MIME-type, either with mime_content_type() or
36 In PEAR status of this package is: %{_status}.
38 %description -l pl.UTF-8
39 Klasa dostarcza funkcjonalności do obsługi typów MIME:
40 - przetwarzanie typu MIME,
41 - pełna obsługa specyfikacji RFC2045
42 - wiele przydatnych funkcji do obsługi i określania informacji na
44 - większość funkcji może być wywołana statycznie
45 - autodetekecja typu MIME pliku, za pomocą mime_content_type() lub z
46 wykorzystaniem polecenia 'file'.
48 Ta klasa ma w PEAR status: %{_status}.
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{php_pear_dir}
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{php_pear_dir}/.registry/*.reg
65 %dir %{php_pear_dir}/MIME
66 %{php_pear_dir}/MIME/Type.php
67 %{php_pear_dir}/MIME/Type