blob: 81d119c02b81bae8f5f6d9ce9d28abba05a67d86 [file] [log] [blame]
Andy Green5ba6bb72010-11-15 17:03:26 +00001Name: libwebsockets
Andy Green676bac22013-02-12 15:48:00 +08002Version: 1.2
3Release: 46.gmaster_f59d56cbd8305ed%{?dist}
Andy Green5ba6bb72010-11-15 17:03:26 +00004Summary: Websocket Server Library
5
6Group: System
7License: GPL
8URL: http://warmcat.com
9Source0: %{name}-%{version}.tar.gz
10BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
11
12BuildRequires: openssl-devel
13Requires: openssl-devel
14
15%description
16Webserver server library
17
18%package devel
19Summary: Development files for libwebsockets
20Group: Development/Libraries
21Requires: %{name} = %{version}-%{release}
22Requires: openssl-devel
23
24%description devel
25Development files for libwebsockets
26
27%prep
28%setup -q
29
30%build
31./configure --prefix=/usr --libdir=%{_libdir} --enable-openssl
32make
33
34
35%install
36rm -rf $RPM_BUILD_ROOT
37make install DESTDIR=$RPM_BUILD_ROOT
38
39
40%clean
41rm -rf $RPM_BUILD_ROOT
42
43%files
44%defattr(-,root,root,-)
45%attr(755,root,root) /usr/bin/libwebsockets-test-server
Andy Green676bac22013-02-12 15:48:00 +080046%attr(755,root,root) /usr/bin/libwebsockets-test-server-extpoll
47%attr(755,root,root) /usr/bin/libwebsockets-test-client
48%attr(755,root,root) /usr/bin/libwebsockets-test-ping
49%attr(755,root,root) /usr/bin/libwebsockets-test-echo
50%attr(755,root,root) /usr/bin/libwebsockets-test-fraggle
Andy Green5ba6bb72010-11-15 17:03:26 +000051%attr(755,root,root)
Andy Green676bac22013-02-12 15:48:00 +080052/%{_libdir}/libwebsockets.so.3.0.0
53/%{_libdir}/libwebsockets.so.3
Andy Green5ba6bb72010-11-15 17:03:26 +000054/%{_libdir}/libwebsockets.so
55/%{_libdir}/libwebsockets.la
56%attr(755,root,root) /usr/share/libwebsockets-test-server
Andy Green5ba6bb72010-11-15 17:03:26 +000057%doc
58%files devel
59%defattr(-,root,root,-)
60/usr/include/*
61%attr(755,root,root)
62/%{_libdir}/libwebsockets.a
Andy Green676bac22013-02-12 15:48:00 +080063/%{_libdir}/pkgconfig/libwebsockets.pc
Andy Green5ba6bb72010-11-15 17:03:26 +000064
65%changelog
66