From e032af37507dc6cfbf1036394b829bb509585499 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 17 Dec 2012 11:01:28 +0100 Subject: php-when: backport --- Makefile | 10 ++++++++++ php-when.spec | 8 ++++++++ 2 files changed, 18 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-when.spec b/php-when.spec index 3bfd887..633ed71 100644 --- a/php-when.spec +++ b/php-when.spec @@ -3,12 +3,14 @@ Version: 0.3 Release: 2%{?dist} Summary: Date/Calendar recursion library for PHP +Group: Development/Libraries License: MIT URL: https://github.com/tplaner/When # Download from # https://github.com/tplaner/When/archive/v0.3.tar.gz Source0: When-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: php-date php-spl @@ -19,6 +21,7 @@ recursion given an iCalendar "rrule" like pattern. %package tests Summary: Test files for %{name} +Group: Development/Libraries Requires: %{name} = %{version}-%{release} # phpunit tests @@ -53,16 +56,21 @@ phpunit -d include_path=%{buildroot}%{_datadir}/php:.:%{_datadir}/php:%{_datadir %files +%defattr(-,root,root,-) %doc README.md %{_datadir}/php/when %files tests +%defattr(-,root,root,-) %dir %{_datadir}/tests %{_datadir}/tests/%{name} %changelog +* Mon Dec 17 2012 Remi Collet - 0.3-2 +- backport for remi repo. + * Sat Dec 15 2012 Gregor Tätzner - 0.3-2 - enabled phpunit tests - moved tests to %%{_datadir}/tests/%%{name} -- cgit