packaging: do not build if we are not in a X11 profile
[platform/upstream/libXdmcp.git] / packaging / libXdmcp.spec
1 Name:           libXdmcp
2 Version:        1.1.1
3 Release:        1
4 License:        MIT
5 Summary:        X Display Manager Control Protocol library
6 Url:            http://www.x.org
7 Group:          Graphics/X Window System
8
9 Source:         %{name}-%{version}.tar.bz2
10 Source1001:     libXdmcp.manifest
11
12 BuildRequires:  pkgconfig(xorg-macros)
13 BuildRequires:  pkgconfig(xproto)
14
15 %if !%{with x}
16 ExclusiveArch:
17 %endif
18
19 %description
20 X Display Manager Control Protocol library.
21
22 %package devel
23 Summary:        Development files for %{name}
24 Group:          Development/Libraries
25 Requires:       %{name} = %{version}
26
27 %description devel
28 libXdmcp development package.
29
30 %prep
31 %setup -q
32 cp %{SOURCE1001} .
33
34 %build
35 %reconfigure --disable-static 
36 make %{?_smp_mflags}
37
38 %install
39 %make_install
40
41 %remove_docs
42
43 %post -p /sbin/ldconfig
44
45 %postun -p /sbin/ldconfig
46
47 %files
48 %manifest %{name}.manifest
49 %defattr(-,root,root,-)
50 %license COPYING 
51 %{_libdir}/libXdmcp.so.6
52 %{_libdir}/libXdmcp.so.6.0.0
53
54 %files devel
55 %manifest %{name}.manifest
56 %defattr(-,root,root,-)
57 %{_includedir}/X11/Xdmcp.h
58 %{_libdir}/libXdmcp.so
59 %{_libdir}/pkgconfig/xdmcp.pc