File jtools.spec of Package jtools
#
# spec file for package jtools (Version 1.0)
#
# 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: jtools
License: Other License(s), see package
Group: Productivity/Text/Utilities
#Provides:
#Requires:
Autoreqprov: on
Provides: locale(ja)
Version: 1.0
Release: 570
URL: http://www.oreilly.com/people/authors/lunde/j_tools.html
Source0: jtools.bz2
Patch0: jtools.suse.patch
Patch1: jtools.return.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Ken Lunde's Japanese Code Manipulation Tools
#Summary(ja):
#Obsoletes:
%description
This is Ken Lunde's suite of Japanese and CJKV code manipulation tools.
It consists of:
- CJKVConv.pl (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
Authors:
--------
Ken Lunde <lunde@Adobe.COM>
%prep
%setup0 -n jtools
%patch0 -p1
%patch1
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 cjkvconv.pl > README.cjkvconv
%build
CC=gcc
for i in jconv jcode jchar jgrep
do
${CC} $RPM_OPT_FLAGS -o $i $i.c
done
%install
mkdir -p $RPM_BUILD_ROOT/usr/bin
for i in jconv jcode jchar jgrep
do
install -m755 $i $RPM_BUILD_ROOT/usr/bin/$i
done
install -m755 ./cjkvconv.pl $RPM_BUILD_ROOT/usr/bin/cjkvconv
%clean
rm -rf $RPM_BUILD_ROOT
#%post -p /sbin/ldconfig
#%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHOR Copyright README*
/usr/bin/jconv
/usr/bin/jcode
/usr/bin/jchar
/usr/bin/jgrep
/usr/bin/cjkvconv
%changelog -n jtools
* Mon May 22 2006 - schwab@suse.de
- Use RPM_OPT_FLAGS.
- Don't strip binaries.
* Tue Feb 28 2006 - mfabian@suse.de
- add "Provides: locale(ja)".
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Oct 05 2005 - dmueller@suse.de
- add norootforbuild
* Mon Sep 11 2000 - mfabian@suse.de
- remove %%{?suse_update_config}, it is not needed and makes the
build fail on 6.4K-i386
* Wed Aug 09 2000 - mfabian@suse.de
- new package: jtools-1.0