Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37838584
en ru br
ALT Linux repos
S:0.5.0-alt1

Group :: System/Libraries
RPM: libomemo-c

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_enable check

Name: libomemo-c
Version: 0.5.0
Release: alt1

Summary: OMEMO C Library
License: GPL-3.0
Group: System/Libraries
Url: https://github.com/dino/libomemo-c

Vcs: https://github.com/dino/libomemo-c.git
Source: %url/archive/v%version/%name-version.tar.gz

BuildRequires(pre): rpm-macros-cmake
BuildRequires: cmake gcc-c++ libgcrypt-devel libssl-devel
%{?_enable_check:BuildRequires: ctest libcheck-devel}

%description
This is a fork of libsignal-protocol-c, an implementation of Signal's
ratcheting forward secrecy protocol that works in synchronous and
asynchronous messaging. The fork adds support for OMEMO as defined in
XEP-0384 versions 0.3.0 and later.

%package devel
Summary: Headers for developing programs that will use %name
Group: Development/C
Requires: %name = %EVR

%description devel
This package contains the libraries and headers needed for developing
applications with %name.

%prep
%setup
sed -i 's|SIGNAL_PROTOCOL_C_VERSION|OMEMO_C_VERSION|' src/%name.pc.in

%build
%cmake -DCMAKE_BUILD_TYPE=Release \
   -DBUILD_STATIC_LIBS=FALSE \
   -DBUILD_SHARED_LIBS=TRUE \
   %{?_enable_check:-DBUILD_TESTING=TRUE}
%nil
%cmake_build

%install
%cmake_install

%check
%cmake_build -t test

%files
%_libdir/%name.so.*
%doc README*

%files devel
%_includedir/omemo
%_libdir/%name.so
%_pkgconfigdir/%name.pc

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin