From c1c76e2b006c7c468fd61d2a3ef11c0aee50b2f5 Mon Sep 17 00:00:00 2001 From: gil Date: Sat, 6 Jan 2024 07:29:09 +0100 Subject: [PATCH] rebuilt package created by autospec [release 4.3-1mamba;Sat Mar 19 2011] --- README.md | 2 ++ mythes-bg.spec | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 mythes-bg.spec diff --git a/README.md b/README.md index 5b144f7..db50bb4 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # mythes-bg +Bulgarian thesaurus. + diff --git a/mythes-bg.spec b/mythes-bg.spec new file mode 100644 index 0000000..6c896f3 --- /dev/null +++ b/mythes-bg.spec @@ -0,0 +1,62 @@ +Name: mythes-bg +Version: 4.3 +Release: 2mamba +Summary: Bulgarian thesaurus +Group: System/Internationalization +Vendor: openmamba +Distribution: openmamba +Packager: gil +URL: http://bgoffice.sourceforge.net/ +Source: http://downloads.sourceforge.net/project/bgoffice/OpenOffice.org%20Thesaurus%20BG/%{version}/OOo-thes-bg-%{version}.zip +License: GPL, LGPL, MPL +BuildRequires: unzip +Requires: libmythes +#BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Bulgarian thesaurus. + +%prep +%setup -q -n OOo-thes-bg-%{version} + +%build + +for i in ChangeLog Copyright GPL-2.0.txt LGPL-2.1.txt MPL-1.1.txt README.bulgarian; 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 + +echo "UTF-8" > th_bg_BG.dat.new +tail -n +2 th_bg_BG.dat | iconv -f WINDOWS-1251 -t UTF-8 | tr -d '\r' >> th_bg_BG.dat.new +mv th_bg_BG.dat.new th_bg_BG.dat +echo "UTF-8" > th_bg_BG.idx.new +tail -n +2 th_bg_BG.idx | iconv -f WINDOWS-1251 -t UTF-8 | tr -d '\r' >> th_bg_BG.idx.new +mv th_bg_BG.idx.new th_bg_BG.idx + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +mkdir -p %{buildroot}%{_datadir}/mythes +cp -p th_bg_BG.dat %{buildroot}%{_datadir}/mythes/th_bg_BG_v2.dat +cp -p th_bg_BG.idx %{buildroot}%{_datadir}/mythes/th_bg_BG_v2.idx + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_datadir}/mythes +%doc ChangeLog Copyright GPL-2.0.txt LGPL-2.1.txt MPL-1.1.txt 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