1 %include /usr/lib/rpm/macros.php
3 %define _pearname PEAR_RemoteInstaller
4 Summary: %{_pearname} - PEAR Remote installation plugin through FTP
5 Summary(pl.UTF-8): %{_pearname} - wtyczka do zdalnej instalacji PEAR poprzez FTP
6 Name: php-pear-%{_pearname}
10 Group: Development/Languages/PHP
11 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
12 # Source0-md5: 27a510eae4ce30bd7e35cd81e72a5613
13 URL: http://pear.php.net/package/PEAR_RemoteInstaller/
14 BuildRequires: php-pear-PEAR >= 1:1.5.0-0.RC1
15 BuildRequires: rpm-php-pearprov >= 4.4.2-11
16 BuildRequires: rpmbuild(macros) >= 1.300
18 Suggests: php-pecl-ssh2
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Originally part of the 1.4.0 new features, remote installation through
24 FTP, FTPS and SFTP is now its own package. This package adds the
25 commands "remote-install" "remote-upgrade" "remote-uninstall" and
26 "remote-upgrade-all" to the PEAR core.
28 To take advantage, you must have a config file on the remote ftp
29 server and full access to the server to create and remove files. The
30 config-create command can be used to get started, and the
31 remote_config configuration variable is set to the full URL as in
32 - ftp://ftp.example.com/path/to/pear.ini,
33 - ftps://user:pass@ftp.example.com/path/to/pear.ini,
34 - ssh2.sftp://user:pass@ftp.example.com/path/to/pear.ini"
36 After this is done, install/upgrade as normal using the remote*
37 commands as if they were local.
39 In PEAR status of this package is: %{_status}.
41 %description -l pl.UTF-8
42 Początkowo część instalatora PEAR 1.4.0, zdalna instalacja przy użyciu
43 FTP, FTPS lub SFTP jest teraz w osobnym pakiecie. Pakiet ten dostarcza
44 polecenia "remote-install", "remote-upgrade", "remote-uinnstall" oraz
45 "remote-upgrade-all" do głównej części PEAR.
47 Aby skorzystać z tej funkcjonalności, konieczne jest posiadanie pliku
48 konfiguracyjnego na zdalnym serwerze oraz możliwość tworzenia i
49 usuwania na nim plików. Polecenie "config-create" może być użyte, aby
50 rozpocząć, a w zmiennej remote_config powinna znajdować się pełna
52 - ftp://ftp.example.com/path/to/pear.ini,
53 - ftps://user:pass@ftp.example.com/path/to/pear.ini,
54 - ssh2.sftp://user:pass@ftp.example.com/path/to/pear.ini"
56 Gdy to będzie zrobione, możliwa jest instalacja/aktualizacja przy
57 użyciu poleceń remote* tak jakby operacje przeprowadzane były na
58 lokalnym repozytorium.
60 Ta klasa ma w PEAR status: %{_status}.
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{php_pear_dir}
71 rm -rf $RPM_BUILD_ROOT
74 if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
75 cat %{_docdir}/%{name}-%{version}/optional-packages.txt
79 %defattr(644,root,root,755)
81 %doc optional-packages.txt
82 %{php_pear_dir}/.registry/*.reg
83 %{php_pear_dir}/PEAR/Command/Remoteinstall.xml
84 %{php_pear_dir}/PEAR/Command/Remoteinstall.php
85 %{php_pear_dir}/PEAR/FTP.php
86 %{php_pear_dir}/PEAR/RemoteInstaller.php