From 6b85a169fc5ce384f4e122e3dbe61a81909bb44b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 24 Jan 2014 07:56:14 +0100 Subject: php-phpseclib-crypt-tripledes: backport --- Makefile | 4 ++++ php-phpseclib-crypt-tripledes.spec | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Makefile 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-tripledes.spec b/php-phpseclib-crypt-tripledes.spec index 1645435..61a67eb 100644 --- a/php-phpseclib-crypt-tripledes.spec +++ b/php-phpseclib-crypt-tripledes.spec @@ -1,4 +1,3 @@ -%{!?pear_metadir: %global pear_metadir %{pear_phpdir}} %{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} %global pear_name Crypt_TripleDES @@ -12,6 +11,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) @@ -42,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 @@ -53,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 || : @@ -65,11 +70,15 @@ fi %files +%defattr(-, root, root, -) %{pear_xmldir}/%{name}.xml %{pear_phpdir}/Crypt/TripleDES.php %changelog +* Sat Jan 24 2014 Remi Collet - 0.3.5-3 +- backport for remi repo + * Thu Jan 09 2014 Adam Williamson - 0.3.5-3 - requires crypt-hash -- cgit