From 643398d3f72725b060ceb5a778821f6dfd6911b4 Mon Sep 17 00:00:00 2001 From: Ercole 'ercolinux' Carpanetto Date: Fri, 5 Jan 2024 23:44:51 +0100 Subject: [PATCH] rebuilt [release 4.3-2mamba;Sun Apr 10 2011] --- README.md | 2 ++ hunspell-bg.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 hunspell-bg.spec diff --git a/README.md b/README.md index 0221924..4821a5c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # hunspell-bg +Bulgarian hunspell dictionary. + diff --git a/hunspell-bg.spec b/hunspell-bg.spec new file mode 100644 index 0000000..2a0a32b --- /dev/null +++ b/hunspell-bg.spec @@ -0,0 +1,60 @@ +Name: hunspell-bg +Version: 4.3 +Release: 2mamba +Summary: Bulgarian hunspell dictionary +Group: System/Internationalization +Vendor: openmamba +Distribution: openmamba +Packager: gil +URL: http://bgoffice.sourceforge.net/ +Source: http://downloads.sourceforge.net/project/bgoffice/OpenOffice.org%20Spell%20BG/%{version}/OOo-spell-bg-%{version}.zip +License: GPL, LGPL, MPL +Requires: hunspell +#BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Bulgarian hunspell dictionary. + +%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 +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +mkdir -p %{buildroot}%{_datadir}/myspell +cp -p *.dic *.aff %{buildroot}%{_datadir}/myspell/ + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_datadir}/myspell +%doc ChangeLog README.bulgarian + +%changelog +* Sun Apr 10 2011 Ercole 'ercolinux' Carpanetto 4.3-2mamba +- rebuilt + +* Sat Mar 19 2011 gil 4.3-1mamba +- package created by autospec