summaryrefslogtreecommitdiff
path: root/packaging/xorg-x11-xfonts-utils.spec
blob: 9e95455b39e5ca02ba479adae00245ef9497e8bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Summary: X Window System font utility programs
Name: xorg-x11-xfonts-utils
Version: 7.5
Release: 4
License: MIT/X11
Group: User Interface/X
URL: http://www.x.org
Source: %{name}-%{version}.tar.gz

BuildRequires: pkgconfig(xorg-macros)
BuildRequires: pkgconfig(xfont)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xproto)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(fontenc)

%define DEF_SUBDIRS bdftopcf mkfontdir mkfontscale font-util fonttosfnt

Provides: %{DEF_SUBDIRS}

%description
xfonts-utils provides a set of utility programs shipped with the X Window
System that are needed for font management.
.
The programs in this package include:
 - bdftopcf, which converts BDF fonts to PCF fonts;
 - bdftruncate and ucs2any, tools to generate fonts with various encodings
   from ISO 10646-encoded fonts
 - mkfontdir, a program to generate fonts.dir files;
 - mkfontscale, a program to generate fonts.scale files;
 - fonttosfnt, a program to wrap bitmap fonts in a sfnt (TrueType) wrapper.

%prep
%setup -q

%build
# Build all apps
{
    for app in %{DEF_SUBDIRS}; do
        pushd $app
        %configure \
            --with-mapdir=%{_prefix}/share/fonts/X11/util \
            CPPFLAGS="-D_GNU_SOURCE"
	make
        popd
    done
}

%install
rm -rf $RPM_BUILD_ROOT
# Install all apps
{
   for app in %{DEF_SUBDIRS} ; do
      pushd $app
      make install DESTDIR=$RPM_BUILD_ROOT
      popd
   done
}

%remove_docs

%clean
rm -rf $RPM_BUILD_ROOT

%files
%{_bindir}/*
%{_libdir}/pkgconfig/fontutil.pc
%{_prefix}/share/aclocal/fontutil.m4
%{_prefix}/share/fonts/X11/util/*