Adding Tizen packaging files 63/1563/1
authorRusty Lynch <rusty.lynch@intel.com>
Thu, 23 Aug 2012 02:28:37 +0000 (19:28 -0700)
committerRusty Lynch <rusty.lynch@intel.com>
Fri, 24 Aug 2012 16:38:48 +0000 (09:38 -0700)
packaging/libwebsockets.changes [new file with mode: 0644]
packaging/libwebsockets.spec [new file with mode: 0644]

diff --git a/packaging/libwebsockets.changes b/packaging/libwebsockets.changes
new file mode 100644 (file)
index 0000000..112a377
--- /dev/null
@@ -0,0 +1,3 @@
+* Wed Aug 22 2012 Rusty Lynch <rusty.lynch@intel.com> 71e5369
+- Initial packaging 
+
diff --git a/packaging/libwebsockets.spec b/packaging/libwebsockets.spec
new file mode 100644 (file)
index 0000000..8dda7a6
--- /dev/null
@@ -0,0 +1,51 @@
+Name:       libwebsockets
+Summary:    WebSocket Library
+Version:    support_chrome_20_firefox_12_11_g71e5369
+Release:    1
+Group:      System/Libraries
+License:    LGPLv2.1
+URL:        http://git.warmcat.com/cgi-bin/cgit/libwebsockets/
+Source0:    %{name}-%{version}.tar.bz2
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+BuildRequires: zlib-devel
+
+%description
+C Websockets Server Library
+
+%package devel
+Summary:    Development files for %{name}
+Group:      Development/Libraries
+Requires:   %{name} = %{version}-%{release}
+
+%description devel
+Development files needed for building websocket clients and servers
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+
+autoreconf -i
+%configure
+
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}/libwebsockets*
+%{_libdir}/libwebsockets*.so.*
+%{_datadir}/libwebsockets-test-server/*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/libwebsockets.h
+%{_libdir}/libwebsockets.so