gunnar: server/pear/PEAR-PHPUnit-Channel .cvsignore, NONE, 1.1 Makefile, NONE, 1.1 PEAR-PHPUnit-Channel.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/PEAR-PHPUnit-Channel
In directory doto:/tmp/cvs-serv15880/PEAR-PHPUnit-Channel
Added Files:
.cvsignore Makefile PEAR-PHPUnit-Channel.spec
Log Message:
Added the PHPUnit testing framework.
--- NEW FILE: .cvsignore ---
*.src.rpm
--- NEW FILE: Makefile ---
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
PACKAGE = PEAR-PHPUnit-Channel
VERSION = 1.0
RELEASE = 1
SOURCE_0=http://pear.phpunit.de/channel.xml
.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
test -d $(KOLABRPMSRC)/$(PACKAGE) || mkdir $(KOLABRPMSRC)/$(PACKAGE)
cd $(KOLABRPMSRC)/$(PACKAGE) && wget "$(SOURCE_0)"
cp $(PACKAGE).spec $(KOLABRPMSRC)/$(PACKAGE)
cd $(KOLABRPMSRC)/$(PACKAGE) && $(RPM) -ba $(PACKAGE).spec
cp -p $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm .
--- NEW FILE: PEAR-PHPUnit-Channel.spec ---
%define pear_xmldir %{l_prefix}/var/pear
Name: PEAR-PHPUnit-Channel
Version: 1.0
Release: 1
Summary: Adds pear.phpunit.de channel to PEAR
Group: Development/Languages
License: N/A
URL: http://pear.phpunit.de/
Source0: http://pear.phpunit.de/channel.xml
# Build Info
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: php, php::with_pear = yes
Requires: php, php::with_pear = yes
%description
This package adds the pear.phpunit.de channel which allows PEAR packages
from this channel to be installed.
%prep
%setup -q -c -T
%build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{pear_xmldir}
install -pm 644 %{SOURCE0} $RPM_BUILD_ROOT%{pear_xmldir}/pear.phpunit.de.xml
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%clean
rm -rf $RPM_BUILD_ROOT
%post
env PHP_PEAR_PHP_BIN="%{l_prefix}/bin/php -d safe_mode=off" \
%{l_prefix}/bin/pear -d php_dir=%{l_prefix}/lib/php channel-add %{pear_xmldir}/pear.phpunit.de.xml || \
echo "Channel already exists!" && sleep 1
env PHP_PEAR_PHP_BIN="%{l_prefix}/bin/php -d safe_mode=off" \
%{l_prefix}/bin/pear -d php_dir=%{l_prefix}/lib/php channel-update %{pear_xmldir}/pear.phpunit.de.xml || \
echo "Could not update channel pear.phpunit.de!" && sleep 1
%postun
env PHP_PEAR_PHP_BIN="%{l_prefix}/bin/php -d safe_mode=off" \
%{l_prefix}/bin/pear -d php_dir=%{l_prefix}/lib/php channel-delete pear.phpunit.de || \
echo "Could not delete channel pear.phpunit.de!" && sleep 1
%files -f files
More information about the commits
mailing list