%global forgeurl https://codeberg.org/poezio/biboumi %global version %(date +%Y%m%d) %global commit 889c0aaf29fe29ea8bfd5fa3d012cb499a97b03b %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: 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 %forgeautosetup %__sed -i -e "/CMAKE_INSTALL_LIBDIR/\ s|LIBDIR}|PREFIX}/lib|" CMakeLists.txt %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