libwebsockets.spec 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. Name: libwebsockets
  2. Version: 2.1.0
  3. Release: 1%{?dist}
  4. Summary: Websocket Server and Client Library
  5. Group: System Environment/Libraries
  6. License: LGPLv2 with exceptions
  7. URL: https://libwebsockets.org
  8. Source0: %{name}-%{version}.tar.gz
  9. BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
  10. BuildRequires: openssl-devel cmake
  11. Requires: openssl
  12. %description
  13. Webserver server and client library
  14. %package devel
  15. Summary: Development files for libwebsockets
  16. Group: Development/Libraries
  17. Requires: %{name} = %{version}-%{release}
  18. Requires: openssl-devel
  19. %description devel
  20. Development files for libwebsockets
  21. %prep
  22. %setup -q
  23. %build
  24. mkdir -p build
  25. cd build
  26. %cmake ..
  27. make
  28. %install
  29. rm -rf $RPM_BUILD_ROOT
  30. cd build
  31. make install DESTDIR=$RPM_BUILD_ROOT
  32. %post -p /sbin/ldconfig
  33. %postun -p /sbin/ldconfig
  34. %clean
  35. rm -rf $RPM_BUILD_ROOT
  36. %files
  37. %defattr(-,root,root,-)
  38. %attr(755,root,root)
  39. /usr/bin/libwebsockets-test-server
  40. /usr/bin/libwebsockets-test-server-extpoll
  41. /usr/bin/libwebsockets-test-server-pthreads
  42. /usr/bin/libwebsockets-test-client
  43. /usr/bin/libwebsockets-test-ping
  44. /usr/bin/libwebsockets-test-echo
  45. /usr/bin/libwebsockets-test-fraggle
  46. /usr/bin/libwebsockets-test-fuzxy
  47. /%{_libdir}/libwebsockets.so.8
  48. /%{_libdir}/libwebsockets.so
  49. /%{_libdir}/cmake/libwebsockets/LibwebsocketsConfig.cmake
  50. /%{_libdir}/cmake/libwebsockets/LibwebsocketsConfigVersion.cmake
  51. /%{_libdir}/cmake/libwebsockets/LibwebsocketsTargets.cmake
  52. /usr/share/libwebsockets-test-server
  53. %doc
  54. %files devel
  55. %defattr(-,root,root,-)
  56. /usr/include/*
  57. %attr(755,root,root)
  58. /%{_libdir}/libwebsockets.a
  59. /%{_libdir}/pkgconfig/libwebsockets.pc
  60. %changelog
  61. * Thu Oct 06 2016 Andy Green <andy@warmcat.com> 2.1.0-1
  62. - MAJOR SONAMEBUMP APICHANGES Upstream 2.1.0 release
  63. * Thu May 05 2016 Andy Green <andy@warmcat.com> 2.0.0-1
  64. - MAJOR SONAMEBUMP APICHANGES Upstream 2.0.0 release
  65. * Tue Feb 16 2016 Andy Green <andy@warmcat.com> 1.7.0-1
  66. - MAJOR SONAMEBUMP APICHANGES Upstream 1.7.0 release
  67. * Sun Jan 17 2016 Andrew Cooks <acooks@linux.com> 1.6.0-1
  68. - Bump version to 1.6.0