summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-30 19:41:05 -0700
committerAnas Nashif <anas.nashif@intel.com>2012-10-30 19:41:05 -0700
commit663a0ac59acdcc97532be346957f282e6c970f14 (patch)
tree1e4f7ce9fdc60a6acadef47b2f1611118b58ae30 /packaging
parent6f8fa33f67cf160442ff037dadebcab4f5c4a55d (diff)
downloadlibSM-663a0ac59acdcc97532be346957f282e6c970f14.tar.gz
libSM-663a0ac59acdcc97532be346957f282e6c970f14.tar.bz2
libSM-663a0ac59acdcc97532be346957f282e6c970f14.zip
add packaging
Diffstat (limited to 'packaging')
-rw-r--r--packaging/libSM.spec74
1 files changed, 74 insertions, 0 deletions
diff --git a/packaging/libSM.spec b/packaging/libSM.spec
new file mode 100644
index 0000000..a8aa889
--- /dev/null
+++ b/packaging/libSM.spec
@@ -0,0 +1,74 @@
+Name: libSM
+Version: 1.2.1
+Release: 0
+License: MIT
+Summary: X Session Management library
+Url: http://xorg.freedesktop.org/
+Group: Development/Libraries/C and C++
+
+Source: %{name}-%{version}.tar.bz2
+BuildRequires: pkgconfig
+BuildRequires: pkgconfig(ice) >= 1.0.5
+BuildRequires: pkgconfig(uuid)
+BuildRequires: pkgconfig(xorg-macros) >= 1.12
+BuildRequires: pkgconfig(xproto)
+BuildRequires: pkgconfig(xtrans)
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%description
+The X Session Management Protocol provides a uniform mechanism for
+users to save and restore their sessions. A session is a group of X
+clients (programs), each of which has a particular state. The session
+is controlled by a network service called the session manager, which
+issues commands to its clients on behalf of the user. These commands
+may cause clients to save their state or to terminate. It is expected
+that the client will save its state in such a way that the client can
+be restarted at a later time and resume its operation as if it had
+never been terminated.
+
+%package devel
+Summary: Development files for the X Session Management library
+Group: Development/Libraries/C and C++
+Requires: %{name} = %{version}
+
+%description devel
+The X Session Management Protocol provides a uniform mechanism for
+users to save and restore their sessions. A session is a group of X
+clients (programs), each of which has a particular state. The session
+is controlled by a network service called the session manager, which
+issues commands to its clients on behalf of the user. These commands
+may cause clients to save their state or to terminate. It is expected
+that the client will save its state in such a way that the client can
+be restarted at a later time and resume its operation as if it had
+never been terminated.
+
+This package contains the development headers for the library found
+in %{name}.
+
+%prep
+%setup -q
+
+%build
+%configure --docdir=%_docdir/%{name} --disable-static
+make %{?_smp_mflags}
+
+%install
+%make_install
+rm -f "%{buildroot}/%{_libdir}"/*.la
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+%{_libdir}/libSM.so.6*
+
+%files devel
+%defattr(-,root,root)
+%{_includedir}/X11/*
+%{_libdir}/libSM.so
+%{_libdir}/pkgconfig/sm.pc
+%_docdir/%{name}
+
+%changelog