# # spec file for package php5-namazu (Version 2.1.0) # # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Ge%{__rm}any. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # #norootforbuild %define php_version %(php-config --version 2>/dev/null) Name: php5-namazu Version: 2.1.0 Release: 1 Url: http://www.namazu.org/ Group: Productivity/Networking/Web/Servers License: GPL Summary: a free PHP searchengine Source: namazu-%{version}.tar.gz Source1: namazu.ini Autoreqprov: on BuildRequires: php5-devel namazu-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: php5 = %{php_version} %description Namazu is a full-text search engine intended for easy use. Not only does it work as a small or medium scale Web search engine, but also as a personal search system for email or other files. %debug_package %prep %setup -n namazu-%{version} %build CFLAGS="%{optflags} -fno-strict-aliasing" %if 0%{?suse_version} > 1000 CFLAGS="$CFLAGS -fstack-protector" %endif /usr/bin/phpize %configure --with-namazu %{__make} %{?jobs:-j%jobs} %install %{__make} EXTENSION_DIR=$RPM_BUILD_ROOT/usr/%{_lib}/php5/extensions install %{__mkdir_p} $RPM_BUILD_ROOT/var/cache/php5-namazu/ %{__mkdir_p} $RPM_BUILD_ROOT/%{_sysconfdir}/php5/conf.d/ %{__cp} -a %SOURCE1 $RPM_BUILD_ROOT/%{_sysconfdir}/php5/conf.d/ %clean %{__rm} -rf $RPM_BUILD_ROOT %post %postun %files %defattr (-, root, root) %doc sample/* README.en %{_libdir}/php5/extensions/namazu.so %config(noreplace) %{_sysconfdir}/php5/conf.d/namazu.ini %changelog -n php5-namazu * Mon Jul 30 2007 leening@dauphin-mm.nl - first php5 build