File engdic.spec of Package engdic
#
# spec file for package engdic (Version 0.2)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: engdic
License: distributable
Group: Productivity/Office/Dictionary
BuildRequires: dos2unix
Autoreqprov: on
Summary: Little Korean <-> English Dictionary
Version: 0.2
Release: 1
Url: http://www.freshports.org/korean/engdic/
Source0: ftp://ftp.holywar.net/pub/engdic/engdic-0.2.tar.bz2
Source1: edic
Patch0: encoding-bugs.patch
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Little Korean <-> English dictionary.
Authors:
--------
Oh jun-sun <hollywar@holywar.net>
%prep
%setup
gunzip data/*.gz
%patch0 -p 1
%build
for i in data/*.dic
do
echo $i
dos2unix $i
iconv -f euc-kr -t utf-8 < $i > $i.tmp
mv $i.tmp $i
done
%install
mkdir -p %{buildroot}%{_prefix}/{bin,share/engdic}
install -m 644 data/*.dic %{buildroot}%{_prefix}/share/engdic
install -m 755 $RPM_SOURCE_DIR/edic %{buildroot}%{_prefix}/bin
ln -s edic %{buildroot}%{_prefix}/bin/engdic
%files
%defattr(-,root,root)
%{_prefix}/share/engdic
%{_prefix}/bin/edic
%{_prefix}/bin/engdic
%changelog -n engdic
* Tue Jul 18 2006 - mfabian@suse.de
- update to 0.2 and convert to UTF-8.
keep script from 0.1 version as an additional source.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Feb 23 2004 - hmacht@suse.de
- added option # norootforbuild in specfile
* Fri Aug 30 2002 - ro@suse.de
- corrected changes file
* Wed Jan 03 2001 - violiet@susekorea.net
- NEW package.