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