# # spec file for package aspell # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: aspell Version: 0.60.6.1 Release: 1 License: LGPL-2.1+ Summary: A Free and Open Source Spell Checker Url: http://aspell.net/ Group: Productivity/Text/Spell Source0: ftp://ftp.gnu.org/gnu/aspell/%{name}-%{version}.tar.gz Source100: baselibs.conf # PATCH-FIX-OPENSUSE aspell-strict-aliasing.patch pnemec@suse.cz -- Fix gcc strict aliasing warnings Patch0: aspell-strict-aliasing.patch # PATCH-FIX-OPENSUSE aspell-quotes.patch lmichnovic@suse.cz -- Fix command execution in script "run-with-aspell" Patch1: aspell-quotes.patch # PATCH-FIX-OPENSUSE aspell-epmty_file.patch bnc#266130 lmichnovic@suse.cz -- Fix SIGSEV when checking empty file Patch2: aspell-epmty_file.patch BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: ncurses-devel Requires(post): info Requires(preun): info Recommends: aspell-en Suggests: aspell-ispell Suggests: aspell-spell Provides: pspell = %{version} Obsoletes: pspell < %{version} # bug437293 %ifarch ppc64 Obsoletes: aspell-64bit %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description GNU Aspell is a spell checker designed to eventually replace Ispell. It can be used as a library or as an independent spell checker. Its main feature is that it does a much better job of coming up with possible suggestions than just about any other spell checker available for the English language, including Ispell and Microsoft Word. It also has many other technical enhancements over Ispell, such as using shared memory for dictionaries and intelligently handling personal dictionaries when more than one Aspell process is open at once. %package devel License: LGPL-2.1+ Summary: Include Files and Libraries Mandatory for Development with aspell Group: Development/Libraries/C and C++ Requires: glibc-devel Requires: libaspell15 = %{version} Requires: libpspell15 = %{version} Requires(post): info Requires(preun): info Provides: pspell-devel = %{version} Obsoletes: pspell-devel < %{version} %description devel This package contains all necessary include files and libraries needed to develop applications that require aspell. %package ispell License: LGPL-2.1+ Summary: GNU Aspell - Ispell compatibility Group: Productivity/Text/Spell Requires: %{name} = %{version} Conflicts: ispell %description ispell GNU Aspell is a spell checker designed to eventually replace Ispell. It can be used as a library or as an independent spell checker. This package contains an ispell script for compatibility reasons so that programs that expect the "ispell" command will work correctly. %package spell License: LGPL-2.1+ Summary: GNU Aspell - Spell compatibility Group: Productivity/Text/Spell Requires: %{name} = %{version} Provides: spell %description spell GNU Aspell is a spell checker designed to eventually replace Ispell. It can be used as a library or as an independent spell checker. This package contains a spell script for compatibility reasons so that programs that expect the "spell" command will work correctly. %package -n libaspell15 License: LGPL-2.1+ Summary: GNU Aspell Library Group: System/Libraries %description -n libaspell15 GNU Aspell is a spell checker designed to eventually replace Ispell. It can be used as a library or as an independent spell checker. This package contains the aspell library. %package -n libpspell15 License: LGPL-2.1+ Summary: GNU Aspell - Pspell Compatibility Library Group: System/Libraries %description -n libpspell15 GNU Aspell is a spell checker designed to eventually replace Ispell. It can be used as a library or as an independent spell checker. This package contains the pspell compatibility library. %prep %setup -q %patch0 %patch1 %patch2 %build export CFLAGS="%{optflags}" export CXXFLAGS="%{optflags}" %configure \ %if %suse_version > 1210 --enable-curses="-lncurses -ltinfo" \ %endif --disable-rpath make %{?_smp_mflags} %install %if 0%{?suse_version} >= 1120 %make_install %else make DESTDIR=%{buildroot} install %endif # Links for compatibility reasons (ispell and spell) ln -s %{_libdir}/aspell-0.60/ispell %{buildroot}%{_bindir} ln -s %{_libdir}/aspell-0.60/spell %{buildroot}%{_bindir} %fdupes -s %{buildroot} %find_lang %{name} %clean rm -rf %{buildroot} %post %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info} %preun %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info} %post devel %install_info --info-dir=%{_infodir} %{_infodir}/%{name}-dev.info%{ext_info} %preun devel %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}-dev.info%{ext_info} %post -n libaspell15 -p /sbin/ldconfig %postun -n libaspell15 -p /sbin/ldconfig %post -n libpspell15 -p /sbin/ldconfig %postun -n libpspell15 -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root,-) %doc COPYING README TODO %doc manual/aspell.html/ %{_bindir}/aspell %{_bindir}/aspell-import %{_bindir}/pre* %{_bindir}/run-with-aspell %{_bindir}/word-list-compress %doc %{_infodir}/%{name}.info%{ext_info} %doc %{_mandir}/man1/*.1%{ext_man} %exclude %{_mandir}/man1/pspell-config.1%{ext_man} %files devel %defattr(-,root,root,-) %doc manual/aspell-dev.html/ %{_bindir}/pspell-config %{_includedir}/pspell/ %{_includedir}/*.h %{_libdir}/libaspell.la %{_libdir}/libpspell.la %{_libdir}/libaspell.so %{_libdir}/libpspell.so %doc %{_infodir}/%{name}-dev.info%{ext_info} %doc %{_mandir}/man1/pspell-config.1%{ext_man} %files ispell %defattr(-,root,root,-) %{_bindir}/ispell %files spell %defattr(-,root,root,-) %{_bindir}/spell %files -n libaspell15 %defattr(-,root,root,-) %{_libdir}/aspell-0.60/ %{_libdir}/libaspell.so.15* %files -n libpspell15 %defattr(-,root,root,-) %{_libdir}/libpspell.so.15* %changelog