%define name php5-enchant %define version 5.0.3 %define rversion 1.0 %define modname enchant %define dirname %{modname} %define soname %{modname}.so %define inifile A38_%{modname}.ini Summary: Libenchant binder, support near all spelling tools Name: %{name} Version: %{version}_%{rversion} Release: %mkrel 2 Group: System/Servers License: PHP License URL: http://pecl.php.net/package/enchant Source0: enchant-%{rversion}.tar.bz2 Patch0: enchant-1.0-lib64.diff.bz2 BuildRequires: php5-devel BuildRequires: enchant-devel BuildRoot: %{_tmppath}/%{name}-root %description Enchant is a binder for libenchant. Libenchant provides a common API for many spell libraries: - aspell/pspell (intended to replace ispell) - hspell (hebrew) - ispell - myspell (OpenOffice project, mozilla) - uspell (primarily Yiddish, Hebrew, and Eastern European languages) A plugin system allows to add custom spell support. see www.abisource.com/enchant/ %prep %setup -q -n enchant-%{rversion} %patch0 -p0 %build php5ize %configure2_5x \ --with-%{modname}=shared,%{_prefix} %make mv modules/*.so . %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} install -d %{buildroot}%{_libdir}/php5/extensions install -d %{buildroot}%{_sysconfdir}/php5.d install -m755 %{soname} %{buildroot}%{_libdir}/php5/extensions/ cat > %{buildroot}%{_sysconfdir}/php5.d/%{inifile} << EOF extension = %{soname} EOF %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} [ "../package.xml" != "/" ] && rm -f ../package.xml %files %defattr(-,root,root) %doc docs CREDITS %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/php5.d/%{inifile} %attr(0755,root,root) %{_libdir}/php5/extensions/%{soname} %changelog * Sun Mar 20 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 5.0.3_1.0-2mdk - use the %%mkrel macro * Sat Feb 12 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 5.0.3_1.0-1mdk - initial Mandrakelinux package * Sat Jan 15 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 4.3.10_1.0-2mdk - rebuild due to hardened-php-0.2.6 - cleanups * Sat Jan 08 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 4.3.10_1.0-1mdk - initial mandrake package - added P0