N
Портал сборок NiceOS
Корпоративный портал наблюдаемости для опубликованных сборок пакетов NiceOS.

input/hunspell.spec

raw · 3.8 KiB

Name:           hunspell
Version:        1.7.3
Release:        1%{?dist}

Summary:        Spell checker, morphological analyzer and dictionary tools
Summary(ru):    Проверка орфографии, морфологический анализатор и инструменты словарей

License:        LGPL-2.1-or-later OR GPL-2.0-or-later OR MPL-1.1
URL:            https://github.com/hunspell/hunspell

Source0:        https://github.com/hunspell/hunspell/releases/download/v%{version}/hunspell-%{version}.tar.gz
Source1:        dictionaries-1.0.tar.gz

Packager:       NICE SOFT GROUP LLC (ООО "НАЙС СОФТ ГРУПП") 5024245440 <niceos@ncsgp.ru>
Vendor:         NiceSOFT
Distribution:   NiceOS.Core
BugURL:         https://bugs.niceos.ru/
VCS:            https://specs.niceos.ru/rmps/%{name}

BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gettext
BuildRequires:  libtool
BuildRequires:  ncurses-devel
BuildRequires:  perl
BuildRequires:  pkg-config
BuildRequires:  texinfo
BuildRequires:  gcc-c++
BuildRequires:  libstdc++-devel

Requires:       gettext
Requires:       ncurses
Requires:       perl-libintl

%description
Hunspell is a spell checker and morphological analyzer supporting many
languages. It is used by applications such as LibreOffice and Mozilla Firefox
to check spelling and suggest corrections. Hunspell can also be used to create
dictionaries and to integrate spell-checking capabilities into other software.

%description -l ru
Hunspell — это программа для проверки орфографии и морфологического анализа,
поддерживающая множество языков. Она используется в приложениях вроде
LibreOffice и Mozilla Firefox для проверки правописания и предложения
исправлений. Hunspell также может применяться для создания словарей и
интеграции проверки орфографии в другие программы.

%package devel
Summary:        Development files for Hunspell dictionaries
Summary(ru):    Файлы для разработки словарей Hunspell
Requires:       %{name} = %{version}-%{release}

%description -n %{name}-devel
Development and compilation files for Hunspell dictionaries, including headers
and libraries.

%description -l ru -n %{name}-devel
Файлы для разработки и компиляции словарей Hunspell, включая заголовочные файлы
и библиотеки.

%prep
# RU: Распаковываем Source1 (словарные данные) в дерево исходников.
# EN: Unpack Source1 (dictionary data) into the source tree.
%autosetup -p1 -a1

%build
autoreconf -vfi

%configure \
    --enable-static=no \
    --with-ncurses=yes

%make_build

%install
%make_install %{?_smp_mflags}

mkdir -p %{buildroot}%{_datadir}/%{name}
install -m 0644 dictionaries/*.aff %{buildroot}%{_datadir}/%{name}
install -m 0644 dictionaries/*.dic %{buildroot}%{_datadir}/%{name}

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_datadir}/*
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc

%changelog
* Sun May 24 2026 NiceOS Team <support@niceos.ru> - 1.7.3-1
- Upstream 1.7.3 is a patch release with crash and memory-safety fixes, bounds-check hardening, and small API additions.
- Upstream 1.7.3 — патч-релиз с исправлениями падений и ошибок безопасности памяти, усилением проверок границ и небольшими API-добавлениями.


* Mon Jan 12 2026 NiceOS Team <niceos@ncsgp.ru> - 1.7.2-1
- Initial build for NiceOS (Первая сборка для НАЙС.ОС)