2017-03-31 08:40:59 +00:00
|
|
|
#
|
|
|
|
# spec file for package libsignal-protocol-c
|
|
|
|
#
|
2020-03-30 11:30:51 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2017-03-31 08:40:59 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-02-26 11:51:36 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-03-31 08:40:59 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define c_lib libsignal-protocol-c2
|
|
|
|
Name: libsignal-protocol-c
|
2020-03-30 11:30:51 +00:00
|
|
|
Version: 2.3.3
|
2017-03-31 08:40:59 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Signal Protocol C Library
|
2018-05-14 11:15:14 +00:00
|
|
|
License: GPL-3.0-only
|
2017-03-31 08:40:59 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-03-30 11:30:51 +00:00
|
|
|
URL: https://github.com/signalapp/libsignal-protocol-c/
|
2019-02-26 09:47:03 +00:00
|
|
|
Source: https://github.com/signalapp/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: check-devel >= 0.9.10
|
2017-03-31 08:40:59 +00:00
|
|
|
BuildRequires: cmake >= 2.8.4
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(openssl) >= 1.0
|
|
|
|
|
|
|
|
%description
|
|
|
|
The Signal Protocol is a ratcheting forward secrecy protocol that works in synchronous and asynchronous messaging environments.
|
|
|
|
|
|
|
|
%package -n libsignal-protocol-c-devel
|
|
|
|
Summary: Development files for libsignal-protocol-c
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{c_lib} = %{version}
|
|
|
|
|
|
|
|
%description -n libsignal-protocol-c-devel
|
|
|
|
Development files and headers for libsignal-protocol-c
|
|
|
|
|
|
|
|
%package -n %{c_lib}
|
|
|
|
Summary: Signal Protocol C Library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{c_lib}
|
|
|
|
The libsignal-protocol-c library is a forward secrecy protocol library written in C.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2019-02-26 09:47:03 +00:00
|
|
|
%cmake \
|
|
|
|
-DBUILD_TESTING=ON
|
|
|
|
%if %suse_version > 1500
|
|
|
|
%cmake_build
|
|
|
|
%else
|
|
|
|
%make_jobs
|
|
|
|
%endif
|
2017-03-31 08:40:59 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
2019-02-26 09:47:03 +00:00
|
|
|
%check
|
|
|
|
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
|
|
|
|
%ctest
|
|
|
|
|
2017-03-31 08:40:59 +00:00
|
|
|
%post -n %{c_lib} -p /sbin/ldconfig
|
|
|
|
%postun -n %{c_lib} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{c_lib}
|
2018-05-14 11:15:14 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
2017-03-31 08:40:59 +00:00
|
|
|
%{_libdir}/libsignal-protocol-c.so.2
|
2020-03-30 11:30:51 +00:00
|
|
|
%{_libdir}/libsignal-protocol-c.so.2.3.3
|
2017-03-31 08:40:59 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%dir %{_includedir}/signal
|
|
|
|
%{_includedir}/signal/*.h
|
|
|
|
%{_libdir}/libsignal-protocol-c.so
|
2018-05-14 11:15:14 +00:00
|
|
|
%{_libdir}/pkgconfig/libsignal-protocol-c.pc
|
2017-03-31 08:40:59 +00:00
|
|
|
|
|
|
|
%changelog
|