]> git.pld-linux.org Git - packages/php-pear-HTTP_Upload.git/blob - php-pear-HTTP_Upload.spec
- rel 2.4
[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.4
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.0.2-98
21 BuildRequires:  sed >= 4.0
22 Requires:       php-pear
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 This class provides an advanced file uploader system for file uploads
28 made from html forms.
29
30 Features:
31 - Can handle from one file to multiple files.
32 - Safe file copying from tmp dir.
33 - Easy detecting mechanism of valid upload, missing upload or error.
34 - Gives extensive information about the uploaded file.
35 - Rename uploaded files in different ways: as it is, safe or unique.
36 - Validate allowed file extensions.
37 - Multiple languages error messages support.
38
39 In PEAR status of this package is: %{_status}.
40
41 %description -l pl
42 Ta klasa dostarcza system zaawansowanego uploadu plików z formularzy
43 html.
44
45 W³a¶ciwo¶ci:
46 - Potrafi pobraæ jeden i wiele plików.
47 - Bezpieczne kopiowanie z katalogu tmp.
48 - Prosty mechanizm wykrywania prawid³owego uploadu, braku uploadu oraz
49   b³êdu.
50 - Daje rozszerzone informacje o ³adowanym pliku.
51 - Zmiana nazwy plików na kilka sposobów: tak jak jest, bezpiecznie lub
52   unikalnie.
53 - Sprawdzanie dozwolonych rozszerzeñ plików.
54 - Wsparcie dla wielojêzycznych komunikatów b³êdów.
55
56 Ta klasa ma w PEAR status: %{_status}.
57
58 %prep
59 %setup -q -c
60 cd %{_pearname}-%{version}
61 # undos the source
62 sed -i -e 's,
63 $,,' *.php docs/*.php
64
65 %patch0 -p1
66 %patch1 -p1
67 %patch2 -p1
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
72
73 install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %defattr(644,root,root,755)
80 %doc %{_pearname}-%{version}/docs/*
81 %{php_pear_dir}/%{_class}/*.php
This page took 0.06466 seconds and 4 git commands to generate.