]> git.pld-linux.org Git - packages/fonttools.git/blob - fonttools.spec
- initial; from fc
[packages/fonttools.git] / fonttools.spec
1 Summary:        A tool to convert True/OpenType fonts to XML and back
2 Name:           fonttools
3 Version:        2.3
4 Release:        1
5 License:        BSD
6 Group:          Development/Tools
7 URL:            http://sourceforge.net/projects/fonttools/
8 Source0:        http://downloads.sourceforge.net/fonttools/%{name}-%{version}.tar.gz
9 # Source0-md5:  502cdf6662e1d075f1902fbd995eaace
10 BuildRequires:  python-devel
11 BuildRequires:  python-numpy
12 Requires:       python-numpy
13 Provides:       ttx = %{version}-%{release}
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 TTX/FontTools is a tool for manipulating TrueType and OpenType fonts.
18 It is written in Python and has a BSD-style, open-source license. TTX
19 can dump TrueType and OpenType fonts to an XML-based text format and
20 vice versa.
21
22 %prep
23 %setup -q
24
25 sed -i.nobang '1 d' Lib/fontTools/ttx.py
26 chmod a-x LICENSE.txt
27
28 %build
29 CFLAGS="%{rpmcflags} %{rpmcppflags}" %{__python} setup.py build
30
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 %{__python} setup.py install \
35         -O1 \
36         --skip-build \
37         --root $RPM_BUILD_ROOT
38
39 rm -rf $RPM_BUILD_ROOT%{py_sitedir}/FontTools/fontTools/ttLib/test
40 chmod 0755 $RPM_BUILD_ROOT%{py_sitedir}/FontTools/fontTools/misc/eexecOp.so
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %files
46 %defattr(644,root,root,755)
47 %doc LICENSE.txt
48 %doc Doc/ChangeLog Doc/changes.txt Doc/documentation.html
49 %{py_sitedir}/FontTools.pth
50 %dir %{py_sitedir}/FontTools
51 %dir %{py_sitedir}/FontTools/fontTools
52 %dir %{py_sitedir}/FontTools/fontTools/encodings
53 %dir %{py_sitedir}/FontTools/fontTools/misc
54 %dir %{py_sitedir}/FontTools/fontTools/pens
55 %dir %{py_sitedir}/FontTools/fontTools/ttLib
56 %dir %{py_sitedir}/FontTools/fontTools/ttLib/tables
57 %{py_sitedir}/FontTools/*.py*
58 %{py_sitedir}/FontTools/fontTools/*.py*
59 %{py_sitedir}/FontTools/fontTools/*/*.py*
60 %{py_sitedir}/FontTools/fontTools/*/*/*.py*
61 %{py_sitedir}/FontTools/fontTools/misc/eexecOp.so
62 %{py_sitedir}/FontTools/fonttools-%{version}-py?.?.egg-info
63 %attr(755,root,root) %{_bindir}/ttx
64 %{_mandir}/man1/ttx.1*
This page took 0.110985 seconds and 4 git commands to generate.