--- /dev/null
+%include /usr/lib/rpm/macros.php
+%define _class HTTP
+%define _subclass Upload
+%define _pearname %{_class}_%{_subclass}
+Summary: %{_class}_%{_subclass} - Easy and secure managment of files submitted via HTML Forms
+Summary(pl): %{_class}_%{_subclass} - Proste i ³atwe zarz±dzanie plikami przesy³anymi przez formularze HTML
+Name: php-pear-%{_pearname}
+Version: 0.8
+Release: 1
+License: PHP 2.02
+Group: Development/Languages/PHP
+Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
+BuildRequires: rpm-php-pearprov
+URL: http://pear.php.net/
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This class provides an advanced file uploader system for file uploads
+made from html forms. Features:
+- Can handle from one file to multiple files.
+- Safe file copying from tmp dir.
+- Easy detecting mechanism of valid upload, missing upload or error.
+- Gives extensive information about the uploaded file.
+- Rename uploaded files in different ways: as it is, safe or unique.
+- Validate allowed file extensions.
+- Multiple languages error messages support.
+
+%description -l pl
+Ta klasa dostarcza system zaawansowanego uploadu plików z formularzy
+html. W³a¶ciwo¶ci:
+- Potrafi pobraæ jeden i wiele plików.
+- Bezpieczne kopiowanie z katalogu tmp.
+- Prosty mechanizm wykrywania prawid³owego uploadu, braku uploadu oraz
+ b³êdu.
+- Daje rozszerzone informacje o ³adowanym pliku.
+- Zmiana nazwy plików na kilka sposobów: tak jak jest, bezpiecznie lub
+ unikalnie.
+- Sprawdzanie dozwolonych rozszerzeñ plików.
+- Wsparcie dla wielojêzycznych komunikatów b³êdów.
+
+%prep
+%setup -q -c
+
+%install
+rm -rf $RPM_BUILD_ROOT
+cd %{_pearname}-%{version}
+
+install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
+
+install *.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc %{_pearname}-%{version}/docs/*
+%{php_pear_dir}/%{_class}/*.php