File hcode.spec of Package hcode

# spec file for package hcode (Version 2.1)
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           hcode
License:        GPL v2 or later
Group:          System/I18n/Korean
AutoReqProv:    on
Summary:        Hangul Code Conversion Utilities (hcode, hdcode)
Version:        2.1
Release:        655
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

Hangul code conversion utilities (hcode, hdcode).

    Jungshik Shin <>
    Sang-yong Suh <>

%setup -q -n hcode2.1-mailpatch3
cp -f %{SOURCE1} .
%patch1 -p1 -b .ksc5601
%patch2 -p1

gcc $RPM_OPT_FLAGS -D_MAIN -DCLEAN_QP -o hdcode  hdcode.c

mkdir -p %{buildroot}%{_prefix}/bin
install -m 755 hcode  %{buildroot}%{_prefix}/bin/hcode
install -m 755 hdcode %{buildroot}%{_prefix}/bin/hdcode

rm -rf %{buildroot}

%files -n hcode

* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Fri Jan 20 2006
- Don't strip binaries.
* Wed Nov 02 2005
- don't build as root
* Thu Sep 22 2005
- fix implicit declarations
* Sat May 12 2001
- Fix missing declarations.
* Wed Jan 10 2001
- some spec-file cleanup
* Tue Nov 28 2000
- initial RPM release for SuSE Linux.
openSUSE Build Service is sponsored by