forked from pool/cpprest
- Update to 2.10.8
* Allow ppltasks.h and pplxtasks.h to co-exist
* Fix incorrect const in reinterpret_cast
* Fix UWP missing header
* Adds support for OpenSSL 1.1.1
* Fix string size for error message generated by windows_category
* Add uri_builder::append_path_raw(...) to allow adding elements
to path intentionally beginning with '/' ("//" will result in
the final path value)
* cmake: add code to detect system brotli library
* Fix Brotli compress_helper early termination issue
- Update to 2.10.7
* Several race conditions in the listener were worked around; the
listeners remain experimental and are unlikely to productized
in their current form; the race conditions are structural, but
at least the client tests pass most of the time.
* Incorrect handling of connection pooling bug that caused segfaults
on Ubuntu introduced in 2.10.4 has been repaired.
* websocketpp checked in 0.5.1 version has been changed to a
submodule and updated to 0.8.1.
* Added an API to set the number of threads in the asio thread pool
* Add Transfer-Encoding compression support and extensible compression
API
* Improve utf8_to_utf16 speed for common path
* added URI resolution according to RFC3986
* Use pplx namespace consistently
* Remove _ASYNCRTIMP from ~http_listener() and implement inline
* Avoid using identifiers reserved by C++ in header guards
* blackjack sample: use vector instead of shared pointer for array
OBS-URL: https://build.opensuse.org/request/show/664955
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpprest?expand=0&rev=37
132 lines
4.3 KiB
RPMSpec
132 lines
4.3 KiB
RPMSpec
#
|
|
# spec file for package cpprest
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define major 2
|
|
%define minor 10
|
|
Name: cpprest
|
|
Version: 2.10.8
|
|
Release: 0
|
|
Summary: C++ REST library
|
|
# main: MIT (license.txt)
|
|
# Websocket++: BSD-3-Clause (ThirdPartyNotices.txt)
|
|
# base64/base64.hpp: Zlib (ThirdPartyNotices.txt)
|
|
# sha1/sha1.hpp: BSD-3-Clause (ThirdPartyNotices.txt)
|
|
# common/md5.hpp: Zlib (ThirdPartyNotices.txt)
|
|
# utf8_validation.hpp: MIT (ThirdPartyNotices.txt)
|
|
License: MIT AND BSD-3-Clause AND Zlib
|
|
Group: Development/Libraries/C and C++
|
|
URL: https://github.com/Microsoft/cpprestsdk
|
|
#Source: https://github.com/Microsoft/cpprestsdk/archive/v%{version}/cpprestsdk-%{version}.tar.gz
|
|
Source: cpprestsdk-%{version}.tar.gz
|
|
BuildRequires: cmake >= 3.0
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: openssl-devel >= 1.0
|
|
%if 0%{?suse_version} > 1325
|
|
BuildRequires: libboost_atomic-devel
|
|
BuildRequires: libboost_filesystem-devel
|
|
BuildRequires: libboost_random-devel
|
|
BuildRequires: libboost_regex-devel
|
|
BuildRequires: libboost_system-devel
|
|
BuildRequires: libboost_thread-devel
|
|
%else
|
|
BuildRequires: boost-devel >= 1.55
|
|
%endif
|
|
|
|
%description
|
|
The C++ REST SDK is a Microsoft project for cloud-based client-server
|
|
communication in native code using a modern asynchronous C++ API design. This
|
|
project aims to help C++ developers connect to and interact with services.
|
|
|
|
Also known as Casablanca.
|
|
|
|
%package -n libcpprest%{major}_%{minor}
|
|
Summary: C++ Rest library
|
|
Group: System/Libraries
|
|
|
|
%description -n libcpprest%{major}_%{minor}
|
|
The C++ REST SDK is a Microsoft project for cloud-based client-server
|
|
communication in native code using a modern asynchronous C++ API design. This
|
|
project aims to help C++ developers connect to and interact with services.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libcpprest%{major}_%{minor} = %{version}
|
|
|
|
%description devel
|
|
The C++ REST SDK is a Microsoft project for cloud-based client-server
|
|
communication in native code using a modern asynchronous C++ API design. This
|
|
project aims to help C++ developers connect to and interact with services.
|
|
|
|
Development files.
|
|
|
|
%prep
|
|
%setup -q -n cpprestsdk-%{version}
|
|
|
|
%build
|
|
%cmake \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
%ifarch ppc ppc64 ppc64le aarch64 %{arm}
|
|
-DCMAKE_CXX_FLAGS:STRING="%{optflags} -Wno-error=attributes -Wno-error=type-limits -Wno-error=cast-align -Wno-error=deprecated-declarations" \
|
|
%endif
|
|
../Release
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_includedir}
|
|
cp -r Release/include/* %{buildroot}%{_includedir}/
|
|
install -d -m 755 %{buildroot}%{_libdir}
|
|
chmod -x %{buildroot}%{_includedir}/cpprest/oauth1.h
|
|
cp build/Binaries/libcpprest.so.%{major}.%{minor} %{buildroot}%{_libdir}/
|
|
ln -sf libcpprest.so.%{major}.%{minor} %{buildroot}%{_libdir}/libcpprest.so
|
|
|
|
# create a pkgconfig file
|
|
install -d %{buildroot}%{_libdir}/pkgconfig
|
|
cat << EOF > %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
|
|
prefix=%{_prefix}
|
|
exec_prefix=%{_prefix}
|
|
libdir=%{_libdir}
|
|
includedir=%{_includedir}
|
|
|
|
Name: %{name}
|
|
Description: cloud-based client-server communication
|
|
URL: %{url}
|
|
Version: %{version}
|
|
Libs: -L%{_libdir} -lcpprest
|
|
Cflags: -I%{_includedir}/cpprest -I%{_includedir}/pplx
|
|
EOF
|
|
|
|
%post -n libcpprest%{major}_%{minor} -p /sbin/ldconfig
|
|
%postun -n libcpprest%{major}_%{minor} -p /sbin/ldconfig
|
|
|
|
%files -n libcpprest%{major}_%{minor}
|
|
%license license.txt ThirdPartyNotices.txt
|
|
%license license.txt
|
|
%doc CONTRIBUTORS.txt ThirdPartyNotices.txt
|
|
%{_libdir}/libcpprest.so.%{major}.%{minor}
|
|
|
|
%files devel
|
|
%license license.txt ThirdPartyNotices.txt
|
|
%doc CONTRIBUTORS.txt
|
|
%{_includedir}/%{name}
|
|
%{_includedir}/pplx
|
|
%{_libdir}/libcpprest.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%changelog
|