summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-01-15 07:20:01 +0100
committerRemi Collet <fedora@famillecollet.com>2014-01-15 07:20:01 +0100
commit5eab7ee8187cf24bab4471bbee616f211af67250 (patch)
tree33fb802faa1c907a7f8d20d22a47cf819b182a9e
parentf413ec3ee42dbcf4d37465cfab63e037333c7000 (diff)
php-phpseclib-crypt-rijndael: backport
-rw-r--r--Makefile4
-rw-r--r--php-phpseclib-crypt-rijndael.spec10
2 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..13af741
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,4 @@
+SRCDIR := $(shell pwd)
+NAME := $(shell basename $(SRCDIR))
+include ../../../common/Makefile
+
diff --git a/php-phpseclib-crypt-rijndael.spec b/php-phpseclib-crypt-rijndael.spec
index 8024848..536a842 100644
--- a/php-phpseclib-crypt-rijndael.spec
+++ b/php-phpseclib-crypt-rijndael.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
%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