%define php_extdir %(php-config --extension-dir 2>/dev/null || echo %{_libdir}/php5) Summary: Advanced protection system for PHP installations Name: php-suhosin Version: 0.9.23 Release: 1%{?dist} License: PHP Group: Development/Languages URL: http://www.hardened-php.net/suhosin/index.html Source0: http://download.suhosin.org/suhosin-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires: php BuildRequires: php, php-devel # Required by phpize BuildRequires: autoconf, automake, libtool, gcc-c++ %description Suhosin is an advanced protection system for PHP installations. It was designed to protect servers and users from known and unknown flaws in PHP applications and the PHP core. Unlike the PHP Hardening-Patch Suhosin is binary compatible to normal PHP installation, which means it is compatible to 3rd party binary extension like ZendOptimizer. %prep %setup -q -n suhosin-%{version} %build phpize %configure make %{?_smp_mflags} %install rm -rf %{buildroot} make install INSTALL_ROOT=%{buildroot} # Drop in the bit of configuration mkdir -p %{buildroot}%{_sysconfdir}/php.d install -D -m 644 suhosin.ini %{buildroot}%{_sysconfdir}/php.d/z-suhosin.ini %clean rm -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc Changelog %config(noreplace) %{_sysconfdir}/php.d/z-suhosin.ini %{php_extdir}/suhosin.so %changelog * Mon Feb 18 2007 Andreas Thienemann - 0.9.23-1 - Initial RPM release.