mtxclient/mtxclient.spec

85 lines
2.1 KiB
RPMSpec
Raw Normal View History

2018-07-26 15:09:15 +00:00
Name: mtxclient
2023-02-20 15:46:01 +00:00
Version: 0.9.2
2024-03-27 11:20:13 +00:00
Release: 8%{?dist}
2018-07-26 15:09:15 +00:00
License: MIT
2020-06-03 11:15:43 +00:00
Summary: Client API library for Matrix, built on top of Boost.Asio
URL: https://github.com/Nheko-Reborn/%{name}
2020-06-03 11:15:43 +00:00
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
2018-07-26 15:09:15 +00:00
2023-06-28 08:39:27 +00:00
BuildRequires: cmake(fmt) >= 9.1.0
BuildRequires: cmake(mpark_variant)
2021-11-19 15:58:37 +00:00
BuildRequires: cmake(nlohmann_json) >= 3.2.0
2022-07-23 08:52:22 +00:00
BuildRequires: cmake(Olm) >= 3.2.12
2021-11-19 15:58:37 +00:00
BuildRequires: cmake(spdlog) >= 1.0.0
BuildRequires: pkgconfig(coeurl) >= 0.3.0
BuildRequires: pkgconfig(libcrypto)
2021-11-19 15:58:37 +00:00
BuildRequires: pkgconfig(libevent)
BuildRequires: pkgconfig(openssl)
2023-01-13 07:52:20 +00:00
BuildRequires: pkgconfig(re2)
BuildRequires: pkgconfig(zlib)
2018-07-26 15:09:15 +00:00
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: ninja-build
2018-07-26 15:09:15 +00:00
%description
Client API library for the Matrix protocol, built on top of Boost.Asio.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%description devel
%{summary}.
%prep
%autosetup -p1
2018-07-26 15:09:15 +00:00
%build
2020-07-21 09:22:39 +00:00
%cmake -G Ninja \
2018-07-26 15:09:15 +00:00
-DCMAKE_BUILD_TYPE=Release \
2020-06-03 11:15:43 +00:00
-DHUNTER_ENABLED:BOOL=OFF \
2021-11-19 15:58:37 +00:00
-DUSE_BUNDLED_COEURL:BOOL=OFF \
2020-06-03 11:15:43 +00:00
-DUSE_BUNDLED_GTEST:BOOL=OFF \
-DUSE_BUNDLED_JSON:BOOL=OFF \
2021-11-19 15:58:37 +00:00
-DUSE_BUNDLED_LIBCURL:BOOL=OFF \
-DUSE_BUNDLED_LIBEVENT:BOOL=OFF \
-DUSE_BUNDLED_OLM:BOOL=OFF \
2020-06-03 11:15:43 +00:00
-DUSE_BUNDLED_OPENSSL:BOOL=OFF \
2021-11-19 15:58:37 +00:00
-DUSE_BUNDLED_SPDLOG:BOOL=OFF \
2021-01-20 12:08:50 +00:00
-DASAN:BOOL=OFF \
-DCOVERAGE:BOOL=OFF \
-DIWYU:BOOL=OFF \
2020-06-03 11:15:43 +00:00
-DBUILD_LIB_TESTS:BOOL=OFF \
2020-07-21 09:22:39 +00:00
-DBUILD_LIB_EXAMPLES:BOOL=OFF
%cmake_build
2018-07-26 15:09:15 +00:00
%install
2020-07-21 09:22:39 +00:00
%cmake_install
ln -s libmatrix_client.so.%{version} %{buildroot}%{_libdir}/libmatrix_client.so.0
2018-07-26 15:09:15 +00:00
%files
%doc README.md
%license LICENSE
2020-06-03 11:15:43 +00:00
%{_libdir}/*.so.0*
2018-07-26 15:09:15 +00:00
%files devel
%{_includedir}/%{name}
%{_includedir}/mtx
%{_includedir}/mtx.hpp
2018-07-26 15:09:15 +00:00
%{_libdir}/cmake/MatrixClient
%{_libdir}/*.so
%changelog
2024-03-27 11:20:13 +00:00
* Wed Mar 27 2024 Vitaly <vitaly@easycoding.org> - 0.9.2-8
2024-03-27 11:14:31 +00:00
- Rebuilt due to json update.
2024-02-24 03:16:32 +00:00
* Sat Feb 24 2024 Paul Wouters <paul.wouters@aiven.io> - 0.9.2-7
- Rebuilt for libre2.so.11 bump
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild