]> git.pld-linux.org Git - SPECS.git/blob - ttmkfdir.spec
SPECS updated Sat 31 Jul 20:27:02 CEST 2021
[SPECS.git] / ttmkfdir.spec
1 Summary:        Tool for creating fonts.dir for TrueType fonts
2 Summary(pl.UTF-8):      Narzędzie do tworzenia plików fonts.dir dla fontów TrueType
3 Name:           ttmkfdir
4 Version:        3.0.9
5 Release:        2
6 Epoch:          1
7 License:        LGPL v2+
8 Group:          Applications/File
9 Source0:        http://ftp.debian.org//debian/pool/main/t/ttmkfdir/%{name}_%{version}.orig.tar.gz
10 # Source0-md5:  c22b8b7f8401fd924200c8e0e04a78f9
11 Source1:        %{name}2.1
12 Patch0:         %{name}-3.0.9-cpp.patch
13 Patch1:         %{name}-3.0.9-zlib.patch
14 Patch2:         %{name}-3.0.9-fix-freetype217.patch
15 Patch3:         %{name}-3.0.9-namespace.patch
16 Patch4:         %{name}-3.0.9-fix-crash.patch
17 Patch5:         %{name}-3.0.9-warnings.patch
18 Patch6:         %{name}-3.0.9-segfaults.patch
19 Patch7:         %{name}-3.0.9-encoding-dir.patch
20 Patch8:         %{name}-3.0.9-font-scale.patch
21 Patch9:         %{name}-3.0.9-bug434301.patch
22 BuildRequires:  flex
23 BuildRequires:  freetype-devel >= 2.0.1
24 BuildRequires:  libstdc++-devel
25 BuildRequires:  libtool
26 BuildRequires:  zlib-devel
27 Provides:       ttmkfdir2
28 Obsoletes:      ttmkfdir2
29 # our freetype1 < 1.3.1-4 (formerly freetype-1.x.x) contained old ttmkfdir
30 Conflicts:      freetype < 2.0.1
31 Conflicts:      freetype1 < 1.3.1-4
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 This program creates 'font.dir' files for TrueType fonts. These files
36 are required if you want to use TrueType fonts with X Window.
37
38 %description -l pl.UTF-8
39 Ten program tworzy pliki 'font.dir' dla fontów TrueType. Są one
40 potrzebne, aby móc korzystać z fontów TrueType w X Window.
41
42 %prep
43 %setup -q
44 %patch0 -p1
45 %patch1 -p1
46 %patch2 -p1
47 %patch3 -p1
48 %patch4 -p1
49 %patch5 -p1
50 %patch6 -p1
51 %patch7 -p1
52 %patch8 -p1
53 %patch9 -p1
54
55 %build
56 %{__make} \
57         CXX="%{__cxx}" \
58         DEBUG= \
59         OPTFLAGS="%{rpmcxxflags} %{rpmcppflags}" \
60         LDFLAGS='%{rpmldflags} $(FREETYPE_LIB) -lz'
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT%{_mandir}/man1
65
66 %{__make} install \
67         DESTDIR=$RPM_BUILD_ROOT
68
69 install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1/ttmkfdir.1
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files
75 %defattr(644,root,root,755)
76 %doc README
77 %attr(755,root,root) %{_bindir}/%{name}
78 %{_mandir}/man1/%{name}.1*
This page took 0.150476 seconds and 3 git commands to generate.