c83f6fd
Name: mtxclient
d5fbddc
Version: 0.9.2
83b637d
Release: 8%{?dist}
c83f6fd
c83f6fd
License: MIT
1c9bf9d
Summary: Client API library for Matrix, built on top of Boost.Asio
3382d4b
URL: https://github.com/Nheko-Reborn/%{name}
1c9bf9d
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
c83f6fd
27f151a
BuildRequires: cmake(fmt) >= 9.1.0
beb2258
BuildRequires: cmake(mpark_variant)
cd8ab90
BuildRequires: cmake(nlohmann_json) >= 3.2.0
e89b7c9
BuildRequires: cmake(Olm) >= 3.2.12
cd8ab90
BuildRequires: cmake(spdlog) >= 1.0.0
beb2258
2e11563
BuildRequires: pkgconfig(coeurl) >= 0.3.0
beb2258
BuildRequires: pkgconfig(libcrypto)
cd8ab90
BuildRequires: pkgconfig(libevent)
beb2258
BuildRequires: pkgconfig(openssl)
6caf000
BuildRequires: pkgconfig(re2)
beb2258
BuildRequires: pkgconfig(zlib)
beb2258
c83f6fd
BuildRequires: cmake
c83f6fd
BuildRequires: gcc
beb2258
BuildRequires: gcc-c++
beb2258
BuildRequires: ninja-build
c83f6fd
c83f6fd
%description
c83f6fd
Client API library for the Matrix protocol, built on top of Boost.Asio.
c83f6fd
c83f6fd
%package devel
c83f6fd
Summary: Development files for %{name}
c83f6fd
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
c83f6fd
c83f6fd
%description devel
c83f6fd
%{summary}.
c83f6fd
c83f6fd
%prep
3ddda46
%autosetup -p1
c83f6fd
c83f6fd
%build
efe22a0
%cmake -G Ninja \
c83f6fd
    -DCMAKE_BUILD_TYPE=Release \
1c9bf9d
    -DHUNTER_ENABLED:BOOL=OFF \
cd8ab90
    -DUSE_BUNDLED_COEURL:BOOL=OFF \
1c9bf9d
    -DUSE_BUNDLED_GTEST:BOOL=OFF \
1c9bf9d
    -DUSE_BUNDLED_JSON:BOOL=OFF \
cd8ab90
    -DUSE_BUNDLED_LIBCURL:BOOL=OFF \
cd8ab90
    -DUSE_BUNDLED_LIBEVENT:BOOL=OFF \
cd8ab90
    -DUSE_BUNDLED_OLM:BOOL=OFF \
1c9bf9d
    -DUSE_BUNDLED_OPENSSL:BOOL=OFF \
cd8ab90
    -DUSE_BUNDLED_SPDLOG:BOOL=OFF \
7b2e76f
    -DASAN:BOOL=OFF \
7b2e76f
    -DCOVERAGE:BOOL=OFF \
7b2e76f
    -DIWYU:BOOL=OFF \
1c9bf9d
    -DBUILD_LIB_TESTS:BOOL=OFF \
efe22a0
    -DBUILD_LIB_EXAMPLES:BOOL=OFF
efe22a0
%cmake_build
c83f6fd
c83f6fd
%install
efe22a0
%cmake_install
6c2959a
ln -s libmatrix_client.so.%{version} %{buildroot}%{_libdir}/libmatrix_client.so.0
c83f6fd
c83f6fd
%files
c83f6fd
%doc README.md
c83f6fd
%license LICENSE
1c9bf9d
%{_libdir}/*.so.0*
c83f6fd
c83f6fd
%files devel
c83f6fd
%{_includedir}/%{name}
3ddda46
%{_includedir}/mtx
3ddda46
%{_includedir}/mtx.hpp
c83f6fd
%{_libdir}/cmake/MatrixClient
c83f6fd
%{_libdir}/*.so
c83f6fd
c83f6fd
%changelog
83b637d
* Wed Mar 27 2024 Vitaly <vitaly@easycoding.org> - 0.9.2-8
9a23653
- Rebuilt due to json update.
9a23653
9ec2f5d
* Sat Feb 24 2024 Paul Wouters <paul.wouters@aiven.io> - 0.9.2-7
9ec2f5d
- Rebuilt for libre2.so.11 bump
9ec2f5d
c8431fe
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-6
c8431fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild