File php5-spell.spec of Package php5-spell
# norootforbuild
#
Name: php5-spell
Version: 1.0
Release: 1
#
License: GPL
Group: Productivity/Networking/Web/Servers
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: php5-devel libstdc++-devel gcc-c++
Requires: php5 ispell-russian ispell-american
#
Source: php-spell.tgz
Summary: PHP5 ispell dictionary functions
%description
PHP5 functions for getting expanded and normalized
word forms. Uses default dictionaries.
Authors:
---------
Alexander Sobolev <sob@informika.ru>
Andrey Landar <landar@informika.ru>
Sergey Vnotchenko <sergey69@informika.ru>
%debug_package
%prep
%setup -c
%build
/usr/bin/phpize
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-spell
%{__make} %{?jobs:-j%jobs}
%install
%makeinstall INSTALL_ROOT=%{buildroot}
%{__mkdir} -p %{buildroot}%{_sysconfdir}/php5/conf.d
echo "[extension section]" > %{buildroot}%{_sysconfdir}/php5/conf.d/spell.ini
echo "; comment out next line to disable spell extension in php" >> %{buildroot}%{_sysconfdir}/php5/conf.d/spell.ini
echo 'extension=spell.so' >> %{buildroot}%{_sysconfdir}/php5/conf.d/spell.ini
echo >> %{buildroot}%{_sysconfdir}/php5/conf.d/spell.ini
echo '[Spell]' >> %{buildroot}%{_sysconfdir}/php5/conf.d/spell.ini
echo 'DictionaryPath = /usr/lib/ispell' >> %{buildroot}%{_sysconfdir}/php5/conf.d/spell.ini
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_libdir}/php5/extensions/spell.so
%config(noreplace) %{_sysconfdir}/php5/conf.d/spell.ini
%doc README
%changelog
* Wed Apr 15 2009 - sergey1369@gmail.com
- less restrictive version check
* Thu Nov 18 2008 - sergey1369@gmail.com
- package created