forked from pool/cpprest
Accepting request 870110 from home:1Antoine1:branches:devel:libraries:c_c++
- Update to 2.10.18: * Add ability to parse and emit the NT Epoch 1601-01-01T00:00:00Z. - Remove obsolete conditionals. - Remove duplicate call to license macro. - Simplify check section and make it work on Leap 15.2/15.3. OBS-URL: https://build.opensuse.org/request/show/870110 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpprest?expand=0&rev=53
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Feb 7 13:57:13 UTC 2021 - Antoine Belvire <antoine.belvire@opensuse.org>
|
||||||
|
|
||||||
|
- Update to 2.10.18:
|
||||||
|
* Add ability to parse and emit the NT Epoch 1601-01-01T00:00:00Z.
|
||||||
|
- Remove obsolete conditionals.
|
||||||
|
- Remove duplicate call to license macro.
|
||||||
|
- Simplify check section and make it work on Leap 15.2/15.3.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jan 17 20:27:55 UTC 2021 - Antoine Belvire <antoine.belvire@opensuse.org>
|
Sun Jan 17 20:27:55 UTC 2021 - Antoine Belvire <antoine.belvire@opensuse.org>
|
||||||
|
|
||||||
|
|||||||
23
cpprest.spec
23
cpprest.spec
@@ -19,7 +19,7 @@
|
|||||||
%define major 2
|
%define major 2
|
||||||
%define minor 10
|
%define minor 10
|
||||||
Name: cpprest
|
Name: cpprest
|
||||||
Version: 2.10.17
|
Version: 2.10.18
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: C++ REST library
|
Summary: C++ REST library
|
||||||
# main: MIT (license.txt)
|
# main: MIT (license.txt)
|
||||||
@@ -39,20 +39,16 @@ Patch2: base64.patch
|
|||||||
Patch3: filestream.patch
|
Patch3: filestream.patch
|
||||||
BuildRequires: cmake >= 3.0
|
BuildRequires: cmake >= 3.0
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig
|
|
||||||
BuildRequires: pkgconfig(libssl) >= 1.0
|
|
||||||
BuildRequires: pkgconfig(websocketpp) >= 0.8
|
|
||||||
BuildRequires: pkgconfig(zlib)
|
|
||||||
%if 0%{?suse_version} > 1325
|
|
||||||
BuildRequires: libboost_atomic-devel
|
BuildRequires: libboost_atomic-devel
|
||||||
BuildRequires: libboost_filesystem-devel
|
BuildRequires: libboost_filesystem-devel
|
||||||
BuildRequires: libboost_random-devel
|
BuildRequires: libboost_random-devel
|
||||||
BuildRequires: libboost_regex-devel
|
BuildRequires: libboost_regex-devel
|
||||||
BuildRequires: libboost_system-devel
|
BuildRequires: libboost_system-devel
|
||||||
BuildRequires: libboost_thread-devel
|
BuildRequires: libboost_thread-devel
|
||||||
%else
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: boost-devel >= 1.55
|
BuildRequires: pkgconfig(libssl) >= 1.0
|
||||||
%endif
|
BuildRequires: pkgconfig(websocketpp) >= 0.8
|
||||||
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The C++ REST SDK is a Microsoft project for cloud-based client-server
|
The C++ REST SDK is a Microsoft project for cloud-based client-server
|
||||||
@@ -112,20 +108,17 @@ Cflags: -I%{_includedir}/cpprest -I%{_includedir}/pplx
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
# Tweak library path so that libccprest + libunittestpp are found
|
||||||
|
export LD_LIBRARY_PATH="$PWD/build/Release/Binaries"
|
||||||
# websocketsclient_test -> authentication_tests - online tests
|
# websocketsclient_test -> authentication_tests - online tests
|
||||||
# httpclient_test -> follows_retrieval_redirect - online test
|
# httpclient_test -> follows_retrieval_redirect - online test
|
||||||
# do not use macro so we can exclude tests
|
%ctest --exclude-regex '(httpclient_test|websocketsclient_test)'
|
||||||
pushd build
|
|
||||||
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
|
|
||||||
ctest --output-on-failure --force-new-ctest-process %{?_smp_mflags} -E '(httpclient_test|websocketsclient_test)'
|
|
||||||
popd
|
|
||||||
|
|
||||||
%post -n libcpprest%{major}_%{minor} -p /sbin/ldconfig
|
%post -n libcpprest%{major}_%{minor} -p /sbin/ldconfig
|
||||||
%postun -n libcpprest%{major}_%{minor} -p /sbin/ldconfig
|
%postun -n libcpprest%{major}_%{minor} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n libcpprest%{major}_%{minor}
|
%files -n libcpprest%{major}_%{minor}
|
||||||
%license license.txt ThirdPartyNotices.txt
|
%license license.txt ThirdPartyNotices.txt
|
||||||
%license license.txt
|
|
||||||
%doc CONTRIBUTORS.txt ThirdPartyNotices.txt
|
%doc CONTRIBUTORS.txt ThirdPartyNotices.txt
|
||||||
%{_libdir}/libcpprest.so.%{major}.%{minor}
|
%{_libdir}/libcpprest.so.%{major}.%{minor}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a2d9dae3ae10cdf7e41caf3dd0fa52f0b9c5012a24ba123901f686cfc484c043
|
|
||||||
size 1747363
|
|
||||||
3
cpprestsdk-2.10.18.tar.gz
Normal file
3
cpprestsdk-2.10.18.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6bd74a637ff182144b6a4271227ea8b6b3ea92389f88b25b215e6f94fd4d41cb
|
||||||
|
size 1747792
|
||||||
Reference in New Issue
Block a user