]> git.pld-linux.org Git - packages/php-pear-HTTP_Upload.git/blob - php-pear-HTTP_Upload.spec
- rel 6
[packages/php-pear-HTTP_Upload.git] / php-pear-HTTP_Upload.spec
1 %include        /usr/lib/rpm/macros.php
2 %define         _class          HTTP
3 %define         _subclass       Upload
4 %define         _status         stable
5 %define         _pearname       %{_class}_%{_subclass}
6 Summary:        %{_pearname} - Easy and secure managment of files submitted via HTML Forms
7 Summary(pl.UTF-8):      %{_pearname} - Proste i łatwe zarządzanie plikami przesyłanymi przez formularze HTML
8 Name:           php-pear-%{_pearname}
9 Version:        0.9.1
10 Release:        6
11 License:        PHP 2.02
12 Group:          Development/Languages/PHP
13 Source0:        http://pear.php.net/get/%{_pearname}-%{version}.tgz
14 # Source0-md5:  fd1161202786fcba5272d2715bcda787
15 Patch0:         %{name}-cvs.patch
16 Patch1:         %{name}-et.patch
17 Patch2:         %{name}-bug-4318.patch
18 Patch3:         %{name}-ru.patch
19 URL:            http://pear.php.net/package/HTTP_Upload/
20 BuildRequires:  php-pear-PEAR
21 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
22 BuildRequires:  rpmbuild(macros) >= 1.300
23 Requires:       php-pear
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 This class provides an advanced file uploader system for file uploads
29 made from html forms.
30
31 Features:
32 - Can handle from one file to multiple files.
33 - Safe file copying from tmp dir.
34 - Easy detecting mechanism of valid upload, missing upload or error.
35 - Gives extensive information about the uploaded file.
36 - Rename uploaded files in different ways: as it is, safe or unique.
37 - Validate allowed file extensions.
38 - Multiple languages error messages support.
39
40 In PEAR status of this package is: %{_status}.
41
42 %description -l pl.UTF-8
43 Ta klasa dostarcza system zaawansowanego uploadu plików z formularzy
44 html.
45
46 Właściwości:
47 - Potrafi pobrać jeden i wiele plików.
48 - Bezpieczne kopiowanie z katalogu tmp.
49 - Prosty mechanizm wykrywania prawidłowego uploadu, braku uploadu oraz
50   błędu.
51 - Daje rozszerzone informacje o ładowanym pliku.
52 - Zmiana nazwy plików na kilka sposobów: tak jak jest, bezpiecznie lub
53   unikalnie.
54 - Sprawdzanie dozwolonych rozszerzeń plików.
55 - Wsparcie dla wielojęzycznych komunikatów błędów.
56
57 Ta klasa ma w PEAR status: %{_status}.
58
59 %prep
60 %pear_package_setup
61 cd ./%{php_pear_dir}/%{_class}
62 %patch0 -p0
63 %patch1 -p1
64 %patch2 -p1
65 %patch3 -p1
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT%{php_pear_dir}
70 %pear_package_install
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files
76 %defattr(644,root,root,755)
77 %doc install.log
78 %doc docs/%{_pearname}/docs/*
79 %{php_pear_dir}/.registry/*.reg
80 %{php_pear_dir}/%{_class}/*.php
This page took 0.038094 seconds and 4 git commands to generate.