]>
Commit | Line | Data |
---|---|---|
a1b69b5e | 1 | %define _status beta |
d2e51d3f | 2 | %define _pearname HTTP_Upload |
b5eb1d9f | 3 | %define subver b4 |
d2e51d3f | 4 | %define rel 1 |
5d827198 | 5 | Summary: %{_pearname} - Easy and secure managment of files submitted via HTML Forms |
c1058014 | 6 | Summary(pl.UTF-8): %{_pearname} - Proste i łatwe zarządzanie plikami przesyłanymi przez formularze HTML |
c269532a | 7 | Name: php-pear-%{_pearname} |
a1b69b5e ER |
8 | Version: 1.0.0 |
9 | Release: 0.%{subver}.%{rel} | |
b5eb1d9f | 10 | License: LGPL |
c269532a | 11 | Group: Development/Languages/PHP |
a1b69b5e | 12 | Source0: http://pear.php.net/get/%{_pearname}-%{version}%{subver}.tgz |
b5eb1d9f | 13 | # Source0-md5: be4ca339fae538c8fbadd7b358b1356f |
056e889e | 14 | URL: http://pear.php.net/package/HTTP_Upload/ |
7aa07c50 | 15 | BuildRequires: php-pear-PEAR >= 1:1.4.0-0.b1 |
cb1b62f8 | 16 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
828ac8c9 | 17 | BuildRequires: rpmbuild(macros) >= 1.300 |
6aec04b2 | 18 | Requires: php-pear |
7aa07c50 | 19 | Requires: php-pear-PEAR-core |
c269532a PG |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | This class provides an advanced file uploader system for file uploads | |
003d0a73 ER |
25 | made from html forms. |
26 | ||
27 | Features: | |
c269532a PG |
28 | - Can handle from one file to multiple files. |
29 | - Safe file copying from tmp dir. | |
30 | - Easy detecting mechanism of valid upload, missing upload or error. | |
31 | - Gives extensive information about the uploaded file. | |
32 | - Rename uploaded files in different ways: as it is, safe or unique. | |
33 | - Validate allowed file extensions. | |
34 | - Multiple languages error messages support. | |
35 | ||
31438cf8 | 36 | In PEAR status of this package is: %{_status}. |
8c393bad | 37 | |
e0c630d3 JR |
38 | %description -l pl.UTF-8 |
39 | Ta klasa dostarcza system zaawansowanego uploadu plików z formularzy | |
003d0a73 ER |
40 | html. |
41 | ||
e0c630d3 JR |
42 | Właściwości: |
43 | - Potrafi pobrać jeden i wiele plików. | |
c269532a | 44 | - Bezpieczne kopiowanie z katalogu tmp. |
e0c630d3 JR |
45 | - Prosty mechanizm wykrywania prawidłowego uploadu, braku uploadu oraz |
46 | błędu. | |
47 | - Daje rozszerzone informacje o ładowanym pliku. | |
48 | - Zmiana nazwy plików na kilka sposobów: tak jak jest, bezpiecznie lub | |
c269532a | 49 | unikalnie. |
e0c630d3 JR |
50 | - Sprawdzanie dozwolonych rozszerzeń plików. |
51 | - Wsparcie dla wielojęzycznych komunikatów błędów. | |
c269532a | 52 | |
8c393bad PG |
53 | Ta klasa ma w PEAR status: %{_status}. |
54 | ||
c269532a | 55 | %prep |
cb1b62f8 | 56 | %pear_package_setup |
c269532a | 57 | |
d2e51d3f ER |
58 | # must use own own dir |
59 | # interestingly it is loading from correct path already when running as | |
60 | # installed package. | |
61 | install -d .%{php_pear_dir}/data/%{_pearname} | |
62 | mv .%{php_pear_dir}/data/*.php .%{php_pear_dir}/data/%{_pearname} | |
63 | ||
c269532a PG |
64 | %install |
65 | rm -rf $RPM_BUILD_ROOT | |
cb1b62f8 ER |
66 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
67 | %pear_package_install | |
c269532a PG |
68 | |
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
cb1b62f8 ER |
74 | %doc install.log |
75 | %doc docs/%{_pearname}/docs/* | |
76 | %{php_pear_dir}/.registry/*.reg | |
d2e51d3f | 77 | %{php_pear_dir}/HTTP/Upload.php |
b5eb1d9f AG |
78 | %dir %{php_pear_dir}/HTTP/Upload |
79 | %{php_pear_dir}/HTTP/Upload/Error.php | |
80 | %{php_pear_dir}/HTTP/Upload/File.php | |
d2e51d3f ER |
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 |