]> git.pld-linux.org Git - packages/php-pear-PEAR_RemoteInstaller.git/blob - php-pear-PEAR_RemoteInstaller.spec
- updated to: 0.3.2
[packages/php-pear-PEAR_RemoteInstaller.git] / php-pear-PEAR_RemoteInstaller.spec
1 %include        /usr/lib/rpm/macros.php
2 %define         _status         alpha
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}
7 Version:        0.3.2
8 Release:        1
9 License:        PHP License
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
17 Requires:       php-pear
18 Suggests:       php-pecl-ssh2
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
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.
27
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"
35
36 After this is done, install/upgrade as normal using the remote*
37 commands as if they were local.
38
39 In PEAR status of this package is: %{_status}.
40
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.
46
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
51 ścieżka (URL), np:
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"
55
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.
59
60 Ta klasa ma w PEAR status: %{_status}.
61
62 %prep
63 %pear_package_setup
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{php_pear_dir}
68 %pear_package_install
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %post
74 if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
75         cat %{_docdir}/%{name}-%{version}/optional-packages.txt
76 fi
77
78 %files
79 %defattr(644,root,root,755)
80 %doc install.log
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
This page took 0.162232 seconds and 4 git commands to generate.