Change-Id: Ib4704dea7a957959bc4d90f3271ce370a1b40130
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4994
Reviewed-by: gerrit-photon <photon-checkins@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,75 @@ |
| 0 |
+%define debug_package %{nil}
|
|
| 1 |
+Summary: aws sdk for c++ |
|
| 2 |
+Name: aws-sdk-cpp |
|
| 3 |
+Version: 1.4.33 |
|
| 4 |
+Release: 1%{?dist}
|
|
| 5 |
+Vendor: VMware, Inc. |
|
| 6 |
+Distribution: Photon |
|
| 7 |
+License: Apache 2.0 |
|
| 8 |
+Url: https://github.com/aws/aws-sdk-cpp |
|
| 9 |
+Source0: aws-sdk-cpp-%{version}.tar.gz
|
|
| 10 |
+%define sha1 aws-sdk-cpp=5db6bed30cb85c59c7a3a58034f222007e6a9e49 |
|
| 11 |
+Requires: openssl-devel |
|
| 12 |
+Requires: curl-devel |
|
| 13 |
+Requires: zlib-devel |
|
| 14 |
+BuildRequires: cmake |
|
| 15 |
+BuildRequires: curl-devel |
|
| 16 |
+BuildRequires: openssl-devel |
|
| 17 |
+BuildRequires: zlib-devel |
|
| 18 |
+ |
|
| 19 |
+%description |
|
| 20 |
+The AWS SDK for C++ provides a modern C++ (version C++ 11 or later) interface for Amazon Web Services (AWS). |
|
| 21 |
+ |
|
| 22 |
+%prep |
|
| 23 |
+%setup |
|
| 24 |
+ |
|
| 25 |
+%build |
|
| 26 |
+mkdir build |
|
| 27 |
+cd build |
|
| 28 |
+cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} ..
|
|
| 29 |
+make %{?_smp_mflags}
|
|
| 30 |
+ |
|
| 31 |
+ |
|
| 32 |
+%install |
|
| 33 |
+cd build |
|
| 34 |
+make DESTDIR=%{buildroot} install
|
|
| 35 |
+ |
|
| 36 |
+%clean |
|
| 37 |
+rm -rf %{buildroot}/*
|
|
| 38 |
+ |
|
| 39 |
+# Pre-install |
|
| 40 |
+%pre |
|
| 41 |
+ |
|
| 42 |
+ # First argument is 1 => New Installation |
|
| 43 |
+ # First argument is 2 => Upgrade |
|
| 44 |
+ |
|
| 45 |
+# Post-install |
|
| 46 |
+%post |
|
| 47 |
+ |
|
| 48 |
+ # First argument is 1 => New Installation |
|
| 49 |
+ # First argument is 2 => Upgrade |
|
| 50 |
+ |
|
| 51 |
+ /sbin/ldconfig |
|
| 52 |
+ |
|
| 53 |
+# Pre-uninstall |
|
| 54 |
+%preun |
|
| 55 |
+ |
|
| 56 |
+ # First argument is 0 => Uninstall |
|
| 57 |
+ # First argument is 1 => Upgrade |
|
| 58 |
+ |
|
| 59 |
+# Post-uninstall |
|
| 60 |
+%postun |
|
| 61 |
+ |
|
| 62 |
+ /sbin/ldconfig |
|
| 63 |
+ |
|
| 64 |
+ # First argument is 0 => Uninstall |
|
| 65 |
+ # First argument is 1 => Upgrade |
|
| 66 |
+ |
|
| 67 |
+%files |
|
| 68 |
+ %defattr(-,root,root,0755) |
|
| 69 |
+ %{_libdir}/*
|
|
| 70 |
+ %{_includedir}/*
|
|
| 71 |
+ |
|
| 72 |
+%changelog |
|
| 73 |
+* Wed Apr 11 2018 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.4.33-1 |
|
| 74 |
+- Initial build. First version |