Search
SailfishOS Open Build Service
>
Projects
>
c
:
telepathy
:
devel
:
tank
>
libolm
> _service:tar_git:libolm.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:libolm.spec of Package libolm
Name: libolm Summary: Implementation of the olm and megolm cryptographic ratchets %define version_major 3 %define version_minor 1 %define version_patch 4 Version: 3.1.4+master.20200213163230.0fd93ae Release: 1 Group: Development/Libraries License: LGPL2.1 URL: https://gitlab.matrix.org/matrix-org/olm Source0: %{name}-%{version}.tar.xz BuildRequires: cmake >= 3.1 BuildRequires: opt-gcc %description %{summary}. %package devel Summary: Development files for olm library Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel %{summary}. %prep %setup -q -n %{name}-%{version}/olm %build %define cmake_build %__cmake --build . %define cmake_install DESTDIR=%{?buildroot} %__cmake --build . --target install %cmake \ -DCMAKE_CXX_COMPILER=/opt/gcc/bin/g++ \ -DCMAKE_SHARED_LINKER_FLAGS="-L/opt/gcc/lib -static-libstdc++" \ -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \ -DBUILD_SHARED_LIBS=ON %cmake_build %install rm -rf %{buildroot} %cmake_install %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %{_libdir}/libolm.so.%{version_major}.%{version_minor}.%{version_patch} %{_libdir}/libolm.so.%{version_major} %{_libdir}/libolm.so %files devel %defattr(-,root,root,-) %{_includedir} %{_libdir}/libolm.so %{_libdir}/cmake/Olm