From dcae17165b503c5dee5c60235bb7f05d4df6e70fab9d4e04809118b6b31adea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Thu, 28 May 2015 08:58:17 +0000 Subject: [PATCH] Accepting request 309037 from home:AndreasStieger:branches:M17N cpprest / libcpprest / "C++ Rest SDK" a.k.a. Casablanca. An optional dependency for poedit 1.8. OBS-URL: https://build.opensuse.org/request/show/309037 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpprest?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + cpprest-2.5.0.zip | 3 ++ cpprest.changes | 5 +++ cpprest.spec | 96 +++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 128 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 cpprest-2.5.0.zip create mode 100644 cpprest.changes create mode 100644 cpprest.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/cpprest-2.5.0.zip b/cpprest-2.5.0.zip new file mode 100644 index 0000000..29ba290 --- /dev/null +++ b/cpprest-2.5.0.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92168b640c212251c576d0d5e75393870498f7d115815bf860f941094f232700 +size 2448296 diff --git a/cpprest.changes b/cpprest.changes new file mode 100644 index 0000000..772e9ff --- /dev/null +++ b/cpprest.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu May 28 08:01:12 UTC 2015 - astieger@suse.com + +- initial package + diff --git a/cpprest.spec b/cpprest.spec new file mode 100644 index 0000000..3ea21ed --- /dev/null +++ b/cpprest.spec @@ -0,0 +1,96 @@ +# +# spec file for package cpprest +# +# Copyright (c) 2015 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 http://bugs.opensuse.org/ +# + + +Name: cpprest +Version: 2.5.0 +Release: 0 +Summary: C++ REST library +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=25d9ac1966ce#/%{name}-%{version}.zip +BuildRequires: boost-devel +BuildRequires: cmake >= 2.6 +BuildRequires: gcc-c++ +BuildRequires: openssl-devel +BuildRequires: unzip +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%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 libcpprest2_5 +Summary: C++ Rest library +Group: System/Libraries + +%description -n libcpprest2_5 +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: libcpprest2_5 = %{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 -c + +%build +%cmake -DCMAKE_BUILD_TYPE=Release ../Release +make %{?_smp_mflags} + +%install +mkdir -p %{buildroot}%{_includedir} +cp -r Release/include/* %{buildroot}%{_includedir}/ +install -d -m 755 %{buildroot}%{_libdir} +cp build/Binaries/libcpprest.so.2.5 %{buildroot}%{_libdir}/ +ln -sf libcpprest.so.2.5 %{buildroot}%{_libdir}/libcpprest.so + +%post -n libcpprest2_5 -p /sbin/ldconfig + +%postun -n libcpprest2_5 -p /sbin/ldconfig + +%files -n libcpprest2_5 +%defattr(-,root,root) +%doc CONTRIBUTORS.txt license.txt +%{_libdir}/libcpprest.so.2.5 + +%files devel +%defattr(-,root,root) +%doc CONTRIBUTORS.txt license.txt +%{_includedir}/%{name} +%{_includedir}/%{name}/*.h* +%{_includedir}/%{name}/details/*.h* +%{_includedir}/%{name}/details/*.dat +%{_includedir}/pplx +%{_includedir}/pplx/*.h* +%{_libdir}/libcpprest.so + +%changelog