diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-01-15 07:11:01 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-01-15 07:11:01 +0100 |
commit | e5e35db8621c37ae2d308ce3dafe894331056bdb (patch) | |
tree | 45a8cdef357a33500bb32b15bf6d7ebdbe2e07ec | |
parent | 22696a452ed11a3c9556dd9f336045e4e3df6a44 (diff) |
php-phpseclib-crypt-hash: backport
-rw-r--r-- | php-phpseclib-crypt-hash.spec | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/php-phpseclib-crypt-hash.spec b/php-phpseclib-crypt-hash.spec index be978f7..12bb062 100644 --- a/php-phpseclib-crypt-hash.spec +++ b/php-phpseclib-crypt-hash.spec @@ -12,6 +12,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) @@ -41,6 +42,7 @@ cd %{pear_name}-%{version} %install +rm -rf $RPM_BUILD_ROOT cd %{pear_name}-%{version} %{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml @@ -52,6 +54,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 || : @@ -64,11 +70,15 @@ fi %files +%defattr(-, root, root, -) %{pear_xmldir}/%{name}.xml %{pear_phpdir}/Crypt %changelog +* Wed Jan 15 2014 Remi Collet <rpms@famillecollet.com> - 0.3.5-2 +- backport for remi repo + * Sat Jan 4 2014 Adam Williamson <awilliam@redhat.com> - 0.3.5-2 - various review style cleanups |