Search
j0ke.net Open Build Service
>
Projects
>
server:php:applications
>
php-pear-net_socket
> php5-pear-net_socket.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php5-pear-net_socket.spec of Package php-pear-net_socket (Revision 3)
Currently displaying revision
3
,
show latest
#norootforbuild # # spec file for package Net_Socket (Version 1.0.8) # # Copyright (c) 2007 SuSE Linux AG, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bug fixes or comments via http://bugs.opensuse.org/ # %define peardir %(pear config-get php_dir 2> /dev/null) %define xmldir /var/lib/pear Summary: PHP Network Socket Interface Name: php5-pear-net_socket Version: 1.0.8 Release: 1 License: PHP License Group: Development/Libraries/Other Source0: http://pear.php.net/get/Net_Socket-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-build URL: http://pear.php.net/package/Net_Socket BuildRequires: php5-pear PreReq: php5-pear BuildArch: noarch %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 -c -T pear -v -c pearrc \ -d php_dir=%{peardir} \ -d doc_dir=/docs \ -d bin_dir=%{_bindir} \ -d data_dir=%{peardir}/data \ -d test_dir=%{peardir}/tests \ -d ext_dir=%{_libdir} \ -s %build %install pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0} # Clean up unnecessary files %{__rm} pearrc %{__rm} %{buildroot}/%{peardir}/.filemap %{__rm} %{buildroot}/%{peardir}/.lock %{__rm} -rf %{buildroot}/%{peardir}/.registry %{__rm} -rf %{buildroot}%{peardir}/.channels %{__rm} %{buildroot}%{peardir}/.depdb %{__rm} %{buildroot}%{peardir}/.depdblock # Install XML package description %{__mkdir_p} %{buildroot}%{xmldir} %{__tar} -xzf %{SOURCE0} package.xml %{__cp} -p package.xml %{buildroot}%{xmldir}/Net_Socket.xml %clean %{__rm} -rf %{buildroot} %post pear install --nodeps --soft --force --register-only %{xmldir}/Net_Socket.xml %postun if [ "$1" -eq "0" ]; then pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Net_Socket fi %files %defattr(-,root,root) %{peardir}/* %{xmldir}/Net_Socket.xml