File oto.spec of Package oto

#
# spec file for package oto (Version 0.4)
#
# 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           oto
License:        GPL v2 or later
Group:          System/I18n/Chinese
AutoReqProv:    on
Version:        0.4
Release:        369
Url:            http://sourceforge.net/projects/oto/
#Original source: http://prdownloads.sourceforge.net/oto/oto-0.4.tar.gz
Source0:        http://prdownloads.sourceforge.net/oto/oto-%{version}.tar.bz2
Patch0:         fix-implicit-declarations.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Open Type Organizer

%description
The 'Open Type Organizer' project provides programs to list and modify
tables in OpenType font files, specifically, their 'name' and 'cmap'
tables.  It can be used to translate 'name' and 'cmap' of OpenType font
in locale encodings to Unicode encoding so the font file can be used in
an environment which does not understand locale encodings.  The
translated tables are added to the font while keeping the original
tables intact.

Do you have a True Type font which does not work with Xft (e.g. with
KDE and Antialiasing)? Chances are, the font doesn't have a Unicode
'cmap'!  Open Type Organizer (oTo) will help to solve the problem.  It
will add Unicode 'name' and Unicode 'cmap' tables by translating the
original ones.	Your favorite ttf font can really work for you now.



Authors:
--------
    Yao Zhang <yaoz@users.sourceforge.net>

%prep
%setup0
%patch0 -p1

%build
rm -f config.cache
# update config.{guess,sub}
%{?suse_update_config}
export CFLAGS="$RPM_OPT_FLAGS" 
./configure --prefix=/usr \
            --mandir=%{_mandir} \
            --infodir=%{_infodir} \
            %{_target_cpu}-suse-linux
make 

%install
rm -rf $RPM_BUILD_ROOT;
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf $RPM_BUILD_ROOT;

%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
%{_bindir}/*
/usr/share/*

%changelog
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Sep 22 2005 mfabian@suse.de
- fix implicit declarations.
* Sun Jan 11 2004 adrian@suse.de
- build as user
* Thu Aug 01 2002 mfabian@suse.de
- update to version 0.4
* Thu Oct 11 2001 mfabian@suse.de
- new package: oto-0.3
openSUSE Build Service is sponsored by