File hcode.spec of Package hcode
#
# spec file for package hcode (Version 2.1)
#
# 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: hcode
License: GPL
Group: System/I18n/Korean
Autoreqprov: on
Summary: Hangul Code Conversion Utilities (hcode, hdcode)
Version: 2.1
Release: 524
Source0: hcode2.1-mailpatch3.tar.gz
Source1: hdcode.c
Patch1: hcode2.1-mailpatch3-ksc5601.patch
Patch2: fix-implicit-declarations.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Hangul code conversion utilities (hcode, hdcode).
Authors:
--------
Jungshik Shin <jshin@pantheon.yale.edu>
Sang-yong Suh <sysuh@kigam.re.kr>
%prep
%setup -q -n hcode2.1-mailpatch3
cp -f %{SOURCE1} .
%patch1 -p1 -b .ksc5601
%patch2 -p1
%build
make CFLAGS="$RPM_OPT_FLAGS"
gcc $RPM_OPT_FLAGS -D_MAIN -DCLEAN_QP -o hdcode hdcode.c
%install
mkdir -p %{buildroot}%{_prefix}/bin
install -m 755 hcode %{buildroot}%{_prefix}/bin/hcode
install -m 755 hdcode %{buildroot}%{_prefix}/bin/hdcode
%clean
rm -rf %{buildroot}
%files -n hcode
%defattr(-,root,root,-)
%doc CHANGES README README.elm README.mailpatch README.pine
%{_prefix}/bin/hcode
%{_prefix}/bin/hdcode
%changelog -n hcode
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 20 2006 - schwab@suse.de
- Don't strip binaries.
* Wed Nov 02 2005 - dmueller@suse.de
- don't build as root
* Thu Sep 22 2005 - mfabian@suse.de
- fix implicit declarations
* Sat May 12 2001 - schwab@suse.de
- Fix missing declarations.
* Wed Jan 10 2001 - violiet@susekorea.net
- some spec-file cleanup
* Tue Nov 28 2000 - violiet@susekorea.net
- initial RPM release for SuSE Linux.