f6ccf9
Name: mythes-bg
f6ccf9
Summary: Bulgarian thesaurus
f6ccf9
Version: 4.3
a2688b
Release: 6%{?dist}
f6ccf9
Source: http://downloads.sourceforge.net/sourceforge/bgoffice/OOo-thes-bg-%{version}.zip
f6ccf9
Requires: mythes
f6ccf9
Group: Applications/Text
f6ccf9
URL: http://bgoffice.sourceforge.net/
f6ccf9
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f6ccf9
BuildRequires: unzip
f6ccf9
License: GPLv2+ or LGPLv2+ or MPLv1.1
f6ccf9
BuildArch: noarch
f6ccf9
f6ccf9
%description
f6ccf9
Bulgarian thesaurus.
f6ccf9
f6ccf9
%prep
f6ccf9
%setup -q -n OOo-thes-bg-%{version}
f6ccf9
f6ccf9
%build
f6ccf9
for i in ChangeLog Copyright GPL-2.0.txt LGPL-2.1.txt MPL-1.1.txt README.bulgarian; do
f6ccf9
  if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
f6ccf9
    iconv -f ISO-8859-2 -t UTF-8 $i > $i.new
f6ccf9
    touch -r $i $i.new
f6ccf9
    mv -f $i.new $i
f6ccf9
  fi
f6ccf9
  tr -d '\r' < $i > $i.new
f6ccf9
  touch -r $i $i.new
f6ccf9
  mv -f $i.new $i
f6ccf9
done
f6ccf9
echo "UTF-8" > th_bg_BG.dat.new
f6ccf9
tail -n +2 th_bg_BG.dat | iconv -f WINDOWS-1251 -t UTF-8 | tr -d '\r' >> th_bg_BG.dat.new
f6ccf9
mv th_bg_BG.dat.new th_bg_BG.dat
f6ccf9
echo "UTF-8" > th_bg_BG.idx.new
f6ccf9
tail -n +2 th_bg_BG.idx | iconv -f WINDOWS-1251 -t UTF-8 | tr -d '\r' >> th_bg_BG.idx.new
f6ccf9
mv th_bg_BG.idx.new th_bg_BG.idx
f6ccf9
f6ccf9
%install
f6ccf9
rm -rf $RPM_BUILD_ROOT
f6ccf9
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes
f6ccf9
cp -p th_bg_BG.dat $RPM_BUILD_ROOT/%{_datadir}/mythes/th_bg_BG_v2.dat
f6ccf9
cp -p th_bg_BG.idx $RPM_BUILD_ROOT/%{_datadir}/mythes/th_bg_BG_v2.idx
f6ccf9
f6ccf9
%clean
f6ccf9
rm -rf $RPM_BUILD_ROOT
f6ccf9
f6ccf9
%files
f6ccf9
%defattr(-,root,root,-)
f6ccf9
%doc ChangeLog Copyright GPL-2.0.txt LGPL-2.1.txt MPL-1.1.txt README.bulgarian
f6ccf9
%{_datadir}/mythes/*
f6ccf9
f6ccf9
%changelog
a2688b
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 4.3-6
a2688b
- Mass rebuild 2013-12-27
a2688b
f6ccf9
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-5
f6ccf9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f6ccf9
f6ccf9
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-4
f6ccf9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f6ccf9
f6ccf9
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-3
f6ccf9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f6ccf9
f6ccf9
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-2
f6ccf9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f6ccf9
f6ccf9
* Fri Jun 18 2010 Caolán McNamara <caolanm@redhat.com> - 4.3-1
f6ccf9
- latest version
f6ccf9
f6ccf9
* Sat Apr 17 2010 Caolán McNamara <caolanm@redhat.com> - 4.2-1
f6ccf9
- latest version
f6ccf9
f6ccf9
* Sat Apr 03 2010 Caolán McNamara <caolanm@redhat.com> - 4.1-4
f6ccf9
- mythes now owns /usr/share/mythes
f6ccf9
f6ccf9
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-3
f6ccf9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f6ccf9
f6ccf9
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-2
f6ccf9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f6ccf9
f6ccf9
* Tue Feb 03 2009 Caolán McNamara <caolanm@redhat.com> - 4.1-1
f6ccf9
- initial version