2020-06-03 14:52:57 +00:00
|
|
|
%bcond_without clang
|
|
|
|
|
|
|
|
%if %{with clang}
|
|
|
|
%global optflags %(echo %{optflags} | sed -e 's/-mcet//g' -e 's/-fcf-protection//g' -e 's/-fstack-clash-protection//g' -e 's/$/-Qunused-arguments -Wno-unknown-warning-option -Wno-deprecated-declarations/')
|
|
|
|
%endif
|
|
|
|
|
2018-07-26 15:09:15 +00:00
|
|
|
Name: mtxclient
|
2020-06-03 11:15:43 +00:00
|
|
|
Version: 0.3.0
|
|
|
|
Release: 1%{?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
|
2019-02-10 12:09:30 +00:00
|
|
|
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
|
|
|
|
|
|
|
BuildRequires: spdlog-devel >= 0.16
|
2020-06-03 11:15:43 +00:00
|
|
|
BuildRequires: boost-devel >= 1.70
|
2018-07-26 15:09:15 +00:00
|
|
|
BuildRequires: json-devel >= 3.1.2
|
|
|
|
BuildRequires: mpark-variant-devel
|
|
|
|
BuildRequires: libsodium-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: libolm-devel
|
|
|
|
BuildRequires: ninja-build
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
2020-06-03 14:52:57 +00:00
|
|
|
%if %{with clang}
|
|
|
|
BuildRequires: compiler-rt
|
|
|
|
BuildRequires: clang
|
|
|
|
BuildRequires: llvm
|
|
|
|
%endif
|
|
|
|
|
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
|
2018-09-02 13:38:57 +00:00
|
|
|
%autosetup -p1
|
2018-07-26 15:09:15 +00:00
|
|
|
mkdir -p %{_target_platform}
|
|
|
|
|
|
|
|
%build
|
|
|
|
pushd %{_target_platform}
|
|
|
|
%cmake -G Ninja \
|
2020-06-03 14:52:57 +00:00
|
|
|
%if %{with clang}
|
|
|
|
-DCMAKE_C_COMPILER=%{_bindir}/clang \
|
|
|
|
-DCMAKE_CXX_COMPILER=%{_bindir}/clang++ \
|
|
|
|
-DCMAKE_AR=%{_bindir}/llvm-ar \
|
|
|
|
-DCMAKE_RANLIB=%{_bindir}/llvm-ranlib \
|
|
|
|
-DCMAKE_LINKER=%{_bindir}/llvm-ld \
|
|
|
|
-DCMAKE_OBJDUMP=%{_bindir}/llvm-objdump \
|
|
|
|
-DCMAKE_NM=%{_bindir}/llvm-nm \
|
|
|
|
%else
|
|
|
|
-DCMAKE_AR=%{_bindir}/gcc-ar \
|
|
|
|
-DCMAKE_RANLIB=%{_bindir}/gcc-ranlib \
|
|
|
|
-DCMAKE_NM=%{_bindir}/gcc-nm \
|
|
|
|
%endif
|
2018-07-26 15:09:15 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2020-06-03 11:15:43 +00:00
|
|
|
-DHUNTER_ENABLED:BOOL=OFF \
|
|
|
|
-DUSE_BUNDLED_BOOST:BOOL=OFF \
|
|
|
|
-DUSE_BUNDLED_SPDLOG:BOOL=OFF \
|
|
|
|
-DUSE_BUNDLED_OLM:BOOL=OFF \
|
|
|
|
-DUSE_BUNDLED_GTEST:BOOL=OFF \
|
|
|
|
-DUSE_BUNDLED_JSON:BOOL=OFF \
|
|
|
|
-DUSE_BUNDLED_OPENSSL:BOOL=OFF \
|
|
|
|
-DUSE_BUNDLED_SODIUM:BOOL=OFF \
|
|
|
|
-DBUILD_LIB_TESTS:BOOL=OFF \
|
|
|
|
-DBUILD_LIB_EXAMPLES:BOOL=OFF \
|
2018-07-26 15:09:15 +00:00
|
|
|
..
|
|
|
|
popd
|
|
|
|
%ninja_build -C %{_target_platform}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ninja_install -C %{_target_platform}
|
|
|
|
|
|
|
|
%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}
|
2018-09-02 13:38:57 +00:00
|
|
|
%{_includedir}/mtx
|
|
|
|
%{_includedir}/mtx.hpp
|
2018-07-26 15:09:15 +00:00
|
|
|
%{_libdir}/cmake/MatrixClient
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
|
|
|
%changelog
|
2020-06-03 11:15:43 +00:00
|
|
|
* Wed Jun 03 2020 Vitaly Zaitsev <vitaly@easycoding.org> - 0.3.0-1
|
|
|
|
- Updated version 0.3.0.
|
|
|
|
|
2020-05-30 07:13:14 +00:00
|
|
|
* Sat May 30 2020 Jonathan Wakely <jwakely@redhat.com> - 0.2.1-4
|
|
|
|
- Rebuilt for Boost 1.73
|
|
|
|
|
2020-01-29 14:17:00 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-25 17:55:43 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-05-23 13:03:32 +00:00
|
|
|
* Thu May 23 2019 Vitaly Zaitsev <vitaly@easycoding.org> - 0.2.1-1
|
|
|
|
- Updated version 0.2.1 (regular release).
|
|
|
|
|
2019-02-01 11:41:02 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2019-01-25 11:30:23 +00:00
|
|
|
* Fri Jan 25 2019 Jonathan Wakely <jwakely@redhat.com> - 0.2.0-3
|
|
|
|
- Rebuilt for Boost 1.69
|
|
|
|
|
2019-01-05 15:00:54 +00:00
|
|
|
* Sat Jan 05 2019 Vitaly Zaitsev <vitaly@easycoding.org> - 0.2.0-2
|
|
|
|
- Rebuilt due to libolm update.
|
|
|
|
|
2018-09-22 16:23:06 +00:00
|
|
|
* Sat Sep 22 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 0.2.0-1
|
|
|
|
- Updated version 0.2.0 (regular release).
|
|
|
|
|
2018-09-02 14:01:02 +00:00
|
|
|
* Sun Sep 02 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 0.1.0-11
|
|
|
|
- Obsolete matrix-structs package correctly.
|
|
|
|
|
2018-09-02 13:38:57 +00:00
|
|
|
* Sun Sep 02 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 0.1.0-10
|
|
|
|
- Updated version 0.1.0 (regular release).
|
|
|
|
|
2018-08-12 17:54:47 +00:00
|
|
|
* Sun Aug 12 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 0.1.0-9.20180808git1089467
|
|
|
|
- Updated to latest snapshot.
|
|
|
|
|
2018-07-31 13:13:54 +00:00
|
|
|
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 0.1.0-8.20180726gitca66424
|
|
|
|
- Rebuild with fixed binutils
|
|
|
|
|
2018-07-28 13:28:16 +00:00
|
|
|
* Fri Jul 27 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 0.1.0-7.20180726gitca66424
|
|
|
|
- Updated to latest snapshot.
|
|
|
|
|
2018-07-27 12:55:19 +00:00
|
|
|
* Fri Jul 27 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.0-6.20180714git2f519d2
|
|
|
|
- Rebuild for new binutils
|
|
|
|
|
2018-07-26 15:09:15 +00:00
|
|
|
* Thu Jul 26 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 0.1.0-5.20180714git2f519d2
|
|
|
|
- Minor SPEC fixes.
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 0.1.0-4.20180714git2f519d2
|
|
|
|
- Updated to latest snapshot.
|
|
|
|
|
|
|
|
* Sun Jul 08 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 0.1.0-3.20180707git708c8c6
|
|
|
|
- Updated to latest snapshot.
|
|
|
|
|
|
|
|
* Sun Jul 01 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 0.1.0-2.20180627git7349126
|
|
|
|
- Updated to latest snapshot.
|
|
|
|
|
|
|
|
* Sun Jun 24 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 0.1.0-2.20180622git96fd35e
|
|
|
|
- Initial SPEC release.
|