]> git.pld-linux.org Git - packages/php-pear-HTTP_Upload.git/blob - php-pear-HTTP_Upload.spec
964db1bf5da5ecce4664f3557086952f4975f52b
[packages/php-pear-HTTP_Upload.git] / php-pear-HTTP_Upload.spec
1 %define         _status         beta
2 %define         _pearname       HTTP_Upload
3 %define         subver          b2
4 %define         rel                     1
5 %include        /usr/lib/rpm/macros.php
6 Summary:        %{_pearname} - Easy and secure managment of files submitted via HTML Forms
7 Summary(pl.UTF-8):      %{_pearname} - Proste i łatwe zarządzanie plikami przesyłanymi przez formularze HTML
8 Name:           php-pear-%{_pearname}
9 Version:        1.0.0
10 Release:        0.%{subver}.%{rel}
11 License:        PHP 2.02
12 Group:          Development/Languages/PHP
13 Source0:        http://pear.php.net/get/%{_pearname}-%{version}%{subver}.tgz
14 # Source0-md5:  b12f2dfbd5acbccbe6bc31fc38f43dde
15 Patch0:         %{name}-bug-4318.patch
16 URL:            http://pear.php.net/package/HTTP_Upload/
17 BuildRequires:  php-pear-PEAR >= 1:1.4.0-0.b1
18 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
19 BuildRequires:  rpmbuild(macros) >= 1.300
20 Requires:       php-pear
21 Requires:       php-pear-PEAR-core
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.UTF-8
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 %patch0 -p1
60
61 # must use own own dir
62 # interestingly it is loading from correct path already when running as
63 # installed package.
64 install -d .%{php_pear_dir}/data/%{_pearname}
65 mv .%{php_pear_dir}/data/*.php .%{php_pear_dir}/data/%{_pearname}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT%{php_pear_dir}
70 %pear_package_install
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files
76 %defattr(644,root,root,755)
77 %doc install.log
78 %doc docs/%{_pearname}/docs/*
79 %{php_pear_dir}/.registry/*.reg
80 %{php_pear_dir}/HTTP/Upload.php
81 %dir %{php_pear_dir}/data/HTTP_Upload
82 %{php_pear_dir}/data/HTTP_Upload/en.php
83 %lang(da) %{php_pear_dir}/data/HTTP_Upload/da.php
84 %lang(de) %{php_pear_dir}/data/HTTP_Upload/de.php
85 %lang(es) %{php_pear_dir}/data/HTTP_Upload/es.php
86 %lang(et) %{php_pear_dir}/data/HTTP_Upload/et.php
87 %lang(fr) %{php_pear_dir}/data/HTTP_Upload/fr.php
88 %lang(it) %{php_pear_dir}/data/HTTP_Upload/it.php
89 %lang(nl) %{php_pear_dir}/data/HTTP_Upload/nl.php
90 %lang(pt_BR) %{php_pear_dir}/data/HTTP_Upload/pt_BR.php
91 %lang(ru) %{php_pear_dir}/data/HTTP_Upload/ru.php
92 %lang(sv) %{php_pear_dir}/data/HTTP_Upload/sv.php
This page took 0.07406 seconds and 2 git commands to generate.