File fonttools.spec of Package fonttools

#
# 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 http://bugs.opensuse.org/
#


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
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:        http://downloads.sourceforge.net/project/fonttools/%{version}/fonttools-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Suite of Tools and Libraries for Manipulating Fonts
License:        BSD-3-Clause
Group:          Productivity/Graphics/Vector Editors

%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
%setup -n fonttools-%{version}
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
sed -i 's:ttx.1:ttx.1.gz:' filelist.log

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

%changelog
openSUSE Build Service is sponsored by