packaging: do not build if we are not in a X11 profile
[platform/upstream/fontsproto.git] / packaging / fontsproto.spec
1 Name:           fontsproto
2 Version:        2.1.2
3 Release:        1
4 License:        MIT
5 Summary:        X
6 Url:            http://www.x.org
7 Group:          Development/System
8 Source0:        %{name}-%{version}.tar.bz2
9 Source1001:     fontsproto.manifest
10
11 BuildRequires:  pkgconfig
12 BuildRequires:  pkgconfig(xorg-macros)
13
14 %if !%{with x}
15 ExclusiveArch:
16 %endif
17
18 %description
19 %{summary}.
20
21 %prep
22 %setup -q
23 cp %{SOURCE1001} .
24
25 %build
26 %configure --disable-static \
27              --libdir=%{_datadir} \
28              --without-xmlto
29
30 make %{?_smp_mflags}
31
32 %install
33 %make_install
34
35 %remove_docs
36
37
38 %files
39 %manifest %{name}.manifest
40 %license COPYING
41 %defattr(-,root,root,-)
42 %{_includedir}/X11/fonts/*.h
43 %{_datadir}/pkgconfig/*.pc