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
|
Name: libmongocrypt
Prefix: /usr
Version: %{dynamic_version}
Release: %{dynamic_release}%{?dist}
Summary: library to perform field-level encryption
License: Apache License 2.0
URL: https://github.com/mongodb/libmongocrypt
Group: Development/Libraries
Requires: libmongocrypt-devel = %{version}, libmongocrypt-libs = %{version}
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
libmongocrypt facilitates the encryption and decryption, at the field
level, of data stored in MongoDB.
%package devel
Summary: library to perform field-level encryption - dev files
Group: Development/Libraries
Requires: libmongocrypt-libs = %{version}
%description devel
libmongocrypt facilitates the encryption and decryption, at the field
level, of data stored in MongoDB.
.
This package contains the libmongocrypt and libkms_message development
headers and libraries.
%package libs
Summary: library to perform field-level encryption - runtime files
Group: Development/Libraries
%description libs
This package contains the libmongocrypt and libkms_message runtime
libraries.
%prep
%setup
%build
%install
mkdir -p $RPM_BUILD_ROOT/usr
cp -rv lib* $RPM_BUILD_ROOT/usr
cp -rv include $RPM_BUILD_ROOT/usr
find $RPM_BUILD_ROOT/usr -name '*.pc' -exec sed -i -e 's|^prefix=.*|prefix=/usr|' {} \;
%clean
rm -rf $RPM_BUILD_ROOT
%files
%files devel
%{_includedir}/*
%{_prefix}/lib*/*.a
%{_prefix}/lib*/lib*.so
%{_prefix}/lib*/pkgconfig/*
%{_prefix}/lib*/cmake/*
%files libs
%{_prefix}/lib*/lib*.so.*
%changelog
* Tue Aug 06 2019 Roberto C. Sanchez <roberto@connexer.com>
- Initial release
|