Compare commits

..

1 Commits

Author SHA1 Message Date
Gwyn Ciesla
baabd66292 "Adding package.cfg file" 2019-08-05 08:49:03 -05:00
6 changed files with 5 additions and 81 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
/mtxclient-*.tar.gz

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# mtxclient
The mtxclient package

View File

@ -1,2 +0,0 @@
* Wed Mar 27 2024 Vitaly <vitaly@easycoding.org> - 0.9.2-8
- Rebuilt due to json update.

View File

@ -1,77 +0,0 @@
Name: mtxclient
Version: 0.9.2
Release: %autorelease
License: MIT
Summary: Client API library for Matrix, built on top of Boost.Asio
URL: https://github.com/Nheko-Reborn/%{name}
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: cmake(fmt) >= 9.1.0
BuildRequires: cmake(mpark_variant)
BuildRequires: cmake(nlohmann_json) >= 3.2.0
BuildRequires: cmake(Olm) >= 3.2.12
BuildRequires: cmake(spdlog) >= 1.0.0
BuildRequires: pkgconfig(coeurl) >= 0.3.0
BuildRequires: pkgconfig(libcrypto)
BuildRequires: pkgconfig(libevent)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(re2)
BuildRequires: pkgconfig(zlib)
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: ninja-build
%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
%build
%cmake -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DHUNTER_ENABLED:BOOL=OFF \
-DUSE_BUNDLED_COEURL:BOOL=OFF \
-DUSE_BUNDLED_GTEST:BOOL=OFF \
-DUSE_BUNDLED_JSON:BOOL=OFF \
-DUSE_BUNDLED_LIBCURL:BOOL=OFF \
-DUSE_BUNDLED_LIBEVENT:BOOL=OFF \
-DUSE_BUNDLED_OLM:BOOL=OFF \
-DUSE_BUNDLED_OPENSSL:BOOL=OFF \
-DUSE_BUNDLED_SPDLOG:BOOL=OFF \
-DASAN:BOOL=OFF \
-DCOVERAGE:BOOL=OFF \
-DIWYU:BOOL=OFF \
-DBUILD_LIB_TESTS:BOOL=OFF \
-DBUILD_LIB_EXAMPLES:BOOL=OFF
%cmake_build
%install
%cmake_install
ln -s libmatrix_client.so.%{version} %{buildroot}%{_libdir}/libmatrix_client.so.0
%files
%doc README.md
%license LICENSE
%{_libdir}/*.so.0*
%files devel
%{_includedir}/%{name}
%{_includedir}/mtx
%{_includedir}/mtx.hpp
%{_libdir}/cmake/MatrixClient
%{_libdir}/*.so
%changelog
%autochangelog

2
package.cfg Normal file
View File

@ -0,0 +1,2 @@
[koji]
targets = epel8 epel8-playground

View File

@ -1 +0,0 @@
SHA512 (mtxclient-0.9.2.tar.gz) = 87c9cd23ce8a52b2f850e3770eb51d03f40f4a5e45b5e536b2446932fc866b8835212d9364c5890af7404843da2547bdc94bb5d3d1933903fea8374b8900fd73