Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php7
:
7.0.19
:
extensions
>
php7-propro
> php5-propro.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php5-propro.spec of Package php7-propro
# norootforbuild %define pkg_name propro %define php_version %(php-config --version 2>/dev/null) %if "%{php_version}" >= "5.7" %define my_version 2.0.0 %define upstream 1 %else %define my_version 1.0.0 %define upstream 0 %endif # Name: php7-propro Version: %{my_version} Release: 0 # License: PHP Group: Productivity/Networking/Web/Servers # BuildRoot: %{_tmppath}/%{pkg_name}-%{my_version}-build BuildRequires: php7-devel BuildRequires: -php7-raphf BuildRequires: -php7-propro # URL: http://pecl.php.net/propro Source: http://pecl.php.net/package/propro/%{pkg_name}-%{my_version}.tgz Summary: pecl_http's persistent handle and resource factory API %description A reusable split-off of pecl_http's persistent handle and resource factory API. Authors: --------- Michael Wallner %prep %setup -q -n %{pkg_name}-%{my_version} %{__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 propro extension in php" > %{buildroot}%{_sysconfdir}/php7/conf.d/propro.ini echo 'extension = propro.so' >> %{buildroot}%{_sysconfdir}/php7/conf.d/propro.ini %clean %{__rm} -rf %{buildroot} %files %defattr(644,root,root,755) %{_libdir}/php7/extensions/propro.so %config(noreplace) %{_sysconfdir}/php7/conf.d/propro.ini %doc CREDITS %dir %{_includedir}/php7 %dir %{_includedir}/php7/ext %dir %{_includedir}/php7/ext/propro %{_includedir}/php7/ext/propro/php_propro.h %{_includedir}/php7/ext/propro/php_propro_api.h %changelog -n php7-propro