websocketpp/websocketpp.spec
Rex Dieter 181d3e5d7b import
2014-11-18 06:36:49 -06:00

71 lines
1.9 KiB
RPMSpec

Name: websocketpp
Summary: C++ WebSocket Protocol Library
Version: 0.4.0
Release: 2%{?dist}
License: BSD
Url: http://www.zaphoyd.com/websocketpp
Source0: https://github.com/zaphoyd/websocketpp/archive/%{version}.tar.gz
Source1: websocketpp.pc
BuildArch: noarch
# put cmake files in share/cmake instead of lib/cmake
Patch1: websocketpp-0.4.0-cmake_noarch.patch
BuildRequires: boost-devel
BuildRequires: cmake
BuildRequires: pkgconfig
%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
Requires: boost-devel
%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}
%patch1 -p1 -b .cmake_noarch
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%cmake ..
make %{?_smp_mflags}
popd
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%files devel
%doc COPYING changelog.md readme.md roadmap.md
%{_includedir}/websocketpp/
%dir %{_datadir}/cmake/
%{_datadir}/cmake/websocketpp/
%changelog
* Thu Nov 13 2014 Rex Dieter <rdieter@fedoraproject.org> 0.4.0-2
- use (upstreamable) cmake_noarch.patch instead of manually moving files around
* Wed Nov 05 2014 Rex Dieter <rdieter@fedoraproject.org> 0.4.0-1
- first try
* Mon Mar 17 2014 prusnak@opensuse.org
- created package (based on a Fedora package by Thomas Sailer)