%global forgeurl https://codeberg.org/poezio/biboumi %global version %(date +%Y%m%d) %global commit bf958d0e34e7d8a39dccfcf3c64f72ef0db41f73 %global _forgeversionsuffix %{scm}%(printf %.7s %{commit}) %forgemeta Name: biboumi Version: %{forgeversion} Release: %{autorelease} Summary: Lightweight XMPP to IRC gateway License: Zlib URL: https://biboumi.codeberg.page/ 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: systemd BuildRequires: python3-sphinx %global _hardened_build 1 %global biboumi_confdir %{_sysconfdir}/%{name} BuildRequires: g++ %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 %forgesetup %build cmake . -DCMAKE_CXX_FLAGS="%{optflags}" \ -DCMAKE_INSTALL_LIBDIR=lib \ -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