]> git.pld-linux.org Git - packages/php-pear-HTTP_Upload.git/blob - php-pear-HTTP_Upload.spec
- fix in macros
[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         _pearname       %{_class}_%{_subclass}
5 Summary:        %{_pearname} - Easy and secure managment of files submitted via HTML Forms
6 Summary(pl):    %{_pearname} - Proste i ³atwe zarz±dzanie plikami przesy³anymi przez formularze HTML
7 Name:           php-pear-%{_pearname}
8 Version:        0.8.1
9 Release:        1
10 License:        PHP 2.02
11 Group:          Development/Languages/PHP
12 Source0:        http://pear.php.net/get/%{_pearname}-%{version}.tgz
13 URL:            http://pear.php.net/
14 BuildRequires:  rpm-php-pearprov
15 Requires:       php-pear
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 This class provides an advanced file uploader system for file uploads
21 made from html forms. Features:
22 - Can handle from one file to multiple files.
23 - Safe file copying from tmp dir.
24 - Easy detecting mechanism of valid upload, missing upload or error.
25 - Gives extensive information about the uploaded file.
26 - Rename uploaded files in different ways: as it is, safe or unique.
27 - Validate allowed file extensions.
28 - Multiple languages error messages support.
29
30 %description -l pl
31 Ta klasa dostarcza system zaawansowanego uploadu plików z formularzy
32 html. W³a¶ciwo¶ci:
33 - Potrafi pobraæ jeden i wiele plików.
34 - Bezpieczne kopiowanie z katalogu tmp.
35 - Prosty mechanizm wykrywania prawid³owego uploadu, braku uploadu oraz
36   b³êdu.
37 - Daje rozszerzone informacje o ³adowanym pliku.
38 - Zmiana nazwy plików na kilka sposobów: tak jak jest, bezpiecznie lub
39   unikalnie.
40 - Sprawdzanie dozwolonych rozszerzeñ plików.
41 - Wsparcie dla wielojêzycznych komunikatów b³êdów.
42
43 %prep
44 %setup -q -c
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
49
50 install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc %{_pearname}-%{version}/docs/*
58 %{php_pear_dir}/%{_class}/*.php
This page took 0.163512 seconds and 4 git commands to generate.