summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-channel-phpseclib.spec10
1 files changed, 10 insertions, 0 deletions
diff --git a/php-channel-phpseclib.spec b/php-channel-phpseclib.spec
index 68f68c7..f1eab2a 100644
--- a/php-channel-phpseclib.spec
+++ b/php-channel-phpseclib.spec
@@ -11,6 +11,7 @@ License: Public Domain
URL: http://phpseclib.sourceforge.net/
Source0: http://phpseclib.sourceforge.net/channel.xml
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: php-pear
Requires: php-pear(PEAR)
@@ -34,10 +35,15 @@ sed -i 's/\r$//' %{SOURCE0}
%install
+rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{pear_xmldir}
install -pm 644 %{SOURCE0} $RPM_BUILD_ROOT%{pear_xmldir}/%{name}.xml
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
%post
if [ $1 -eq 1 ] ; then
%{__pear} channel-add %{pear_xmldir}/%{name}.xml > /dev/null || :
@@ -53,10 +59,14 @@ fi
%files
+%defattr(-,root,root,-)
%{pear_xmldir}/%{name}.xml
%changelog
+* Sun Jan 5 2014 Remi Collet <rpms@famillecollet.com> - 1.3-1
+- backport for remi repo
+
* Sat Jan 4 2014 Adam Williamson <awilliam@redhat.com> - 1.3-1
- version using the rest version
- drop use of tabs