Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php7
:
7.0.16
:
extensions
>
php7-expect
> php5-expect.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php5-expect.spec of Package php7-expect
# norootforbuild %define pkg_name expect %define pkg_version 0.3.3 %define php_version %(php-config --version 2>/dev/null) # Name: php7-expect Version: %{pkg_version} Release: 0 # License: PHP Group: Productivity/Networking/Web/Servers # BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build BuildRequires: php7-devel BuildRequires: expect >= 5.43.0 BuildRequires: expect-devel >= 5.43.0 BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: tcl-devel Requires: php7 = %{php_version} # URL: http://pecl.php.net/ Source: http://pecl.php.net/package/%{pkg_name}/%{pkg_name}-%{version}.tgz Patch0: expect-x86_64_%{version}.patch Summary: Expect extension %description This extension allows to interact with processes through PTY, using expect library. Authors: --------- Michael Spector %debug_package %prep %setup -n %{pkg_name}-%{version} %patch0 %{__mkdir} %{name} %build /usr/bin/phpize 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 export LDFLAGS="-L%{_libdir}" ./configure --with-expect=%{_usr} --with-tcldir=%{_libdir} %{__make} %{?jobs:-j%jobs} || ls -al %{_libdir} && rpm -ql expect-devel %install %makeinstall INSTALL_ROOT=%{buildroot} %{__mkdir} -p %{buildroot}%{_sysconfdir}/php7/conf.d echo "; comment out next line to disable expect extension in php" > %{buildroot}%{_sysconfdir}/php7/conf.d/expect.ini echo "extension = expect.so" >> %{buildroot}%{_sysconfdir}/php7/conf.d/expect.ini %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %{_libdir}/php7/extensions/expect.so %config(noreplace) %{_sysconfdir}/php7/conf.d/expect.ini %changelog