## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global forgeurl https://github.com/dino/libomemo-c Version: 0.5.0 %forgemeta Name: libomemo-c Release: %autorelease Summary: Fork of libsignal-protocol-c adding support for OMEMO XEP-0384 0.5.0+ # The library is under GPL-3.0-only license, except the CMakeModules/FindCheck.cmake file is BSD-3-Clause License: GPL-3.0-only AND BSD-3-Clause URL: %{forgeurl} Source0: %{forgesource} # remove bundled version of protobuf-c and link to system lib Patch0: https://github.com/dino/libomemo-c/commit/80dd43d3375148b3cd67f99b9df2fd8b64267f3e.patch # add '-lprotobuf-c' to pkg-config's Libs: line Patch1: https://github.com/dino/libomemo-c/commit/8b6f2ebfe16c27e1037c9a3f4fcbb78ad9da10ea.patch BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: protobuf-c-devel # testing dependencies BuildRequires: check-devel BuildRequires: openssl-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: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %forgeautosetup -p1 %build %cmake \ -GNinja \ -DBUILD_TESTING=ON \ %cmake_build %install %cmake_install %check %ctest %files %license LICENSE %doc README.md %{_libdir}/libomemo-c.so.0* %files devel %dir %{_includedir}/omemo %{_includedir}/omemo/*.h %{_libdir}/libomemo-c.so %{_libdir}/pkgconfig/libomemo-c.pc %changelog * Thu Jul 20 2023 Fedora Release Engineering - 0.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jun 10 2023 topazus - 0.5.0-2 - add patches * Sat Jun 10 2023 topazus - 0.5.0-1 - initial import from rhbz#2212599