File fonttools.spec of Package fonttools
#
# spec file for package fonttools (Version 2.2)
#
# 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/
#
Name: fonttools
BuildRequires: python-devel python-numpy pyxml
License: BSD 3-Clause
Group: Productivity/Graphics/Vector Editors
%define pyver %(python -c 'import sys; print sys.version[:3]')
Requires: pyxml python-numpy python-xml python >= %pyver, python < %{pyver}.99
Version: 2.2
Release: 2
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.
%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
%files -f filelist.log
%defattr(-, root, root)
%doc LICENSE.txt README.txt Doc/
%changelog