add new context arg to libwebsockets_serve_http_file
[profile/ivi/libwebsockets.git] / libwebsockets.spec
1 Name: libwebsockets
2 Version: 0.1
3 Release: 45.gmaster_f1d2113d%{?dist}
4 Summary: Websocket Server Library
5
6 Group: System
7 License: GPL
8 URL: http://warmcat.com
9 Source0: %{name}-%{version}.tar.gz
10 BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
11
12 BuildRequires: openssl-devel
13 Requires: openssl-devel
14
15 %description
16 Webserver server library
17
18 %package devel
19 Summary: Development files for libwebsockets
20 Group: Development/Libraries
21 Requires: %{name} = %{version}-%{release}
22 Requires: openssl-devel
23
24 %description devel
25 Development files for libwebsockets
26
27 %prep
28 %setup -q
29
30 %build
31 ./configure --prefix=/usr --libdir=%{_libdir} --enable-openssl
32 make
33
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 make install DESTDIR=$RPM_BUILD_ROOT
38
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %files
44 %defattr(-,root,root,-)
45 %attr(755,root,root) /usr/bin/libwebsockets-test-server
46 %attr(755,root,root) 
47 /%{_libdir}/libwebsockets.so.0.0.3
48 /%{_libdir}/libwebsockets.so.0
49 /%{_libdir}/libwebsockets.so
50 /%{_libdir}/libwebsockets.la
51 %attr(755,root,root) /usr/share/libwebsockets-test-server
52 %attr(755,root,root) /usr/share/libwebsockets-test-server-extpoll
53 %attr(755,root,root) /usr/share/libwebsockets-test-client
54 %attr(755,root,root) /usr/share/libwebsockets-test-ping
55 %doc
56 %files devel
57 %defattr(-,root,root,-)
58 /usr/include/*
59 %attr(755,root,root)
60 /%{_libdir}/libwebsockets.a
61
62 %changelog
63