gunnar: server/PEAR-PEAR PEAR-PEAR.spec,NONE,1.1 Makefile,NONE,1.1
cvs at kolab.org
cvs at kolab.org
Thu May 24 14:34:11 CEST 2007
Author: gunnar
Update of /kolabrepository/server/PEAR-PEAR
In directory doto:/tmp/cvs-serv12659/PEAR-PEAR
Added Files:
PEAR-PEAR.spec Makefile
Log Message:
* PEAR-*/*:
Added PEAR-* packages in preparation of getting the newest
Horde into Kolab CVS.
--- NEW FILE: PEAR-PEAR.spec ---
# Package Information
Name: PEAR-PEAR
Summary: PEAR: PEAR Base System
URL: http://pear.php.net/package/PEAR
Packager: Gunnar Wrobel <wrobel at pardus.de> (p at rdus)
Version: 1.4.11
Release: 1
License: PHP License
Group: Development/Libraries
Distribution: OpenPKG
# List of Sources
Source: http://pear.php.net/get/PEAR-%{version}.tgz
# Build Info
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: PEAR-Archive_Tar >= 1.3.2, php
PreReq: PEAR-Archive_Tar >= 1.3.2, php
%description
The PEAR package contains:
* the PEAR installer, for creating, distributing
and installing packages
* the beta-quality PEAR_Exception PHP5 error handling mechanism
* the beta-quality PEAR_ErrorStack advanced error handling mechanism
* the PEAR_Error error handling mechanism
* the OS_Guess class for retrieving info about the OS
where PHP is running on
* the System class for quick handling of common operations
with files and directories
* the PEAR base class
New features in a nutshell:
* full support for channels
* pre-download dependency validation
* new package.xml 2.0 format allows tremendous flexibility while maintaining BC
* support for optional dependency groups and limited support for sub-packaging
* robust dependency support
* full dependency validation on uninstall
* remote install for hosts with only ftp access - no more problems with
restricted host installation
* full support for mirroring
* support for bundling several packages into a single tarball
* support for static dependencies on a url-based package
* support for custom file roles and installation tasks
NOTE: users of PEAR_Frontend_Web/PEAR_Frontend_Gtk must upgrade their installations
to the latest version, or PEAR will not upgrade properly
%prep
%setup -n PEAR-%{version}
%build
%install
rm -rf $RPM_BUILD_ROOT
PEAR_VERSION=`%{l_prefix}/bin/pear version 2>&1 | grep PEAR | sed -e 's/PEAR Version: \([0-9\.]*\).*/\1/'`
if [ $PEAR_VERSION == "1.4.11" ]; then
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 --nodeps -P $RPM_BUILD_ROOT $RPM_SOURCE_DIR/PEAR-%{version}.tgz
else
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 --nodeps -R $RPM_BUILD_ROOT $RPM_SOURCE_DIR/PEAR-%{version}.tgz
fi
rm -rf $RPM_BUILD_ROOT/%{l_prefix}/lib/php/{.filemap,.lock}
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f files
--- NEW FILE: Makefile ---
RPM = /kolab/bin/openpkg rpm
NAME = PEAR-PEAR
PACKAGE = PEAR-PEAR
VERSION = 1.4.11
RELEASE = 1
KOLABRELEASE = $(RELEASE)
ifeq "x$(KOLABRPMSRC)" "x"
KOLABRPMSRC = /kolab/RPM/SRC
endif
# Remove once moving to kolab cvs
SOURCE_0=http://pear.php.net/get/PEAR-$(VERSION).tgz
all:
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
binary:
$(RPM) -bB $(PACKAGE).spec
More information about the commits
mailing list