gunnar: server/PEAR-Net_Socket PEAR-Net_Socket.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-Net_Socket
In directory doto:/tmp/cvs-serv12659/PEAR-Net_Socket
Added Files:
PEAR-Net_Socket.spec Makefile
Log Message:
* PEAR-*/*:
Added PEAR-* packages in preparation of getting the newest
Horde into Kolab CVS.
--- NEW FILE: PEAR-Net_Socket.spec ---
# Defines
%define package_name Net_Socket
# Package Information
Name: PEAR-%{package_name}
Summary: PEAR: Network Socket Interface
URL: http://pear.php.net/package/%{package_name}
Packager: Gunnar Wrobel <wrobel at pardus.de> (p at rdus)
Version: 1.0.6
Release: 1
License: PHP License
Group: Development/Libraries
Distribution: OpenPKG
# List of Sources
Source: http://pear.php.net/get/%{package_name}-%{version}.tgz
# Build Info
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: PEAR-PEAR >= 1.4.7
PreReq: PEAR-Net_Socket >= 1.0, PEAR-PEAR >= 1.4.7
%description
Net_Socket is a class interface to TCP sockets. It provides blocking
and non-blocking operation, with different reading and writing modes
(byte-wise, block-wise, line-wise and special formats like network
byte-order ip addresses).
%prep
%setup -n %{package_name}-%{version}
%build
%install
rm -rf $RPM_BUILD_ROOT
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/%{package_name}-%{version}.tgz
rm -rf $RPM_BUILD_ROOT/%{l_prefix}/lib/php/{.filemap,.lock,.channels}
%{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
PNAME= Net_Socket
VERSION = 1.0.6
NAME = PEAR-$(PNAME)
PACKAGE = PEAR-$(PNAME)
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/$(PNAME)-$(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