nheko/nheko.spec

135 lines
4.1 KiB
RPMSpec
Raw Permalink Normal View History

2018-02-02 13:35:59 +00:00
Name: nheko
2023-02-23 09:45:17 +00:00
Version: 0.11.3
Release: %autorelease
2018-02-02 13:35:59 +00:00
2022-12-13 15:25:03 +00:00
# Main source - GPL-3.0-or-later.
# cpp-httplib - bundled - MIT.
# qtsingleapplication-qt5 - bundled - MIT.
License: GPL-3.0-or-later AND MIT
2020-06-03 15:23:53 +00:00
Summary: Desktop client for the Matrix protocol
URL: https://github.com/Nheko-Reborn/%{name}
2020-06-03 15:23:53 +00:00
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
2018-02-02 13:35:59 +00:00
# https://github.com/Nheko-Reborn/nheko/commit/d7c10ae90417fcbb7f81edd4e40d89e91436244b
Patch100: %{name}-0.11.3-gcc13-fix.patch
# https://github.com/Nheko-Reborn/nheko/commit/e89e65dc17020772eb057414b4f0c5d6f4ad98d0
Patch101: %{name}-0.11.3-fmt10-fix.patch
2024-03-27 10:57:08 +00:00
# https://github.com/Nheko-Reborn/nheko/commit/871e403f6799df48cfbbe08eba56d473a0c34216
Patch102: %{name}-0.11.3-fmt10.1-fix.patch
2023-02-20 18:29:50 +00:00
BuildRequires: cmake(MatrixClient) >= 0.9.2
2022-07-23 08:55:15 +00:00
BuildRequires: cmake(Olm) >= 3.2.12
2018-02-02 13:35:59 +00:00
BuildRequires: cmake(Qt5Concurrent)
2021-01-20 13:39:56 +00:00
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5DBus)
BuildRequires: cmake(Qt5Keychain)
2018-02-02 13:35:59 +00:00
BuildRequires: cmake(Qt5LinguistTools)
2021-01-20 13:39:56 +00:00
BuildRequires: cmake(Qt5Multimedia)
BuildRequires: cmake(Qt5Network)
BuildRequires: cmake(Qt5Qml)
2020-06-03 15:23:53 +00:00
BuildRequires: cmake(Qt5QuickCompiler)
BuildRequires: cmake(Qt5QuickControls2)
2021-01-20 13:39:56 +00:00
BuildRequires: cmake(Qt5QuickWidgets)
BuildRequires: cmake(Qt5Svg)
BuildRequires: cmake(Qt5Widgets)
2023-06-28 08:41:21 +00:00
BuildRequires: cmake(fmt) >= 9.1.0
BuildRequires: cmake(httplib) >= 0.5.12
2021-01-20 13:39:56 +00:00
BuildRequires: cmake(mpark_variant)
BuildRequires: cmake(nlohmann_json) >= 3.2.0
BuildRequires: cmake(spdlog) >= 1.0.0
BuildRequires: pkgconfig(blurhash) >= 0.2.0
BuildRequires: pkgconfig(coeurl) >= 0.3.0
2021-01-20 13:39:56 +00:00
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-app-1.0)
BuildRequires: pkgconfig(gstreamer-audio-1.0)
BuildRequires: pkgconfig(gstreamer-base-1.0)
BuildRequires: pkgconfig(gstreamer-sdp-1.0)
BuildRequires: pkgconfig(gstreamer-video-1.0)
BuildRequires: pkgconfig(gstreamer-webrtc-1.0)
BuildRequires: pkgconfig(libcmark) >= 0.29.0
BuildRequires: pkgconfig(libcrypto)
2021-11-19 17:27:37 +00:00
BuildRequires: pkgconfig(libevent)
2021-01-20 13:39:56 +00:00
BuildRequires: pkgconfig(lmdb)
BuildRequires: pkgconfig(openssl)
2023-01-13 07:58:04 +00:00
BuildRequires: pkgconfig(re2)
2021-04-23 13:17:34 +00:00
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xcb-ewmh)
2021-01-20 13:39:56 +00:00
BuildRequires: pkgconfig(zlib)
2018-02-02 13:35:59 +00:00
2022-03-10 10:37:27 +00:00
BuildRequires: asciidoc
2021-01-20 13:39:56 +00:00
BuildRequires: cmake
2018-02-02 13:35:59 +00:00
BuildRequires: desktop-file-utils
2021-01-20 13:39:56 +00:00
BuildRequires: gcc
BuildRequires: gcc-c++
2018-02-02 13:35:59 +00:00
BuildRequires: libappstream-glib
2021-04-23 13:17:34 +00:00
BuildRequires: lmdbxx-devel >= 1.0.0
2018-02-02 13:35:59 +00:00
BuildRequires: ninja-build
2018-04-03 14:01:35 +00:00
2018-02-02 13:35:59 +00:00
Requires: hicolor-icon-theme
Requires: qt-jdenticon%{?_isa}
2021-01-20 13:39:56 +00:00
Requires: qt5-qtquickcontrols2%{?_isa}
2018-02-02 13:35:59 +00:00
Recommends: google-noto-emoji-color-fonts
Recommends: google-noto-emoji-fonts
# https://github.com/Nheko-Reborn/nheko/issues/391
2022-07-23 09:09:50 +00:00
Provides: bundled(qtsingleapplication-qt5) = 3.3.2
2018-02-02 13:35:59 +00:00
%description
The motivation behind the project is to provide a native desktop app
2018-02-16 15:27:26 +00:00
for Matrix that feels more like a mainstream chat app.
2018-02-02 13:35:59 +00:00
%prep
2018-06-03 13:58:01 +00:00
%autosetup -p1
2023-02-20 18:29:50 +00:00
rm -rf third_party/{blurhash,cpp-httplib*}
2018-02-02 13:35:59 +00:00
%build
2020-07-21 09:26:09 +00:00
%cmake -G Ninja \
2018-07-26 15:26:50 +00:00
-DCMAKE_BUILD_TYPE=Release \
2021-11-19 17:27:37 +00:00
-DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON \
2021-01-20 13:39:56 +00:00
-DCOMPILE_QML:BOOL=OFF \
2020-06-03 15:23:53 +00:00
-DHUNTER_ENABLED:BOOL=OFF \
2021-01-20 13:39:56 +00:00
-DCI_BUILD:BOOL=OFF \
-DASAN:BOOL=OFF \
-DQML_DEBUGGING:BOOL=OFF \
-DBUILD_DOCS:BOOL=OFF \
2021-11-19 17:27:37 +00:00
-DVOIP:BOOL=ON \
2022-03-10 10:37:27 +00:00
-DMAN:BOOL=ON \
-DUSE_BUNDLED_BLURHASH:BOOL=OFF \
2020-06-03 15:23:53 +00:00
-DUSE_BUNDLED_CMARK:BOOL=OFF \
2021-11-19 17:27:37 +00:00
-DUSE_BUNDLED_COEURL:BOOL=OFF \
-DUSE_BUNDLED_CPPHTTPLIB:BOOL=OFF \
2021-11-19 17:27:37 +00:00
-DUSE_BUNDLED_GTEST:BOOL=OFF \
-DUSE_BUNDLED_JSON:BOOL=OFF \
-DUSE_BUNDLED_LIBEVENT:BOOL=OFF \
2020-06-03 15:23:53 +00:00
-DUSE_BUNDLED_LMDB:BOOL=OFF \
-DUSE_BUNDLED_LMDBXX:BOOL=OFF \
2021-11-19 17:27:37 +00:00
-DUSE_BUNDLED_MTXCLIENT:BOOL=OFF \
-DUSE_BUNDLED_OLM:BOOL=OFF \
2020-06-03 15:23:53 +00:00
-DUSE_BUNDLED_OPENSSL:BOOL=OFF \
2021-11-19 17:27:37 +00:00
-DUSE_BUNDLED_QTKEYCHAIN:BOOL=OFF \
-DUSE_BUNDLED_SPDLOG:BOOL=OFF
2020-07-21 09:26:09 +00:00
%cmake_build
2018-02-02 13:35:59 +00:00
%install
2020-07-21 09:26:09 +00:00
%cmake_install
2018-02-02 13:35:59 +00:00
%check
2020-03-07 12:45:11 +00:00
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdata.xml
2018-02-02 13:35:59 +00:00
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
2018-07-26 15:26:50 +00:00
%files
2018-09-22 16:55:03 +00:00
%doc README.md CHANGELOG.md
2019-05-23 14:01:35 +00:00
%license COPYING
2022-07-23 09:09:50 +00:00
%dir %{_datadir}/zsh/site-functions
2018-02-02 13:35:59 +00:00
%{_bindir}/%{name}
2020-03-07 12:45:11 +00:00
%{_metainfodir}/%{name}.appdata.xml
2018-02-02 13:35:59 +00:00
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
2022-07-23 09:09:50 +00:00
%{_datadir}/zsh/site-functions/_%{name}
2022-03-10 10:37:27 +00:00
%{_mandir}/man1/%{name}.1*
2018-02-02 13:35:59 +00:00
%changelog
%autochangelog