biboumi.spec 1.75 KB
Newer Older
1
Name:     biboumi
louiz’'s avatar
louiz’ committed
2
Version:  1.1
louiz’'s avatar
louiz’ committed
3
Release:  2%{?dist}
4 5 6 7
Summary:  Lightweight XMPP to IRC gateway

License:  zlib
URL:      http://biboumi.louiz.org
8
Source0:  http://git.louiz.org/biboumi/snapshot/biboumi-%{version}.tar.xz
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

BuildRequires: libidn-devel
BuildRequires: expat-devel
BuildRequires: libuuid-devel
BuildRequires: systemd-devel
BuildRequires: cmake
BuildRequires: systemd
BuildRequires: rubygem-ronn

%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
%setup -q


%build
cmake . -DCMAKE_BUILD_TYPE=release \
    -DCMAKE_INSTALL_PREFIX=/usr \
louiz’'s avatar
louiz’ committed
34 35 36 37 38 39 40
    -DPOLLER=EPOLL \
    -DWITHOUT_BOTAN=1 \
    -DWITH_SYSTEMD=1 \
    -DWITH_LIBIDN=1

make %{?_smp_mflags}

41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
# The documentation is in utf-8, ronn fails to build it if that locale is
# not specified
LC_ALL=en_GB.utf-8 make doc


%install
make install DESTDIR=%{buildroot}

# Default config file
install -D -p -m 644 conf/biboumi.cfg \
    %{buildroot}%{biboumi_confdir}/biboumi.cfg

# Systemd unit file
install -D -p -m 644 unit/%{name}.service \
    %{buildroot}%{_unitdir}/%{name}.service


58 59 60 61 62 63
%check
make test_suite/fast VERBOSE=1

./test_suite || exit 1


64 65 66 67 68 69 70 71 72
%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%doc README COPYING doc/biboumi.1.md
%{_unitdir}/%{name}.service
%config(noreplace) %{biboumi_confdir}/biboumi.cfg


%changelog
louiz’'s avatar
louiz’ committed
73 74 75
* Wed Nov 13 2014 Le Coz Florent <louiz@louiz.org> - 1.1-2
- Use the -DWITH(OUT) cmake flags for all optional dependencies

louiz’'s avatar
louiz’ committed
76 77 78
* Wed Aug 18 2014 Le Coz Florent <louiz@louiz.org> - 1.1-1
- Update to 1.1 release

79 80
* Wed Jun 25 2014 Le Coz Florent <louiz@louiz.org> - 1.0-1
- Spec file written from scratch