File fonttools.spec of Package fonttools.1176

# spec file for package fonttools
# Copyright (c) 2014 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

Name:           fonttools
BuildRequires:  python-devel
BuildRequires:  python-numpy
BuildRequires:  pyxml
#%define pyver %(python -c 'import sys; print sys.version[:3]')
Requires:       python-numpy
Requires:       python-xml
Requires:       pyxml
Version:        2.4
Release:        0
# CVS:
# cvs login
# cvs -z3 co fonttools
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Suite of Tools and Libraries for Manipulating Fonts
License:        BSD-3-Clause
Group:          Productivity/Graphics/Vector Editors

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.

%setup -n fonttools-%{version}
chmod 644 LICENSE.txt

python build

python install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=filelist.log
sed -i 's:ttx.1:ttx.1.gz:' filelist.log

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

openSUSE Build Service is sponsored by