forked from pool/cpprest
fix Factory
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpprest?expand=0&rev=21
This commit is contained in:
17
cpprest.spec
17
cpprest.spec
@@ -22,17 +22,21 @@ Name: cpprest
|
||||
Version: 2.9.1
|
||||
Release: 0
|
||||
Summary: C++ REST library
|
||||
License: MIT and BSD-3-Clause and Zlib
|
||||
Group: Development/Libraries/C and C++
|
||||
# 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}.tar.gz
|
||||
Source: https://github.com/Microsoft/cpprestsdk/archive/v%{version}.tar.gz#/cpprestsdk-%{version}.tar.gz
|
||||
Patch1: cpprest-pthread.patch
|
||||
Patch2: cpprestsdk-2.9.1-Fix-build-error-with-glibc-2.26-xlocale.h.patch
|
||||
BuildRequires: cmake >= 2.6
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: openssl-devel >= 1.0
|
||||
%if 0%{?suse_version} > 1325
|
||||
BuildRequires: libboost_filesystem-devel
|
||||
BuildRequires: libboost_random-devel
|
||||
@@ -42,10 +46,6 @@ BuildRequires: libboost_thread-devel
|
||||
%else
|
||||
BuildRequires: boost-devel >= 1.55
|
||||
%endif
|
||||
BuildRequires: cmake >= 2.6
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: openssl-devel >= 1.0
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
The C++ REST SDK is a Microsoft project for cloud-based client-server
|
||||
@@ -78,6 +78,7 @@ Development files.
|
||||
%prep
|
||||
%setup -q -n cpprestsdk-%{version}
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
%cmake \
|
||||
@@ -100,12 +101,10 @@ ln -sf libcpprest.so.%{major}.%{minor} %{buildroot}%{_libdir}/libcpprest.so
|
||||
%postun -n libcpprest%{major}_%{minor} -p /sbin/ldconfig
|
||||
|
||||
%files -n libcpprest%{major}_%{minor}
|
||||
%defattr(-,root,root)
|
||||
%doc CONTRIBUTORS.txt license.txt ThirdPartyNotices.txt
|
||||
%{_libdir}/libcpprest.so.%{major}.%{minor}
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%doc CONTRIBUTORS.txt license.txt
|
||||
%{_includedir}/%{name}
|
||||
%{_includedir}/pplx
|
||||
|
||||
Reference in New Issue
Block a user