libwebsockets.spec 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. Name: libwebsockets
  2. Version: 2.2.2
  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.10
  48. /%{_libdir}/libwebsockets.so
  49. /%{_libdir}/cmake/libwebsockets/LibwebsocketsConfig.cmake
  50. /%{_libdir}/cmake/libwebsockets/LibwebsocketsConfigVersion.cmake
  51. /%{_libdir}/cmake/libwebsockets/LibwebsocketsTargets.cmake
  52. /%{_libdir}/cmake/libwebsockets/LibwebsocketsTargets-release.cmake
  53. /usr/share/libwebsockets-test-server
  54. %doc
  55. %files devel
  56. %defattr(-,root,root,-)
  57. /usr/include/*
  58. %attr(755,root,root)
  59. /%{_libdir}/libwebsockets.a
  60. /%{_libdir}/pkgconfig/libwebsockets.pc
  61. %changelog
  62. * Mon Mar 06 2017 Andy Green <andy@warmcat.com> 2.2.2-1
  63. - MINOR Upstream 2.2.2 release
  64. * Mon Mar 06 2017 Andy Green <andy@warmcat.com> 2.2.0-1
  65. - MAJOR SONAMEBUMP APICHANGES Upstream 2.2.0 release
  66. * Thu Oct 06 2016 Andy Green <andy@warmcat.com> 2.1.0-1
  67. - MAJOR SONAMEBUMP APICHANGES Upstream 2.1.0 release
  68. * Thu May 05 2016 Andy Green <andy@warmcat.com> 2.0.0-1
  69. - MAJOR SONAMEBUMP APICHANGES Upstream 2.0.0 release
  70. * Tue Feb 16 2016 Andy Green <andy@warmcat.com> 1.7.0-1
  71. - MAJOR SONAMEBUMP APICHANGES Upstream 1.7.0 release
  72. * Sun Jan 17 2016 Andrew Cooks <acooks@linux.com> 1.6.0-1
  73. - Bump version to 1.6.0