SHA256
1
0
forked from pool/aspell
aspell/aspell.spec

200 lines
6.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package aspell
#
# Copyright (c) 2023 SUSE LLC
#
# 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.
- version update to 0.60.8 * Prevent a potentially unbounded buffer over-read by no longer supporting null-terminated UCS-2 and UCS-4 encoded strings with the original C API. @xref{Upgrading from Aspell 0.60.7}. * Ensure that possible typos are listed before other suggestions when typo analysis is used. Also fix a bug so that suggestions that split a word using a space or hyphen are not always first. * Add Markdown filter. * Add new @option{wordlists} option, which is a list of UTF-8 files that contain additional words to accept. * Add new @option{camel-case} option, which enables support for checking camelCase words. * Sort personal and replacement dictionaries. * Change @code{ultra} suggestion mode to only find words that are within one-edit distance or have the same soundslike. * Implement the @code{aspell filter} command. * Fix a bug in @code{AspellDocumentChecker} that prevented it from working with UCS-2 and UCS-4 encoded strings. * Remove unused @option{sug-edit-dist} option. * @code{AspellDocumentChecker} now expects the document a line at a time in order to work with the new Markdown filter. If the document is split on white space characters instead, nothing will break, but new filters such as the Markdown filter may give incorrect results. * The @option{clean} option and command will no longer split a word. * Various documentation improvements. * Removal of several outdated appendices that don't really belong in the main manual. Parts that are still relevent may eventually be moved elsewhere, but for now they are available online at @uref{http://aspell.net/0.60.7/man-html/}. * Fix various crashes and other problems found by Google's OSS-Fuzz. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/aspell?expand=0&rev=36
2019-10-15 09:47:43 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: aspell
Version: 0.60.8.1
Release: 0
Summary: A Spell Checker
- version update to 0.60.8 * Prevent a potentially unbounded buffer over-read by no longer supporting null-terminated UCS-2 and UCS-4 encoded strings with the original C API. @xref{Upgrading from Aspell 0.60.7}. * Ensure that possible typos are listed before other suggestions when typo analysis is used. Also fix a bug so that suggestions that split a word using a space or hyphen are not always first. * Add Markdown filter. * Add new @option{wordlists} option, which is a list of UTF-8 files that contain additional words to accept. * Add new @option{camel-case} option, which enables support for checking camelCase words. * Sort personal and replacement dictionaries. * Change @code{ultra} suggestion mode to only find words that are within one-edit distance or have the same soundslike. * Implement the @code{aspell filter} command. * Fix a bug in @code{AspellDocumentChecker} that prevented it from working with UCS-2 and UCS-4 encoded strings. * Remove unused @option{sug-edit-dist} option. * @code{AspellDocumentChecker} now expects the document a line at a time in order to work with the new Markdown filter. If the document is split on white space characters instead, nothing will break, but new filters such as the Markdown filter may give incorrect results. * The @option{clean} option and command will no longer split a word. * Various documentation improvements. * Removal of several outdated appendices that don't really belong in the main manual. Parts that are still relevent may eventually be moved elsewhere, but for now they are available online at @uref{http://aspell.net/0.60.7/man-html/}. * Fix various crashes and other problems found by Google's OSS-Fuzz. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/aspell?expand=0&rev=36
2019-10-15 09:47:43 +02:00
License: GFDL-1.1-or-later AND LGPL-2.1-only AND HPND AND SUSE-BSD-Mark-Modifications
Group: Productivity/Text/Spell
URL: http://aspell.net/
Source0: https://ftp.gnu.org/gnu/aspell/%{name}-%{version}.tar.gz
Source1: https://ftp.gnu.org/gnu/aspell/%{name}-%{version}.tar.gz.sig
Source2: %{name}.keyring
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
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}
%description
GNU Aspell is a spell checker planned to eventually replace Ispell. It
can be used as a library or as an independent spell checker.
Its main feature is an improved method for finding possible
suggestions for the English language, arguably surpassing 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
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
Summary: GNU Aspell - Ispell compatibility
Group: Productivity/Text/Spell
Requires: %{name} = %{version}
Conflicts: ispell
%description ispell
GNU Aspell is a spell checker planned 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
Summary: GNU Aspell - Spell compatibility
Group: Productivity/Text/Spell
Requires: %{name} = %{version}
Provides: spell
%description spell
GNU Aspell is a spell checker planned 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
Summary: GNU Aspell Library
Group: System/Libraries
%description -n libaspell15
GNU Aspell is a spell checker planned 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
Summary: GNU Aspell - Pspell Compatibility Library
Group: System/Libraries
Recommends: aspell-en
%description -n libpspell15
GNU Aspell is a spell checker planned 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
%autosetup -p1
%build
autoreconf -fiv
export CXXFLAGS="%{optflags} `ncursesw6-config --cflags`"
#this is an ugly kludge , don't look :-)
export LDFLAGS="`ncursesw6-config --libs`"
%configure \
--enable-curses="-lncursesw" \
--disable-rpath
%make_build
%install
%make_install
# 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}
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes -s %{buildroot}
%find_lang %{name}
%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
%license COPYING
%doc README TODO
%doc manual/aspell.html/
%{_bindir}/aspell
%{_bindir}/aspell-import
%{_bindir}/pre*
%{_bindir}/run-with-aspell
%{_bindir}/word-list-compress
%{_infodir}/%{name}.info%{ext_info}
%{_mandir}/man1/*.1%{ext_man}
%exclude %{_mandir}/man1/pspell-config.1%{ext_man}
%files devel
%doc manual/aspell-dev.html/
%{_bindir}/pspell-config
%{_includedir}/pspell/
%{_includedir}/*.h
%{_libdir}/libaspell.so
%{_libdir}/libpspell.so
%{_infodir}/%{name}-dev.info%{ext_info}
%{_mandir}/man1/pspell-config.1%{ext_man}
%files ispell
%{_bindir}/ispell
%files spell
%{_bindir}/spell
%files -n libaspell15
%{_libdir}/aspell-0.60/
%{_libdir}/libaspell.so.15*
%files -n libpspell15
%{_libdir}/libpspell.so.15*
%changelog