]> git.pld-linux.org Git - packages/php-pear-MIME_Type.git/blob - php-pear-MIME_Type.spec
2ed69f7d6da31599f179bfee28a7c3f33c074117
[packages/php-pear-MIME_Type.git] / php-pear-MIME_Type.spec
1 %include        /usr/lib/rpm/macros.php
2 %define         _status         stable
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}
7 Version:        1.3.1
8 Release:        1
9 License:        PHP 2.02
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
17 Requires:       php-pear
18 Requires:       php-pear-PEAR-core >= 1:1.4.0
19 Suggests:       php-pear-System_Command
20 Obsoletes:      php-pear-MIME_Type-tests
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 # exclude optional dependencies
25 %define         _noautoreq      pear(System/Command.*)
26
27 %description
28 Provides functionality for dealing with MIME types.
29 - Parse MIME type.
30 - Supports full RFC2045 specification.
31 - Many utility functions for working with and determining info about
32   types.
33 - Most functions can be called statically.
34 - Autodetect a file's MIME-type, either with mime_content_type() or
35   the 'file' command.
36
37 In PEAR status of this package is: %{_status}.
38
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
44   temat typów
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'.
48
49 Ta klasa ma w PEAR status: %{_status}.
50
51 %prep
52 %pear_package_setup
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT%{php_pear_dir}
57 %pear_package_install
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
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
This page took 0.155957 seconds and 2 git commands to generate.