add packaging
[platform/upstream/libICE.git] / packaging / libICE.spec
1 Name:           libICE
2 Version:        1.0.8
3 Release:        0
4 License:        MIT
5 Summary:        X11 Inter-Client Exchange Library
6 Url:            http://xorg.freedesktop.org/
7 Group:          Development/Libraries/C and C++
8
9 Source:         %{name}-%{version}.tar.bz2
10 BuildRequires:  pkgconfig
11 BuildRequires:  pkgconfig(xorg-macros) >= 1.12
12 BuildRequires:  pkgconfig(xproto)
13 BuildRequires:  pkgconfig(xtrans)
14
15 %description
16 There are numerous possible inter-client protocols, with many
17 similarities and common needs - authentication, version negotiation,
18 byte order negotiation, and so on.
19 The Inter-Client Exchange (ICE) protocol is intended to provide a
20 framework for building such protocols, allowing them to make use of
21 common negotiation mechanisms and to be multiplexed over a single
22 transport connection.
23
24 %package devel
25 Summary:        Development files for the X11 Inter-Client Exchange Library
26 Group:          Development/Libraries/C and C++
27 Requires:       %{name} = %{version}
28
29 %description devel
30 The Inter-Client Exchange (ICE) protocol is intended to provide a
31 framework for building such protocols, allowing them to make use of
32 common negotiation mechanisms and to be multiplexed over a single
33 transport connection.
34
35 This package contains the development headers for the library found
36 in %{name}.
37
38 %prep
39 %setup -q
40
41 %build
42 %configure --docdir=%_docdir/%{name} --disable-static
43 make %{?_smp_mflags}
44
45 %install
46 %make_install
47
48 %post  -p /sbin/ldconfig
49
50 %postun  -p /sbin/ldconfig
51
52 %files
53 %defattr(-,root,root)
54 %{_libdir}/libICE.so.6*
55
56 %files devel
57 %defattr(-,root,root)
58 %{_includedir}/X11/*
59 %{_libdir}/libICE.so
60 %{_libdir}/pkgconfig/ice.pc
61 %_docdir/%{name}
62
63 %changelog