Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
:
extensions
>
php5-rrdtool
> php5-rrdtool.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php5-rrdtool.spec of Package php5-rrdtool (Revision 4)
Currently displaying revision
4
,
show latest
# norootforbuild %define pkg_name php_rrdtool %define php_version %(php-config --version 2>/dev/null || echo PHPCONFIG_NOT_FOUND) # Name: php5-rrdtool Version: 1.1 Release: 1 # License: PHP Group: Productivity/Networking/Web/Servers # BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build BuildRequires: php5-devel rrdtool-devel Requires: php5 = %{php_version} # URL: http://oss.oetiker.ch/rrdtool/pub/contrib/ Source: %{pkg_name}.tgz Summary: PHP rrdtool integration %description %debug_package %prep %setup -q -n rrdtool %{__mkdir} %{name} %build %{_bindir}/phpize5 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-rrdtool=%{_usr} \ --with-php-config=%{_bindir}/php-config5 || cat config.log %{__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 rrdtool extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/rrdtool.ini echo 'extension = rrdtool.so' >> %{buildroot}%{_sysconfdir}/php5/conf.d/rrdtool.ini %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %{_libdir}/php5/extensions/rrdtool.so %config(noreplace) %{_sysconfdir}/php5/conf.d/rrdtool.ini %changelog -n php5-rrdtool * Thu Jun 12 2008 Carsten Schoene <cs@linux-administrator.com> - initial package build