Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php7
:
7.0.18
:
extensions
>
php7-zeromq
> php5-zmq.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php5-zmq.spec of Package php7-zeromq
# norootforbuild %define pkg_name zmq # Name: php7-zmq Version: 1.1.3 Release: 1 # License: PHP Group: Productivity/Networking/Web/Servers # BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build BuildRequires: php-devel >= 7.0 #BuildRequires: php-cli BuildRequires: zeromq-devel >= 2.0.7 BuildRequires: pkg-config # URL: http://pecl.php.net/zmq Source0: http://pecl.php.net/package/zmq/%{pkg_name}-%{version}.tgz Patch0: 7c961507e24435680e445b90af0a465c98246d4d.patch Summary: ZeroMQ messaging %description This package handles ZeroMQ messaging. Authors: --------- Mikko Koppanen %prep %setup -q -n %{pkg_name}-%{version} %patch0 -p1 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 %{__make} %{?jobs:-j%jobs} popd %install %makeinstall -C %{name} INSTALL_ROOT=%{buildroot} %{__mkdir_p} %{buildroot}%{_sysconfdir}/php7/conf.d echo "; comment out next line to disable zmq extension in php" > %{buildroot}%{_sysconfdir}/php7/conf.d/zmq.ini echo 'extension = zmq.so' >> %{buildroot}%{_sysconfdir}/php7/conf.d/zmq.ini %clean %{__rm} -rf %{buildroot} %files %defattr(644,root,root,755) %{_libdir}/php7/extensions/zmq.so %config(noreplace) %{_sysconfdir}/php7/conf.d/zmq.ini %doc LICENSE README.md %changelog