Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
:
5.4.34
:
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
# norootforbuild %define pkg_name ssh2 %define pkg_version 0.12 %define php_version %(php-config --version 2>/dev/null || echo PHPCONFIG_NOT_FOUND) # Name: php5-ssh2 Version: 0.12 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 Patch3: php5-ssh2-stream-segfault-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} %patch3 %{__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