Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37046131
en ru br
ALT Linux repos
S:4.3-alt2_27

Group :: Text tools
RPM: hunspell-bg

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Group: Text tools
# BEGIN SourceDeps(oneline):
BuildRequires: unzip
# END SourceDeps(oneline)
%define fedora 37
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif

Name: hunspell-bg
Summary: Bulgarian hunspell dictionaries
Version: 4.3
Release: alt2_27
Source: http://downloads.sourceforge.net/bgoffice/OOo-spell-bg-%{version}.zip
URL: http://bgoffice.sourceforge.net/
License: GPL-2.0-or-later OR LGPL-2.1-or-later OR MPL-1.1
BuildArch: noarch
Source44: import.info


%description
Bulgarian hunspell dictionaries.

%prep
%setup -q -n OOo-spell-bg-%{version}


%build
for i in README.bulgarian GPL-2.0.txt MPL-1.1.txt ChangeLog Copyright LGPL-2.1.txt; do
 if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
   iconv -f ISO-8859-2 -t UTF-8 $i > $i.new
   touch -r $i $i.new
   mv -f $i.new $i
 fi
 tr -d '\r' < $i > $i.new
 touch -r $i $i.new
 mv -f $i.new $i
done

iconv -f WINDOWS-1251 -t UTF-8 bg_BG.dic > bg_BG.dic.new
mv -f bg_BG.dic.new bg_BG.dic
echo "SET UTF-8" > bg_BG.aff.new
tail -n +2 bg_BG.aff | iconv -f WINDOWS-1251 -t UTF-8 | tr -d '\r' >> bg_BG.aff.new
mv bg_BG.aff.new bg_BG.aff

%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}


%files
%doc ChangeLog Copyright README.bulgarian
%doc --no-dereference GPL-2.0.txt LGPL-2.1.txt MPL-1.1.txt
%{_datadir}/%{dict_dirname}/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin