forked from vmware/photon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaws-sdk-cpp.spec
182 lines (147 loc) · 4.66 KB
/
aws-sdk-cpp.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
%define debug_package %{nil}
Summary: aws sdk for c++
Group: Development/Libraries
Name: aws-sdk-cpp
Version: 1.4.33
Release: 4%{?dist}
Vendor: VMware, Inc.
Distribution: Photon
License: Apache 2.0
Url: https://github.com/aws/aws-sdk-cpp
Source0: aws-sdk-cpp-%{version}.tar.gz
%define sha1 aws-sdk-cpp=5db6bed30cb85c59c7a3a58034f222007e6a9e49
Patch0: aws-sdk-cpp-Build-foxes-for-GCC9.patch
Requires: openssl-devel
Requires: curl-devel
Requires: zlib-devel
Requires: aws-sdk-core = %{version}-%{release}
Requires: aws-sdk-kinesis = %{version}-%{release}
Requires: aws-sdk-s3 = %{version}-%{release}
BuildRequires: cmake
BuildRequires: curl-devel
BuildRequires: openssl-devel
BuildRequires: zlib-devel
%description
The AWS SDK for C++ provides a modern C++ (version C++ 11 or later) interface for Amazon Web Services (AWS).
%package -n aws-sdk-core
Summary: aws sdk core
Group: Development/Libraries
Requires: aws-core-libs = %{version}-%{release}
%description -n aws-sdk-core
aws sdk cpp core
%package -n aws-core-libs
Summary: aws core libs
Group: Development/Libraries
Requires: openssl-devel
Requires: curl-devel
Requires: zlib-devel
%description -n aws-core-libs
aws core libs
%package -n aws-sdk-kinesis
Summary: aws sdk kinesis
Group: Development/Libraries
Requires: aws-sdk-core = %{version}-%{release}
Requires: aws-kinesis-libs = %{version}-%{release}
%description -n aws-sdk-kinesis
aws sdk cpp for kinesis
%package -n aws-kinesis-libs
Summary: aws kinesis libs
Group: Development/Libraries
Requires: aws-core-libs = %{version}-%{release}
%description -n aws-kinesis-libs
aws kinesis libs
%package -n aws-sdk-s3
Summary: aws sdk s3
Group: Development/Libraries
Requires: aws-sdk-core = %{version}-%{release}
Requires: aws-s3-libs = %{version}-%{release}
%description -n aws-sdk-s3
aws sdk cpp for s3
%package -n aws-s3-libs
Summary: aws s3 libs
Group: Development/Libraries
Requires: aws-core-libs = %{version}-%{release}
%description -n aws-s3-libs
aws s3 libs
%prep
%autosetup -p1
%build
mkdir build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
-DCMAKE_BUILD_TYPE=Release ..
for component in "core" "kinesis" "s3"; do
cd aws-cpp-sdk-$component
make %{?_smp_mflags}
cd ..
done
%install
cd build
for component in "core" "kinesis" "s3"; do
cd aws-cpp-sdk-$component
make DESTDIR=%{buildroot} install
cd ..
done
rm -rf %{buildroot}%{_lib64dir}/cmake
%clean
rm -rf %{buildroot}/*
# Pre-install
%pre
# First argument is 1 => New Installation
# First argument is 2 => Upgrade
# Post-install
%post
# First argument is 1 => New Installation
# First argument is 2 => Upgrade
/sbin/ldconfig
# Pre-uninstall
%preun
# First argument is 0 => Uninstall
# First argument is 1 => Upgrade
# Post-uninstall
%postun
/sbin/ldconfig
# First argument is 0 => Uninstall
# First argument is 1 => Upgrade
%files
%defattr(-,root,root,0755)
%exclude %{_includedir}/aws/core
%exclude %{_includedir}/aws/kinesis
%exclude %{_includedir}/aws/s3
%exclude %{_lib64dir}/pkgconfig/aws-cpp-sdk-core.pc
%exclude %{_lib64dir}/pkgconfig/aws-cpp-sdk-kinesis.pc
%exclude %{_lib64dir}/pkgconfig/aws-cpp-sdk-s3.pc
%exclude %{_lib64dir}/libaws-cpp-sdk-core.so
%exclude %{_lib64dir}/libaws-cpp-sdk-kinesis.so
%exclude %{_lib64dir}/libaws-cpp-sdk-s3.so
%files -n aws-sdk-core
%defattr(-,root,root,0755)
%{_includedir}/aws/core/*
%{_lib64dir}/pkgconfig/aws-cpp-sdk-core.pc
%files -n aws-core-libs
%defattr(-,root,root,0755)
%{_lib64dir}/libaws-cpp-sdk-core.so
%files -n aws-sdk-kinesis
%defattr(-,root,root,0755)
%{_includedir}/aws/kinesis/*
%{_lib64dir}/pkgconfig/aws-cpp-sdk-kinesis.pc
%files -n aws-kinesis-libs
%defattr(-,root,root,0755)
%{_lib64dir}/libaws-cpp-sdk-kinesis.so
%files -n aws-sdk-s3
%defattr(-,root,root,0755)
%{_includedir}/aws/s3/*
%{_lib64dir}/pkgconfig/aws-cpp-sdk-s3.pc
%files -n aws-s3-libs
%defattr(-,root,root,0755)
%{_lib64dir}/libaws-cpp-sdk-s3.so
%changelog
* Wed Aug 04 2021 Satya Naga Vasamsetty <[email protected]> 1.4.33-4
- Bump up release for openssl
* Tue Sep 29 2020 Satya Naga Vasamsetty <[email protected]> 1.4.33-3
- openssl 1.1.1
* Fri Apr 03 2020 Alexey Makhalov <[email protected]> 1.4.33-2
- Fix compilation issue with gcc-8.4.0
* Thu Aug 30 2018 Anish Swaminathan <[email protected]> 1.4.33-1
- Initial build. First version