Commit 7fcc77f5 authored by louiz’'s avatar louiz’

Provide a spec file to build a Fedora RPM

parent 01c1ea14
Name: biboumi
Version: 1.0
Release: 1%{?dist}
Summary: Lightweight XMPP to IRC gateway
License: zlib
BuildRequires: libidn-devel
BuildRequires: expat-devel
BuildRequires: libuuid-devel
BuildRequires: systemd-devel
BuildRequires: cmake
BuildRequires: systemd
BuildRequires: rubygem-ronn
%global biboumi_user %{name}
%global biboumi_group %{biboumi_user}
%global biboumi_confdir %{_sysconfdir}/%{name}
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.
%setup -q
cmake . -DCMAKE_BUILD_TYPE=release \
# The documentation is in utf-8, ronn fails to build it if that locale is
# not specified
make %{?_smp_mflags}
LC_ALL=en_GB.utf-8 make doc
make install DESTDIR=%{buildroot}
# Default config file
install -D -p -m 644 conf/biboumi.cfg \
# Systemd unit file
install -D -p -m 644 unit/%{name}.service \
# Create default log directory
install -p -d %{buildroot}%{biboumi_logdir}
getent group %{biboumi_group} > /dev/null || groupadd -r %{biboumi_group}
getent passwd %{biboumi_user} > /dev/null || \
useradd -r -g %{biboumi_group} \
-s /sbin/nologin -c "Biboumi XMPP to IRC gateway" %{biboumi_user}
exit 0
%dir %{biboumi_logdir}
%config(noreplace) %{biboumi_confdir}/biboumi.cfg
* Wed Jun 25 2014 Le Coz Florent <> - 1.0-1
- Spec file written from scratch
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment