summaryrefslogtreecommitdiffstats
path: root/php-phpseclib-math-biginteger.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-01-15 06:55:44 +0100
committerRemi Collet <fedora@famillecollet.com>2014-01-15 06:55:44 +0100
commitaefef4922f15bb0f4141eea559414d3a4f7fbccc (patch)
treea2fc22395985b54093661efaae5c6ece83e852fb /php-phpseclib-math-biginteger.spec
parent8df0418ebccacff73910d1998160cd2dd0a7efd6 (diff)
php-phpseclib-math-biginteger: backport
Diffstat (limited to 'php-phpseclib-math-biginteger.spec')
-rw-r--r--php-phpseclib-math-biginteger.spec10
1 files changed, 10 insertions, 0 deletions
diff --git a/php-phpseclib-math-biginteger.spec b/php-phpseclib-math-biginteger.spec
index 0349c00..01c0e39 100644
--- a/php-phpseclib-math-biginteger.spec
+++ b/php-phpseclib-math-biginteger.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)
@@ -44,6 +45,7 @@ cd %{pear_name}-%{version}
%install
+rm -rf $RPM_BUILD_ROOT
cd %{pear_name}-%{version}
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
@@ -55,6 +57,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 || :
@@ -67,6 +73,7 @@ fi
%files
+%defattr(-, root, root, -)
%{pear_xmldir}/%{name}.xml
# php-pear-Math-Stats also owns the directory, but a dependency on it
# does not seem to make sense
@@ -74,6 +81,9 @@ fi
%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