gunnar: server/pear/PHPUnit .cvsignore, NONE, 1.1 ChangeLog, NONE, 1.1 Makefile, NONE, 1.1 PHPUnit.spec, NONE, 1.1

cvs at kolab.org cvs at kolab.org
Wed Sep 10 15:31:33 CEST 2008


Author: gunnar

Update of /kolabrepository/server/pear/PHPUnit
In directory doto:/tmp/cvs-serv15880/PHPUnit

Added Files:
	.cvsignore ChangeLog Makefile PHPUnit.spec 
Log Message:
Added the PHPUnit testing framework.

--- NEW FILE: .cvsignore ---
*.src.rpm

--- NEW FILE: ChangeLog ---
2008-09-10  Gunnar Wrobel  <p at rdus.de>

	* Horde_DOM.spec: Added package to Kolab CVS.


--- NEW FILE: Makefile ---
PACKAGE = $(shell grep "%define[ ]*V_package" *.spec | sed -e "s/.*V_package \([A-Za-z\-\_]*\).*/\1/")
VERSION = $(shell grep "%define[ ]*V_version" *.spec | sed -e "s/.*V_version\s*\([0-9.]*\).*/\1/")
RELEASE = $(shell grep "%define[ ]*V_release" *.spec | sed -e "s/.*V_release\s*\([0-9]*\).*/\1/")

ifeq "x$(RPM)" "x"
  RPM = $(HOME)/bin/openpkg rpm
endif
ifeq "x$(KOLABRPMSRC)" "x"
  KOLABRPMSRC = $(HOME)/RPM/SRC
endif
ifeq "x$(KOLABRPMPKG)" "x"
  KOLABRPMPKG = $(HOME)/RPM/PKG
endif
ifeq "x$(KOLABRPMTMP)" "x"
  KOLABRPMTMP = $(HOME)/RPM/TMP
endif

SOURCE_0=http://pear.phpunit.de/get/$(PACKAGE)-$(VERSION).tgz

.PHONY: all
all: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm

.PHONY: dist
dist: all
	cp $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm ../../stage/

.PHONY: clean
clean:
	rm -rf /kolab/RPM/TMP/$(PACKAGE)*
	rm -rf $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
	rm -rf *~

$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm: Makefile $(PACKAGE).spec ChangeLog
	test -d $(KOLABRPMSRC)/$(PACKAGE) || mkdir $(KOLABRPMSRC)/$(PACKAGE)
	cd $(KOLABRPMSRC)/$(PACKAGE) && wget -c "$(SOURCE_0)"

	cp $(PACKAGE).spec $(KOLABRPMSRC)/$(PACKAGE)
	cd $(KOLABRPMSRC)/$(PACKAGE) && $(RPM) -ba $(PACKAGE).spec

	cp -p $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm .

--- NEW FILE: PHPUnit.spec ---
# Variables
%define         V_package PHPUnit
%define         V_version 3.2.21
%define         V_release 1

# Package Information
Name:	   %{V_package}
Summary:   Regression testing framework for unit tests.
URL:       http://www.phpunit.de
Packager:  Gunnar Wrobel <wrobel at pardus.de> (p at rdus)
Version:   %{V_version}
Release:   %{V_release}
License:   BSD-Style
Group:     Development/Libraries
Distribution:	OpenPKG

# List of Sources
Source:    http://pear.phpunit.de/get/%{V_package}-%{V_version}.tgz

# Build Info
Prefix:	   %{l_prefix}
BuildRoot: %{l_buildroot}

#Pre requisites
BuildPreReq:  OpenPKG, openpkg >= 20070603
BuildPreReq:  php, php::with_pear = yes
BuildPreReq:  PEAR-PHPUnit-Channel
PreReq:       OpenPKG, openpkg >= 20070603
PreReq:       php, php::with_pear = yes, php::with_spl = yes

%description 
PHPUnit is a regression testing framework used by the developer who
implements unit tests in PHP. This is the version to be used with PHP
5.

%prep
	%setup -n %{V_package}-%{V_version}

%build

%install
        env PHP_PEAR_PHP_BIN="%{l_prefix}/bin/php -d safe_mode=off -d memory_limit=40M"   \
            PHP_PEAR_CACHE_DIR="/tmp/pear/cache" \
	    %{l_prefix}/bin/pear install --offline --force --nodeps -P $RPM_BUILD_ROOT $RPM_SOURCE_DIR/%{V_package}-%{V_version}.tgz
	rm -rf $RPM_BUILD_ROOT/%{l_prefix}/lib/php/{.filemap,.lock,.channels,.depdb,.depdblock}

        %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 

%clean
	rm -rf $RPM_BUILD_ROOT

%files -f files





More information about the commits mailing list