summaryrefslogtreecommitdiffstats
path: root/php-phpseclib-crypt-des.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-phpseclib-crypt-des.spec')
-rw-r--r--php-phpseclib-crypt-des.spec10
1 files changed, 10 insertions, 0 deletions
diff --git a/php-phpseclib-crypt-des.spec b/php-phpseclib-crypt-des.spec
index 517cb59..5e4db99 100644
--- a/php-phpseclib-crypt-des.spec
+++ b/php-phpseclib-crypt-des.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)
@@ -39,6 +40,7 @@ cd %{pear_name}-%{version}
%install
+rm -rf $RPM_BUILD_ROOT
cd %{pear_name}-%{version}
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
@@ -50,6 +52,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 || :
@@ -62,11 +68,15 @@ fi
%files
+%defattr(-, root, root, -)
%{pear_xmldir}/%{name}.xml
%{pear_phpdir}/Crypt/DES.php
%changelog
+* Wed Jan 15 2014 Remi Collet <rpms@famillecollet.com> - 0.3.5-3
+- backport for remi repo
+
* Thu Jan 09 2014 Adam Williamson <awilliam@redhat.com> - 0.3.5-3
- requires crypt-hash, drop ownership of Crypt dir