From a6f07ca18f9b999372cffc85a153a67bb3bd7ca8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 10 Jan 2014 13:04:06 +0100 Subject: php-irodsphp: backport stuff --- Makefile | 10 ++++++++++ php-irodsphp.spec | 12 ++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d095534 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +INCL1 := $(shell php-config --includes) +INCL2 := -I $(shell php-config --include-dir)/sapi/embed +LIBS := -lphp5 $(shell php-config --libs) + +include ../../common/Makefile + +tembed: tembed.c + gcc -Wall $(INCL1) $(INCL2) tembed.c $(LIBS) -o tembed diff --git a/php-irodsphp.spec b/php-irodsphp.spec index 097a31f..f473276 100644 --- a/php-irodsphp.spec +++ b/php-irodsphp.spec @@ -11,6 +11,7 @@ URL: https://code.renci.org/gf/project/irodsphp/ Source0: https://code.renci.org/gf/download/frsrelease/167/1674/php-%{version}-beta1.zip Patch0: php-irodsphp-3.3.0-configpath.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: php(language) >= 5.1.2 @@ -42,6 +43,8 @@ rm -f prods/tutorials/Prods/Prods.pkg # no build required %install +rm -rf %{buildroot} + # For now, just installing the key bit of prods. If anyone sees value # in packaging the tests or the webapp...I'm not stopping you. @@ -51,17 +54,26 @@ cp -pr prods/src %{buildroot}%{_datadir}/php/%{packagename}/prods mv %{buildroot}%{_datadir}/php/%{packagename}/prods/src/prods.ini %{buildroot}%{_sysconfdir}/%{name} rm -f %{buildroot}%{_datadir}/php/%{packagename}/prods/src/LICENSE.txt %{buildroot}%{_datadir}/php/%{packagename}/prods/src/release_notes.txt + +%clean +rm -rf %{buildroot} + + %check # Needs a reference iRODS instance to test sensibly, which we don't # have %files +%defattr(-,root,root,-) %doc prods/src/LICENSE.txt prods/release_notes.txt prods/tutorials prods/utilities %{_datadir}/php/%{packagename} %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/prods.ini %changelog +* Fri Jan 10 2014 Remi Collet - 3.3.0-0.3.beta1 +- backport for remi repo. + * Sat Jan 4 2014 Adam Williamson - 3.3.0-0.3.beta1 - fix up the requires per review - drop the complex naming and just call it php-irodsphp -- cgit