]>
Commit | Line | Data |
---|---|---|
baf8eefc JB |
1 | Summary: A tool to convert TrueType/OpenType fonts to XML and back |
2 | Summary(pl.UTF-8): Narzędzie do konwersji fontów TrueType/OpenType do/z XML-a | |
77da64f4 AM |
3 | Name: fonttools |
4 | Version: 2.3 | |
5 | Release: 1 | |
6 | License: BSD | |
7 | Group: Development/Tools | |
77da64f4 AM |
8 | Source0: http://downloads.sourceforge.net/fonttools/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 502cdf6662e1d075f1902fbd995eaace | |
baf8eefc | 10 | URL: http://sourceforge.net/projects/fonttools/ |
77da64f4 AM |
11 | BuildRequires: python-devel |
12 | BuildRequires: python-numpy | |
baf8eefc JB |
13 | BuildRequires: rpmbuild(macros) >= 1.219 |
14 | BuildRequires: sed >= 4.0 | |
77da64f4 AM |
15 | Requires: python-numpy |
16 | Provides: ttx = %{version}-%{release} | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | TTX/FontTools is a tool for manipulating TrueType and OpenType fonts. | |
21 | It is written in Python and has a BSD-style, open-source license. TTX | |
22 | can dump TrueType and OpenType fonts to an XML-based text format and | |
23 | vice versa. | |
24 | ||
baf8eefc JB |
25 | %description -l pl.UTF-8 |
26 | TTX/FontTools to narzędzie do operacji na fontach TrueType i OpenType. | |
27 | Zostało napisane w Pythonie i ma otwartą licencję w stylu BSD. TTX | |
28 | potrafi wykonywać zrzuty fontów TrueType i OpenType do formatu | |
29 | tekstowego opartego na XML-u oraz dokonać operacji odwrotnej. | |
30 | ||
77da64f4 AM |
31 | %prep |
32 | %setup -q | |
33 | ||
baf8eefc | 34 | %{__sed} -i.nobang '1 d' Lib/fontTools/ttx.py |
77da64f4 AM |
35 | chmod a-x LICENSE.txt |
36 | ||
37 | %build | |
baf8eefc JB |
38 | CFLAGS="%{rpmcflags} %{rpmcppflags}" \ |
39 | %{__python} setup.py build | |
77da64f4 AM |
40 | |
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
baf8eefc | 43 | |
77da64f4 AM |
44 | %{__python} setup.py install \ |
45 | -O1 \ | |
46 | --skip-build \ | |
47 | --root $RPM_BUILD_ROOT | |
48 | ||
baf8eefc JB |
49 | %{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/FontTools/fontTools/ttLib/test |
50 | chmod 755 $RPM_BUILD_ROOT%{py_sitedir}/FontTools/fontTools/misc/eexecOp.so | |
51 | %py_postclean | |
77da64f4 AM |
52 | |
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
baf8eefc JB |
58 | %doc LICENSE.txt Doc/{ChangeLog,changes.txt,documentation.html} |
59 | %attr(755,root,root) %{_bindir}/ttx | |
77da64f4 AM |
60 | %{py_sitedir}/FontTools.pth |
61 | %dir %{py_sitedir}/FontTools | |
baf8eefc | 62 | %{py_sitedir}/FontTools/*.py[co] |
77da64f4 | 63 | %dir %{py_sitedir}/FontTools/fontTools |
baf8eefc JB |
64 | %{py_sitedir}/FontTools/fontTools/*.py[co] |
65 | %{py_sitedir}/FontTools/fontTools/encodings | |
77da64f4 | 66 | %dir %{py_sitedir}/FontTools/fontTools/misc |
baf8eefc JB |
67 | %{py_sitedir}/FontTools/fontTools/misc/*.py[co] |
68 | %attr(755,root,root) %{py_sitedir}/FontTools/fontTools/misc/eexecOp.so | |
69 | %{py_sitedir}/FontTools/fontTools/pens | |
70 | %{py_sitedir}/FontTools/fontTools/ttLib | |
71 | %{py_sitedir}/FontTools/fonttools-%{version}-py*.egg-info | |
77da64f4 | 72 | %{_mandir}/man1/ttx.1* |