mirror of
https://abf.rosa.ru/djam/olm.git
synced 2025-02-23 18:12:49 +00:00
53 lines
1 KiB
RPMSpec
53 lines
1 KiB
RPMSpec
|
%define major 3
|
||
|
%define libname %mklibname %{name} %{major}
|
||
|
%define devname %mklibname %{name} -d
|
||
|
|
||
|
Name: olm
|
||
|
Version: 3.2.10
|
||
|
Release: 1
|
||
|
Summary: An implementation of the Double Ratchet cryptographic ratchet in C++
|
||
|
URL: https://gitlab.matrix.org/matrix-org/olm
|
||
|
Source0: %{url}/-/archive/%{version}/%{name}-%{version}.tar.gz
|
||
|
Group: Development/Other
|
||
|
License: ASL 2.0
|
||
|
BuildRequires: cmake
|
||
|
|
||
|
%description
|
||
|
An implementation of the Double Ratchet cryptographic
|
||
|
written in C and C++11 and exposed as a C API.
|
||
|
|
||
|
%package -n %{libname}
|
||
|
|
||
|
%description -n %{libname}
|
||
|
Library for %{name}
|
||
|
|
||
|
%files -n %{libname}
|
||
|
%doc README.md LICENSE
|
||
|
%{_libdir}/lib%{name}*.so.*
|
||
|
|
||
|
%package -n %{devname}
|
||
|
Requires: %{libname} = %{version}-%{release}
|
||
|
|
||
|
%description -n %{devname}
|
||
|
Development library for %{name}
|
||
|
|
||
|
%files -n %{devname}
|
||
|
%doc LICENSE
|
||
|
%{_includedir}/*/*.h
|
||
|
%{_libdir}/lib%{name}.so
|
||
|
%{_libdir}/cmake/Olm/*.cmake
|
||
|
%{_libdir}/pkgconfig/olm.pc
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
sed -i '/libdir/s/${exec_prefix}\//${exec_prefix}/' olm.pc.in
|
||
|
|
||
|
|
||
|
%build
|
||
|
%cmake
|
||
|
%make
|
||
|
|
||
|
%install
|
||
|
%makeinstall_std -C build
|
||
|
|