From 8bd018c8cae7e6c48a365a7ff05fa401c3269333 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 18 Jan 2020 08:06:14 +0100 Subject: modernize spec from review #1792224 add generated html documentation --- libmongocrypt.spec | 20 +++++++++++++------- 1 file 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 - 1.0.1-2 +- modernize spec from review #1792224 +- add generated html documentation + * Fri Jan 17 2020 Remi Collet - 1.0.1-1 - initial package - fix installation layout using patch from -- cgit