1 Summary: X.Org X11 SM runtime library
6 Group: System Environment/Libraries
9 Source0: %{name}-%{version}.tar.gz
11 BuildRequires: pkgconfig
12 BuildRequires: pkgconfig(xproto)
13 BuildRequires: pkgconfig(xorg-macros)
14 BuildRequires: xorg-x11-xtrans-devel >= 1.0.3-4
15 BuildRequires: libICE-devel
16 BuildRequires: libuuid-devel
19 The X.Org X11 SM (Session Management) runtime library.
22 Summary: X.Org X11 SM development package
23 Group: Development/Libraries
24 Requires: %{name} = %{version}-%{release}
25 Requires: libICE-devel
28 The X.Org X11 SM (Session Management) development package.
35 %reconfigure --with-libuuid --disable-static \
36 LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
40 rm -rf $RPM_BUILD_ROOT
41 mkdir -p %{buildroot}/usr/share/license
42 cp -af COPYING %{buildroot}/usr/share/license/%{name}
43 make install DESTDIR=$RPM_BUILD_ROOT
45 # We intentionally don't ship *.la files
46 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
48 # we %%doc these ourselves, later, and only the text versions
49 rm -rf $RPM_BUILD_ROOT%{_docdir}
54 rm -rf $RPM_BUILD_ROOT
56 %post -p /sbin/ldconfig
57 %postun -p /sbin/ldconfig
60 %defattr(-,root,root,-)
61 /usr/share/license/%{name}
62 #%doc AUTHORS COPYING ChangeLog
64 %{_libdir}/libSM.so.6.*
67 %defattr(-,root,root,-)
68 %dir %{_includedir}/X11/SM
69 %{_includedir}/X11/SM/SM.h
70 %{_includedir}/X11/SM/SMlib.h
71 %{_includedir}/X11/SM/SMproto.h
73 %{_libdir}/pkgconfig/sm.pc