Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
:
extensions
>
php5-ssh2
> php5-ssh2.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php5-ssh2.spec of Package php5-ssh2 (Revision 5)
Currently displaying revision
5
,
show latest
# norootforbuild %define pkg_name ssh2 %define pkg_version 0.10 %define php_version %(php-config --version 2>/dev/null || echo PHPCONFIG_NOT_FOUND) # Name: php5-ssh2 Version: 0.10 Release: 0 # License: PHP Group: Productivity/Networking/Web/Servers # BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build BuildRequires: php5-devel libssh2-devel Requires: php5 = %{php_version} # URL: http://pecl.php.net/ssh2 Source: http://pecl.php.net/package/ssh2/%{pkg_name}-%{version}.tgz Patch0: php5-ssh2-lib64.patch Patch1: php5-ssh2-fixes.patch Patch2: php5-ssh2-compile-fix.patch Summary: Bindings for the libssh2 library %description Provides bindings to the functions of libssh2 which implements the SSH2 protocol. Authors: --------- Sara Golemon <pollita@php.net> %debug_package %prep %setup -n %{pkg_name}-%{version} %patch0 %patch1 %patch2 %{__mkdir} %{name} %build /usr/bin/phpize pushd %{name} CFLAGS="%{optflags} -fno-strict-aliasing" CXXFLAGS="%{optflags} -fno-strict-aliasing" %if 0%{?suse_version} > 1000 CFLAGS="$CFLAGS -fstack-protector" CXXFLAGS="$CXXFLAGS -fstack-protector" %endif export CFLAGS export CXXFLAGS ../configure --with-ssh2=%{_usr} --with-libdir=%{_lib} %{__make} %{?jobs:-j%jobs} popd %install %makeinstall -C %{name} INSTALL_ROOT=%{buildroot} %{__mkdir} -p %{buildroot}%{_sysconfdir}/php5/conf.d echo "; comment out next line to disable ssh2 extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/ssh2.ini echo 'extension = ssh2.so' >> %{buildroot}%{_sysconfdir}/php5/conf.d/ssh2.ini %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %{_libdir}/php5/extensions/ssh2.so %config(noreplace) %{_sysconfdir}/php5/conf.d/ssh2.ini #%doc CREDITS %changelog -n php5-ssh2 * Fri Dec 22 2006 - judas_iscariote@shorewall.net - very first build