# # spec file for package websocketpp # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: websocketpp Version: 0.3.0 Release: 0 Summary: C++ WebSocket Protocol Library License: BSD-3-Clause Group: Development/Libraries/C and C++ Url: http://www.zaphoyd.com/websocketpp Source0: %{name}-%{version}.tar.gz Source1: websocketpp.pc BuildRequires: boost-devel BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkg-config BuildArch: noarch %description WebSocket++ is an open source (BSD license) header only C++ library that impliments RFC6455 The WebSocket Protocol. It allows integrating WebSocket client and server functionality into C++ programs. It uses interchangeable network transport modules including one based on C++ iostreams and one based on Boost Asio. %package devel Summary: C++ WebSocket Protocol Library Group: Development/Libraries/C and C++ %description devel WebSocket++ is an open source (BSD license) header only C++ library that impliments RFC6455 The WebSocket Protocol. It allows integrating WebSocket client and server functionality into C++ programs. It uses interchangeable network transport modules including one based on C++ iostreams and one based on Boost Asio. %prep %setup -q -n %{name}-%{version} %build mkdir build pushd build cmake .. \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_VERBOSE_MAKEFILE=ON make %{?_smp_mflags} popd %install pushd build %make_install install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/pkgconfig/websocketpp.pc popd %files devel %defattr(-,root,root,-) %doc COPYING changelog.md readme.md roadmap.md %{_includedir}/websocketpp %{_prefix}/lib/cmake %{_prefix}/lib/cmake/websocketpp %{_datadir}/pkgconfig/websocketpp.pc %changelog