]>
Commit | Line | Data |
---|---|---|
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 | |
3 | Name: fonttools | |
4 | Version: 2.4 | |
5 | Release: 2 | |
6 | License: BSD | |
7 | Group: Development/Tools | |
8 | Source0: http://downloads.sourceforge.net/fonttools/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 41b2d2be48214d2af848e04fded54689 | |
10 | URL: http://sourceforge.net/projects/fonttools/ | |
11 | BuildRequires: python-devel | |
12 | BuildRequires: python-numpy | |
13 | BuildRequires: rpmbuild(macros) >= 1.710 | |
14 | BuildRequires: sed >= 4.0 | |
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 | ||
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 | ||
31 | %prep | |
32 | %setup -q | |
33 | ||
34 | %{__sed} -i.nobang '1 d' Lib/fontTools/ttx.py | |
35 | chmod a-x LICENSE.txt | |
36 | ||
37 | %build | |
38 | CFLAGS="%{rpmcflags} %{rpmcppflags}" \ | |
39 | %py_build | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %py_install \ | |
45 | -O1 \ | |
46 | --skip-build \ | |
47 | --root $RPM_BUILD_ROOT | |
48 | ||
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 | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc LICENSE.txt Doc/{ChangeLog,changes.txt,documentation.html} | |
59 | %attr(755,root,root) %{_bindir}/ttx | |
60 | %{py_sitedir}/FontTools.pth | |
61 | %dir %{py_sitedir}/FontTools | |
62 | %{py_sitedir}/FontTools/*.py[co] | |
63 | %dir %{py_sitedir}/FontTools/fontTools | |
64 | %{py_sitedir}/FontTools/fontTools/*.py[co] | |
65 | %{py_sitedir}/FontTools/fontTools/encodings | |
66 | %dir %{py_sitedir}/FontTools/fontTools/misc | |
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 | |
72 | %{_mandir}/man1/ttx.1* |