1 %include /usr/lib/rpm/macros.php
3 %define _subclass Upload
5 %define _pearname %{_class}_%{_subclass}
7 Summary: %{_pearname} - Easy and secure managment of files submitted via HTML Forms
8 Summary(pl): %{_pearname} - Proste i ³atwe zarz±dzanie plikami przesy³anymi przez formularze HTML
9 Name: php-pear-%{_pearname}
13 Group: Development/Languages/PHP
14 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
15 # Source0-md5: fd1161202786fcba5272d2715bcda787
16 URL: http://pear.php.net/package/HTTP_Upload/
17 BuildRequires: rpm-php-pearprov >= 4.0.2-98
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This class provides an advanced file uploader system for file uploads
24 made from html forms. Features:
25 - Can handle from one file to multiple files.
26 - Safe file copying from tmp dir.
27 - Easy detecting mechanism of valid upload, missing upload or error.
28 - Gives extensive information about the uploaded file.
29 - Rename uploaded files in different ways: as it is, safe or unique.
30 - Validate allowed file extensions.
31 - Multiple languages error messages support.
33 In PEAR status of this package is: %{_status}.
36 Ta klasa dostarcza system zaawansowanego uploadu plików z formularzy
38 - Potrafi pobraæ jeden i wiele plików.
39 - Bezpieczne kopiowanie z katalogu tmp.
40 - Prosty mechanizm wykrywania prawid³owego uploadu, braku uploadu oraz
42 - Daje rozszerzone informacje o ³adowanym pliku.
43 - Zmiana nazwy plików na kilka sposobów: tak jak jest, bezpiecznie lub
45 - Sprawdzanie dozwolonych rozszerzeñ plików.
46 - Wsparcie dla wielojêzycznych komunikatów b³êdów.
48 Ta klasa ma w PEAR status: %{_status}.
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
57 install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %doc %{_pearname}-%{version}/docs/*
65 %{php_pear_dir}/%{_class}/*.php