From 427f2b5c965f7a2c282ec0f56f44c79e68edfc0601e894e5157e505d0a773153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 24 Jun 2015 10:05:05 +0000 Subject: [PATCH 1/4] - Add cpprest-pthread.patch to fix unit test linking OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpprest?expand=0&rev=6 --- cpprest-pthread.patch | 11 +++++++++++ cpprest.changes | 5 +++++ cpprest.spec | 2 ++ 3 files changed, 18 insertions(+) create mode 100644 cpprest-pthread.patch diff --git a/cpprest-pthread.patch b/cpprest-pthread.patch new file mode 100644 index 0000000..3ddf9f7 --- /dev/null +++ b/cpprest-pthread.patch @@ -0,0 +1,11 @@ +Index: x/Release/tests/common/UnitTestpp/CMakeLists.txt +=================================================================== +--- x.orig/Release/tests/common/UnitTestpp/CMakeLists.txt ++++ x/Release/tests/common/UnitTestpp/CMakeLists.txt +@@ -49,4 +49,4 @@ elseif(WIN32) + endif() + + add_library(${LIB}unittestpp ${UT_SOURCES}) +-target_link_libraries(${LIB}unittestpp ${ANDROID_STL_FLAGS}) +\ No newline at end of file ++target_link_libraries(${LIB}unittestpp ${ANDROID_STL_FLAGS} pthread) diff --git a/cpprest.changes b/cpprest.changes index b91c715..4b0d884 100644 --- a/cpprest.changes +++ b/cpprest.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 24 10:04:53 UTC 2015 - idonmez@suse.com + +- Add cpprest-pthread.patch to fix unit test linking + ------------------------------------------------------------------- Fri Jun 12 09:00:49 UTC 2015 - astieger@suse.com diff --git a/cpprest.spec b/cpprest.spec index 25a1d13..c3e9295 100644 --- a/cpprest.spec +++ b/cpprest.spec @@ -26,6 +26,7 @@ License: Apache-2.0 Group: Devlopment/Libraries/C and C++ Url: https://casablanca.codeplex.com/ Source: http://download-codeplex.sec.s-msft.com/Download/SourceControlFileDownload.ashx?ProjectName=casablanca&changeSetId=c7d85ee385c6#/%{name}-%{version}.zip +Patch1: cpprest-pthread.patch BuildRequires: boost-devel BuildRequires: cmake >= 2.6 BuildRequires: gcc-c++ @@ -63,6 +64,7 @@ Development files. %prep %setup -q -c +%patch1 -p1 %build %cmake -DCMAKE_BUILD_TYPE=Release ../Release From 5e00e2211ee938ce52fac5bdb6ffa615f88db1c28ef318c85c1cc30645c0b357 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 24 Jun 2015 12:26:38 +0000 Subject: [PATCH 2/4] Add _constraints OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpprest?expand=0&rev=7 --- _constraints | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 _constraints diff --git a/_constraints b/_constraints new file mode 100644 index 0000000..7a361dd --- /dev/null +++ b/_constraints @@ -0,0 +1,8 @@ + + + + + 8000 + + + From e0ba6249ae10daff7d799a3d85735360cc0508180985cc4e9bd90b16f0765980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 24 Jun 2015 12:32:51 +0000 Subject: [PATCH 3/4] OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpprest?expand=0&rev=8 --- _constraints | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_constraints b/_constraints index 7a361dd..8467694 100644 --- a/_constraints +++ b/_constraints @@ -2,7 +2,7 @@ - 8000 + 4000 From 23317eadba349bf2523b54ed179b2b05c8501ea14dd5e3228fe7bb84f345f289 Mon Sep 17 00:00:00 2001 From: Andreas Stieger Date: Sun, 28 Jun 2015 14:32:09 +0000 Subject: [PATCH 4/4] Accepting request 314255 from home:AndreasStieger:branches:devel:libraries:c_c++ - fix architecture builds OBS-URL: https://build.opensuse.org/request/show/314255 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpprest?expand=0&rev=9 --- cpprest.changes | 5 +++++ cpprest.spec | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cpprest.changes b/cpprest.changes index 4b0d884..0d75f3f 100644 --- a/cpprest.changes +++ b/cpprest.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jun 28 13:11:08 UTC 2015 - astieger@suse.com + +- fix architecture builds + ------------------------------------------------------------------- Wed Jun 24 10:04:53 UTC 2015 - idonmez@suse.com diff --git a/cpprest.spec b/cpprest.spec index c3e9295..64c1d42 100644 --- a/cpprest.spec +++ b/cpprest.spec @@ -67,7 +67,12 @@ Development files. %patch1 -p1 %build -%cmake -DCMAKE_BUILD_TYPE=Release ../Release +%cmake \ + -DCMAKE_BUILD_TYPE=Release \ +%ifarch ppc ppc64 ppc64le aarch64 armv7l + -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