]> git.pld-linux.org Git - SPECS.git/blob - ttf2pt1.spec
SPECS updated Sun 1 Aug 15:50:02 CEST 2021
[SPECS.git] / ttf2pt1.spec
1 Summary:        TrueType to Adobe Type 1 font converter
2 Summary(pl.UTF-8):      Konwerter czcionek TrueType do Type1
3 Name:           ttf2pt1
4 Version:        3.4.4
5 Release:        2
6 License:        Distributable
7 Group:          Applications/Printing
8 Source0:        http://dl.sourceforge.net/ttf2pt1/%{name}-%{version}.tgz
9 # Source0-md5:  cb143c07cc83167875ca09ea720d4932
10 Patch0:         %{name}-am.patch
11 Patch1:         %{name}-DESTDIR.patch
12 Patch2:         %{name}-ft2build_h.patch
13 Patch3:         %{name}-sed.patch
14 URL:            http://ttf2pt1.sourceforge.net/
15 BuildRequires:  freetype-devel >= 2.0.4
16 Requires:       freetype > 2.0.4
17 Requires:       t1utils
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 TrueType Font to Adobe Type 1 font converter
22  - By Mark Heath <mheath@netspace.net.au>
23  - Based on ttf2pfa by Andrew Weeks <ccsaw@bath.ac.uk>
24  - With help from Frank M. Siegert <fms@this.net>
25
26 %description -l pl.UTF-8
27 Konwerter fontów TrueType do Type1 autorstwa Marka Heatha
28 <mheath@netspace.net.au>, oparty o ttf2pfa autorstwa Andrew Weeksa
29 <ccsaw@bath.ac.uk>, z pomocą Franka M. Siegerta <fms@this.net>.
30
31 %prep
32 %setup -q
33 %patch0 -p0
34 %patch1 -p1
35 %patch2 -p1
36 %patch3 -p1
37
38 %build
39
40 %{__make} ttf2pt1 docs mans \
41         CFLAGS_EXTT1ASM='-DEXTERNAL_T1ASM' \
42         CC="%{__cc}" \
43         CFLAGS_SYS='%{rpmcflags} -D_GNU_SOURCE' \
44         LIBS_SYS='-lm' \
45         CFLAGS_FT='-DUSE_FREETYPE -I/usr/include/freetype2' \
46         CFLAGS_PREF='-DPREFER_FREETYPE' \
47         LIBS_FT='-L/usr/lib -lfreetype' \
48         INSTDIR=%{_prefix}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT \
55         INSTDIR=%{_prefix} \
56         MANDIR=%{_mandir} \
57         SHAREDIR=%{_datadir}/ttf2pt1 \
58         LIBXDIR=%{_libdir}/ttf2pt1
59
60 # clean up the mess
61 rm -rf $RPM_BUILD_ROOT%{_datadir}/ttf2pt1/{app,other,scripts,[CFR]*}
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %doc CHANGES.html COPYRIGHT FONTS.html README.html
69 %attr(755,root,root) %{_bindir}/ttf2pt1*
70 %attr(755,root,root) %{_libdir}/ttf2pt1
71 %{_datadir}/ttf2pt1
72 %{_mandir}/man1/*
This page took 1.454368 seconds and 3 git commands to generate.