Updated version 0.3.0.

This commit is contained in:
Vitaly Zaitsev 2020-06-03 13:15:43 +02:00
parent bcd1917c23
commit 1c9bf9df7a
No known key found for this signature in database
GPG Key ID: BF99FC6DD45AB90A
3 changed files with 21 additions and 16 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
/mtxclient-0.1.0.tar.gz /mtxclient-0.1.0.tar.gz
/mtxclient-0.2.0.tar.gz /mtxclient-0.2.0.tar.gz
/mtxclient-0.2.1.tar.gz /mtxclient-0.2.1.tar.gz
/mtxclient-0.3.0.tar.gz

View File

@ -1,20 +1,20 @@
Name: mtxclient Name: mtxclient
Version: 0.2.1 Version: 0.3.0
Release: 4%{?dist} Release: 1%{?dist}
Summary: Client API library for Matrix, built on top of Boost.Asio
License: MIT License: MIT
Summary: Client API library for Matrix, built on top of Boost.Asio
URL: https://github.com/Nheko-Reborn/%{name} URL: https://github.com/Nheko-Reborn/%{name}
Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: spdlog-devel >= 0.16 BuildRequires: spdlog-devel >= 0.16
BuildRequires: boost-devel >= 1.70
BuildRequires: json-devel >= 3.1.2 BuildRequires: json-devel >= 3.1.2
BuildRequires: mpark-variant-devel BuildRequires: mpark-variant-devel
BuildRequires: libsodium-devel BuildRequires: libsodium-devel
BuildRequires: openssl-devel BuildRequires: openssl-devel
BuildRequires: libolm-devel BuildRequires: libolm-devel
BuildRequires: ninja-build BuildRequires: ninja-build
BuildRequires: boost-devel
BuildRequires: zlib-devel BuildRequires: zlib-devel
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: cmake BuildRequires: cmake
@ -28,38 +28,39 @@ Client API library for the Matrix protocol, built on top of Boost.Asio.
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Obsoletes: matrix-structs-devel < %{?epoch:%{epoch}:}%{version}-%{release}
%description devel %description devel
%{summary}. %{summary}.
%prep %prep
# Unpacking main tarball with sources...
%autosetup -p1 %autosetup -p1
mkdir -p %{_target_platform} mkdir -p %{_target_platform}
sed -i '/-Werror/d' CMakeLists.txt
echo "include_directories(%{_includedir}/nlohmann)" >> CMakeLists.txt
echo "include_directories(%{_includedir}/mpark)" >> CMakeLists.txt
%build %build
pushd %{_target_platform} pushd %{_target_platform}
%cmake -G Ninja \ %cmake -G Ninja \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DBUILD_LIB_TESTS=OFF \ -DHUNTER_ENABLED:BOOL=OFF \
-DBUILD_LIB_EXAMPLES=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 \
.. ..
popd popd
%ninja_build -C %{_target_platform} %ninja_build -C %{_target_platform}
%install %install
%ninja_install -C %{_target_platform} %ninja_install -C %{_target_platform}
ln -s libmatrix_client.so.%{version} %{buildroot}%{_libdir}/libmatrix_client.so.0
rm -f %{buildroot}%{_includedir}/{json,variant}.hpp
%files %files
%doc README.md %doc README.md
%license LICENSE %license LICENSE
%{_libdir}/*.so.* %{_libdir}/*.so.0*
%files devel %files devel
%{_includedir}/%{name} %{_includedir}/%{name}
@ -69,6 +70,9 @@ rm -f %{buildroot}%{_includedir}/{json,variant}.hpp
%{_libdir}/*.so %{_libdir}/*.so
%changelog %changelog
* Wed Jun 03 2020 Vitaly Zaitsev <vitaly@easycoding.org> - 0.3.0-1
- Updated version 0.3.0.
* Sat May 30 2020 Jonathan Wakely <jwakely@redhat.com> - 0.2.1-4 * Sat May 30 2020 Jonathan Wakely <jwakely@redhat.com> - 0.2.1-4
- Rebuilt for Boost 1.73 - Rebuilt for Boost 1.73

View File

@ -1 +1 @@
SHA512 (mtxclient-0.2.1.tar.gz) = 3362e9ae44ebeb22ac036ba2ac63682eeb97248754bf4b4029ce381d6d99501a94cd82a7b2e23aefe902b4c43389ee48e5e465679ce7fbebbf4f4d06cbc19659 SHA512 (mtxclient-0.3.0.tar.gz) = 113eb2c1042e0aeea6607fae0b7fd0ff1655d6b902fa11a3492561c53240901e641f53d413810e932ac210e519026016c5fac38bda1592336c95b2d79781557e