1
1
# remirepo/fedora spec file for libmongocrypt
2
2
#
3
- # Copyright (c) 2020-2022 Remi Collet
4
- # License: CC-BY-SA
3
+ # Copyright (c) 2020-2023 Remi Collet
4
+ # License: CC-BY-SA-4.0
5
5
# http://creativecommons.org/licenses/by-sa/4.0/
6
6
#
7
7
# Please, preserve the changelog entries
14
14
15
15
Name: %{libname }
16
16
Summary: The companion C library for client side encryption in drivers
17
- Version: 1.6.2
18
- Release: 2 %{?dist }
17
+ Version: 1.7.1
18
+ Release: 1 %{?dist }
19
19
20
20
# see kms-message/THIRD_PARTY_NOTICES
21
21
# kms-message/src/kms_b64.c is ISC
22
+ # IntelRDFPMathLib is BSD-3-Clause
22
23
# everything else is ASL 2.0
23
- License: ASL 2.0 and ISC
24
+ License: Apache- 2.0 AND ISC AND BSD-3-Clause
24
25
URL: https://github.com/%{gh_owner }/%{gh_project }
25
26
26
27
Source0: https://github.com/%{gh_owner }/%{gh_project }/archive/%{version }.tar.gz
27
28
28
29
# drop all reference to static libraries
29
30
Patch0: %{libname }-static.patch
30
- # For GCC 13
31
- Patch1: %{libname }-gcc13 .patch
31
+ # fix i686 build
32
+ Patch1: %{libname }-i686 .patch
32
33
33
- BuildRequires: cmake >= 3.5
34
+ BuildRequires: cmake >= 3.12
34
35
BuildRequires: gcc
35
36
BuildRequires: gcc-c++
36
37
# pkg-config may pull compat-openssl10
@@ -39,6 +40,9 @@ BuildRequires: cmake(bson-1.0) >= 1.11
39
40
# for documentation
40
41
BuildRequires: doxygen
41
42
BuildRequires: make
43
+ # for IntelRDFPMathLib
44
+ BuildRequires: git
45
+ Provides: bundled(IntelRDFPMathLib) = 2.2
42
46
43
47
44
48
%description
@@ -58,11 +62,17 @@ for %{name}.
58
62
59
63
%prep
60
64
%autosetup -n %{gh_project }-%{version }%{? prever:-dev} -p1
61
- echo " %{version}" > VERSION_CURRENT
65
+
66
+ # Gather license files
67
+ tar xf third-party/IntelRDFPMathLib*.tar.xz --strip-components= 1 */eula.txt
68
+ mv eula.txt LICENSE.intelrdfpmathlib
69
+ cp kms-message/THIRD_PARTY_NOTICES LICENSE.kms_b64
70
+ cp kms-message/COPYING LICENSE.kms-message
62
71
63
72
64
73
%build
65
74
%cmake \
75
+ -DBUILD_VERSION=%{version } \
66
76
-DENABLE_PIC:BOOL=ON \
67
77
-DUSE_SHARED_LIBBSON:BOOL=ON \
68
78
-DMONGOCRYPT_MONGOC_DIR:STRING=USE-SYSTEM \
88
98
89
99
90
100
%files
91
- %license LICENSE
101
+ %license LICENSE*
92
102
%{_libdir }/libkms_message.so.%{soname }*
93
103
%{_libdir }/libmongocrypt.so.%{soname }*
94
104
106
116
107
117
108
118
%changelog
109
- *
Wed Dec 7 2022 Remi Collet <[email protected] > -
1.6.2-2
119
+ *
Mon Feb 6 2023 Remi Collet <[email protected] > -
1.7.0-1
120
+ - update to 1.7.1
121
+ - open https://jira.mongodb.org/browse/MONGOCRYPT-532 32-bit not supported
122
+ - fix i686 build using patch from
123
+ https://github.com/mongodb/libmongocrypt/pull/561
124
+
125
+ *
Tue Jan 24 2023 Remi Collet <[email protected] > -
1.7.0-1
126
+ - update to 1.7.0
127
+ - drop patch merged upstream
128
+ - open https://jira.mongodb.org/browse/MONGOCRYPT-521 broken LTO build
129
+ - add upstream patch for LTO
130
+ - open https://jira.mongodb.org/browse/MONGOCRYPT-522 using shared libbson
131
+ - adapt our patch for shared libbson
132
+ - open https://jira.mongodb.org/browse/MONGOCRYPT-523 offline build
133
+ - add upstream patch to use bundled IntelRDFPMathLib20U2
134
+ - open https://jira.mongodb.org/browse/MONGOCRYPT-524 32-bit not supported
135
+
136
+ *
Fri Jan 20 2023 Remi Collet <[email protected] > -
1.6.2-2
110
137
- add patch for GCC 13 from
111
138
https://github.com/mongodb/libmongocrypt/pull/535
112
139
0 commit comments