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