%global forgeurl https://codeberg.org/poezio/biboumi %global version %(date +%Y%m%d) %global commit 822fee08f0de6cd1a591d8f4be4d46367f60b657 %global _forgeversionsuffix %{scm}%(printf %.7s %{commit}) %global source_date_epoch_from_changelog 0 %forgemeta Name: biboumi Version: %{forgeversion} Release: %{autorelease} Summary: Lightweight XMPP to IRC gateway License: Zlib URL: %{forgeurl} Source0: %{forgesource} BuildRequires: libidn-devel BuildRequires: expat-devel BuildRequires: libuuid-devel BuildRequires: systemd-devel BuildRequires: sqlite-devel BuildRequires: postgresql-devel BuildRequires: botan3-devel BuildRequires: catch-devel BuildRequires: cmake BuildRequires: g++ BuildRequires: systemd BuildRequires: python3-sphinx %global _hardened_build 1 %global biboumi_confdir %{_sysconfdir}/%{name} %description An XMPP gateway that connects to IRC servers and translates between the two protocols. It can be used to access IRC channels using any XMPP client as if these channels were XMPP MUCs. %prep %forgeautosetup %build cmake . -DCMAKE_CXX_FLAGS="%{optflags}" \ -DCMAKE_BUILD_TYPE=release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DPOLLER=EPOLL \ -DWITH_BOTAN=1 \ -DWITH_SYSTEMD=1 \ -DWITH_LIBIDN=1 \ -DWITH_SQLITE3=1 \ -DWITH_POSTGRESQL=1 make %{?_smp_mflags} make man SPHINXBUILD=sphinx-build-3 %install make install DESTDIR=%{buildroot} %check make check %{?_smp_mflags} %files %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %doc README.rst COPYING doc/*.rst %{_unitdir}/%{name}.service %config(noreplace) %{biboumi_confdir}/*policy.txt