packaging: do not build if we are not in a X11 profile
[platform/upstream/libXfont.git] / packaging / libXfont.spec
1 Name:           libXfont
2 Version:        1.4.7
3 Release:        0
4 License:        MIT
5 Summary:        X font handling library for server and utilities
6 Url:            http://xorg.freedesktop.org/
7 Group:          Development/Libraries/C and C++
8
9 #Git-Clone:     git://anongit.freedesktop.org/xorg/lib/libXfont
10 #Git-Web:       http://cgit.freedesktop.org/xorg/lib/libXfont/
11 Source:         %{name}-%{version}.tar.bz2
12 Source1001:     libXfont.manifest
13 #git#BuildRequires:     autoconf >= 2.60, automake, libtool
14 BuildRequires:  pkgconfig
15 BuildRequires:  pkgconfig(fontenc)
16 BuildRequires:  pkgconfig(fontsproto)
17 BuildRequires:  pkgconfig(freetype2)
18 BuildRequires:  pkgconfig(xorg-macros) >= 1.10
19 BuildRequires:  pkgconfig(xproto)
20 BuildRequires:  pkgconfig(xtrans)
21 BuildRequires:  pkgconfig(zlib)
22 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
23
24 %if !%{with x}
25 ExclusiveArch:
26 %endif
27
28 %description
29 libXfont provides the core of the legacy X11 font system, handling
30 the index files (fonts.dir, fonts.alias, fonts.scale), the various
31 font file formats, and rasterizing them. It is used by the X servers,
32 the X Font Server (xfs), and some font utilities (bdftopcf for
33 instance), but should not be used by normal X11 clients. X11 clients
34 access fonts via either the new APIs in libXft, or the legacy APIs in
35 libX11.
36
37 %package devel
38 Summary:        Development files for the X font handling library
39 Group:          Development/Libraries/C and C++
40 Requires:       %{name} = %{version}
41
42 %description devel
43 libXfont provides the core of the legacy X11 font system, handling
44 the index files (fonts.dir, fonts.alias, fonts.scale), the various
45 font file formats, and rasterizing them. It is used by the X servers,
46 the X Font Server (xfs), and some font utilities (bdftopcf for
47 instance), but should not be used by normal X11 clients. X11 clients
48 access fonts via either the new APIs in libXft, or the legacy APIs in
49 libX11.
50
51 This package contains the development headers for the library found
52 in %{name}.
53
54 %prep
55 %setup -q
56 cp %{SOURCE1001} .
57
58 %build
59 %autogen --disable-static \
60            --enable-fc --enable-builtins --enable-pcfformat --enable-bdfformat --without-bzip2
61 make %{?_smp_mflags}
62
63 %install
64 %make_install
65
66 %post  -p /sbin/ldconfig
67
68 %postun -p /sbin/ldconfig
69
70 %files
71 %manifest %{name}.manifest
72 %license COPYING
73 %defattr(-,root,root)
74 %{_libdir}/libXfont.so.1*
75
76 %files devel
77 %manifest %{name}.manifest
78 %defattr(-,root,root)
79 %{_includedir}/X11/*
80 %{_libdir}/libXfont.so
81 %{_libdir}/pkgconfig/xfont.pc
82
83 %changelog