File jtools.spec of Package jtools

# spec file for package jtools (Version 1.0)
# 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:           jtools
License:        Distributable if kept free
Group:          Productivity/Text/Utilities
AutoReqProv:    on
Provides:       locale(ja)
Version:        1.0
Release:        693
Source0:        jtools.bz2
Patch0:         jtools.suse.patch
Patch1:         jtools.return.patch
Patch2:         jtools.getline.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Ken Lunde's Japanese Code Manipulation Tools

This is Ken Lunde's suite of Japanese and CJKV code manipulation tools.
It consists of:

- (a cross-locale CJKV code converter)

- jconv, a general-purpose Japanese code conversion tool (JIS,
   Shift-JIS, EUC)

- jcode, a Japanese code inspection tool (JIS, Shift-JIS, EUC) that
   reads the input file and creates an output file containing all of
   the characters within the input file along with their electronic
   codes in octal, decimal, or hexadecimal notation (the default, if
   none specified, is hexadecimal)

- jchar, a generator for various Japanese character sets (JIS,
   Shift-JIS, EUC)

- jgrep, a simplified GREP-like utility that recognizes two-byte
character sequences in Japanese Shift-JIS or EUC code

    Ken Lunde <lunde@Adobe.COM>

%setup0 -n jtools
%patch0 -p1
head -n 104 jconv.c > README.jconv
head -n 46 jchar.c > README.jchar
head -n 96 jcode.c > README.jcode
head -n 121 jgrep.c > README.jgrep
head -n 10 > README.cjkvconv

for i in jconv jcode jchar jgrep
    ${CC} $RPM_OPT_FLAGS -o $i $i.c

mkdir -p $RPM_BUILD_ROOT/usr/bin
for i in jconv jcode jchar jgrep
    install -m755 $i $RPM_BUILD_ROOT/usr/bin/$i
install -m755 ./ $RPM_BUILD_ROOT/usr/bin/cjkvconv

#%post -p /sbin/ldconfig
#%postun -p /sbin/ldconfig

%defattr(-, root, root)
%doc AUTHOR Copyright README*

* Sun Jun 07 2009
- rename getline to my_getline to avoid conflict with function
  from glibc
* Mon May 22 2006
- Don't strip binaries.
* Tue Feb 28 2006
- add "Provides: locale(ja)".
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Wed Oct 05 2005
- add norootforbuild
* Mon Sep 11 2000
- remove %%{?suse_update_config}, it is not needed and makes the
  build fail on 6.4K-i386
* Wed Aug 09 2000
- new package: jtools-1.0