File fonttools.spec of Package fonttools

#
# spec file for package fonttools (Version 2.2)
#
# Copyright (c) 2008 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:           fonttools
BuildRequires:  python-devel python-numeric pyxml
License:        BSD 3-Clause
Group:          Productivity/Graphics/Vector Editors
AutoReqProv:    on
%define pyver %(python -c 'import sys; print sys.version[:3]')
Requires:       python-numeric pyxml python-xml python >= %pyver, python < %{pyver}.99
Version:        2.2
Release:        1
Url:            http://sourceforge.net/projects/fonttools/
# CVS:
# cvs -d:pserver:anonymous@fonttools.cvs.sourceforge.net:/cvsroot/fonttools login
# cvs -z3 -d:pserver:anonymous@fonttools.cvs.sourceforge.net:/cvsroot/fonttools co fonttools
Source0:        fonttools-2.2.tar.bz2
Patch0:         fix-build-with-python-2.6.patch
Patch1:         fix-installation-of-man-page.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Suite of Tools and Libraries for Manipulating Fonts

%description
FontTools is a suite of tools and libraries for manipulating fonts
written in Python.

It currently reads and writes TrueType font files, reads PostScript
Type 1 fonts, and more. It contains two command line programs to
convert TrueType fonts to an XML based format (called TTX) and back.



Authors:
--------
    Just van Rossum <just@letterror.com>

%prep
%setup0 -n fonttools-%{version}
%patch0 -p0
%patch1 -p0
find . -name CVS -type d | xargs rm -rf
gzip --best Doc/ttx.1
chmod 644 LICENSE.txt

%build
export CFLAGS="$RPM_OPT_FLAGS" 
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=filelist.log

%clean
rm -rf $RPM_BUILD_ROOT

%files -f filelist.log
%defattr(-, root, root)
%doc LICENSE.txt README.txt Doc/

%changelog
* Tue Sep 09 2008 mfabian@suse.de
- update to 2.2.
  Extract from Changelog.txt:
  • updated unicode module to unicode 5.1.0
  • cmap format 1 support, contributed by rroberts
  • fixed problem with private VTT table, found by Peter Bilak
  • improve performance with CJK fonts
- fix build in Factory.
* Mon Apr 23 2007 mfabian@suse.de
- Bugzilla #262326: update to current CVS version because
  the version we currently have (2.0b1) is useless for many
  recent fonts.
* Tue Feb 28 2006 jmatejek@suse.cz
- updated to reflect python changes due to #149809
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Oct 05 2005 dmueller@suse.de
- add norootforbuild
* Fri Aug 29 2003 mcihar@suse.cz
- require same python version as it was built with
* Thu Jun 26 2003 mcihar@suse.cz
- use --record-rpm (AKA better fix for fix "file not owned by any
  package")
* Sat Jun 14 2003 mfabian@suse.de
- fix "file not owned by any package".
* Mon Mar 24 2003 mfabian@suse.de
- new package: fonttools, version 2.0b1
openSUSE Build Service is sponsored by