summaryrefslogtreecommitdiffstats
path: root/php-phpseclib-net-sftp.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-phpseclib-net-sftp.spec')
-rw-r--r--php-phpseclib-net-sftp.spec13
1 files changed, 11 insertions, 2 deletions
diff --git a/php-phpseclib-net-sftp.spec b/php-phpseclib-net-sftp.spec
index 39b7670..a1835a9 100644
--- a/php-phpseclib-net-sftp.spec
+++ b/php-phpseclib-net-sftp.spec
@@ -1,5 +1,4 @@
-%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
-%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
+%{!?__pear: %global __pear %{_bindir}/pear}
%global pear_name Net_SFTP
Name: php-phpseclib-net-sftp
@@ -12,6 +11,7 @@ License: MIT
URL: http://phpseclib.sourceforge.net/
Source0: http://phpseclib.sourceforge.net/get/%{pear_name}-%{version}.tgz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: php-pear(PEAR)
@@ -43,6 +43,7 @@ cd %{pear_name}-%{version}
%install
+rm -rf $RPM_BUILD_ROOT
cd %{pear_name}-%{version}
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
@@ -54,6 +55,10 @@ mkdir -p $RPM_BUILD_ROOT%{pear_xmldir}
install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
%post
%{__pear} install --nodeps --soft --force --register-only \
%{pear_xmldir}/%{name}.xml >/dev/null || :
@@ -66,12 +71,16 @@ fi
%files
+%defattr(-, root, root, -)
%{pear_xmldir}/%{name}.xml
%{pear_phpdir}/Net/SFTP
%{pear_phpdir}/Net/SFTP.php
%changelog
+* Sat Jan 25 2014 Remi Collet <rpms@famillecollet.com> - 0.3.5-3
+- backport for remi repo
+
* Sat Jan 4 2014 Adam Williamson <awilliam@redhat.com> - 0.3.5-2
- various review style cleanups