SHA256
8
0
forked from pool/cpprest

- fix build with gcc8 (add cpprestsdk-2.10.2-fix-gcc8.patch)

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpprest?expand=0&rev=33
This commit is contained in:
2018-06-17 11:09:53 +00:00
committed by Git OBS Bridge
parent 6c3f62a5b2
commit 5e4663d318
3 changed files with 48 additions and 3 deletions

View File

@@ -30,8 +30,9 @@ Summary: C++ REST library
# 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
URL: https://github.com/Microsoft/cpprestsdk
Source: https://github.com/Microsoft/cpprestsdk/archive/v%{version}.tar.gz#/cpprestsdk-%{version}.tar.gz
Patch0: cpprestsdk-2.10.2-fix-gcc8.patch
BuildRequires: cmake >= 3.0
BuildRequires: gcc-c++
BuildRequires: openssl-devel >= 1.0
@@ -76,6 +77,7 @@ Development files.
%prep
%setup -q -n cpprestsdk-%{version}
%patch0 -p1
%build
%cmake \
@@ -114,11 +116,14 @@ EOF
%postun -n libcpprest%{major}_%{minor} -p /sbin/ldconfig
%files -n libcpprest%{major}_%{minor}
%doc CONTRIBUTORS.txt license.txt ThirdPartyNotices.txt
%license license.txt ThirdPartyNotices.txt
%license license.txt
%doc CONTRIBUTORS.txt ThirdPartyNotices.txt
%{_libdir}/libcpprest.so.%{major}.%{minor}
%files devel
%doc CONTRIBUTORS.txt license.txt
%license license.txt ThirdPartyNotices.txt
%doc CONTRIBUTORS.txt
%{_includedir}/%{name}
%{_includedir}/pplx
%{_libdir}/libcpprest.so