Add an option --with-libuuid to configure
[platform/upstream/libSM.git] / packaging / libSM.spec
1 Name:           libSM
2 Version:        1.2.1
3 Release:        1
4 License:        MIT
5 Summary:        X Session Management library
6 Url:            http://xorg.freedesktop.org/
7 Group:          Graphics/X Window System
8 Source:         %{name}-%{version}.tar.bz2
9 Source1001:     libSM.manifest
10 BuildRequires:  pkgconfig
11 BuildRequires:  pkgconfig(ice) >= 1.0.5
12 BuildRequires:  pkgconfig(uuid)
13 BuildRequires:  pkgconfig(xorg-macros) >= 1.12
14 BuildRequires:  pkgconfig(xproto)
15 BuildRequires:  pkgconfig(xtrans)
16
17 %description
18 The X Session Management Protocol provides a uniform mechanism for
19 users to save and restore their sessions. A session is a group of X
20 clients (programs), each of which has a particular state. The session
21 is controlled by a network service called the session manager, which
22 issues commands to its clients on behalf of the user. These commands
23 may cause clients to save their state or to terminate. It is expected
24 that the client will save its state in such a way that the client can
25 be restarted at a later time and resume its operation as if it had
26 never been terminated.
27
28 %package devel
29 Summary:        Development files for the X Session Management library
30 Group:          Development/Libraries
31 Requires:       %{name} = %{version}
32
33 %description devel
34 The X Session Management Protocol provides a uniform mechanism for
35 users to save and restore their sessions. A session is a group of X
36 clients (programs), each of which has a particular state. The session
37 is controlled by a network service called the session manager, which
38 issues commands to its clients on behalf of the user. These commands
39 may cause clients to save their state or to terminate. It is expected
40 that the client will save its state in such a way that the client can
41 be restarted at a later time and resume its operation as if it had
42 never been terminated.
43
44 This package contains the development headers for the library found
45 in %{name}.
46
47 %prep
48 %setup -q
49 cp %{SOURCE1001} .
50
51 %build
52 %configure --with-libuuid --docdir=%_docdir/%{name} --disable-static
53 make %{?_smp_mflags}
54
55 %install
56 %make_install
57
58 %post -p /sbin/ldconfig
59
60 %postun  -p /sbin/ldconfig
61
62 %files
63 %manifest %{name}.manifest
64 %defattr(-,root,root)
65 %license COPYING
66 %{_libdir}/libSM.so.6*
67
68 %files devel
69 %manifest %{name}.manifest
70 %defattr(-,root,root)
71 %{_includedir}/X11/*
72 %{_libdir}/libSM.so
73 %{_libdir}/pkgconfig/sm.pc
74 %_docdir/%{name}
75
76 %changelog