summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-01-18 08:06:14 +0100
committerRemi Collet <remi@remirepo.net>2020-01-18 08:06:14 +0100
commit8bd018c8cae7e6c48a365a7ff05fa401c3269333 (patch)
treea470763cc4279f7c2ec868de957b5a0c0a836bec
parentfd700e084d7c9874c9d01deeed659956ac255420 (diff)
modernize spec from review #1792224
add generated html documentation
-rw-r--r--libmongocrypt.spec20
1 files changed, 13 insertions, 7 deletions
diff --git a/libmongocrypt.spec b/libmongocrypt.spec
index e6bef6e..c6729aa 100644
--- a/libmongocrypt.spec
+++ b/libmongocrypt.spec
@@ -15,7 +15,7 @@
Name: %{libname}
Summary: The companion C library for client side encryption in drivers
Version: 1.0.1
-Release: 1%{?dist}
+Release: 2%{?dist}
# see kms-message/THIRD_PARTY_NOTICES
# kms-message/src/kms_b64.c is ISC
@@ -36,6 +36,8 @@ BuildRequires: gcc-c++
BuildRequires: openssl-devel
# should be libson-1.0 only available in 1.16
BuildRequires: cmake(libbson-1.0) >= 1.11
+# for documentation
+BuildRequires: doxygen
%description
@@ -54,9 +56,7 @@ for %{name}.
%prep
-%setup -q -n %{gh_project}-%{version}%{?prever:-dev}
-%patch0 -p1
-%patch1 -p1
+%autosetup -n %{gh_project}-%{version}%{?prever:-dev} -p1
echo "%{version}" >VERSION_CURRENT
@@ -67,11 +67,13 @@ echo "%{version}" >VERSION_CURRENT
-DENABLE_STATIC:BOOL=OFF \
.
-make %{?_smp_mflags}
+%make_build
+
+doxygen ./doc/Doxygen
%install
-make install DESTDIR=%{buildroot}
+%make_install
%check
@@ -79,7 +81,6 @@ make test
%files
-%{!?_licensedir:%global license %%doc}
%license LICENSE
%{_libdir}/libkms_message.so.%{soname}*
%{_libdir}/libmongocrypt.so.%{soname}*
@@ -87,6 +88,7 @@ make test
%files devel
%doc *.md
+%doc doc/html
%{_includedir}/kms_message
%{_includedir}/mongocrypt
%{_libdir}/libkms_message.so
@@ -97,6 +99,10 @@ make test
%changelog
+* Sat Jan 18 2020 Remi Collet <remi@remirepo.net> - 1.0.1-2
+- modernize spec from review #1792224
+- add generated html documentation
+
* Fri Jan 17 2020 Remi Collet <remi@remirepo.net> - 1.0.1-1
- initial package
- fix installation layout using patch from