biboumi.spec.cmake 3.18 KB
Newer Older
1
Name:     biboumi
2
Version:  ${RPM_VERSION}
louiz’'s avatar
louiz’ committed
3
Release:  1%{?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

BuildRequires: libidn-devel
BuildRequires: expat-devel
BuildRequires: libuuid-devel
BuildRequires: systemd-devel
louiz’'s avatar
louiz’ committed
14
BuildRequires: sqlite-devel
15
BuildRequires: postgresql-devel
16 17
BuildRequires: cmake
BuildRequires: systemd
18
BuildRequires: pandoc
19

20 21
%global _hardened_build 1

22 23 24 25 26 27 28 29 30 31 32 33 34 35
%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
36 37 38 39 40 41
cmake . -DCMAKE_CXX_FLAGS="%{optflags}" \
      -DCMAKE_BUILD_TYPE=release \
      -DCMAKE_INSTALL_PREFIX=/usr \
      -DPOLLER=EPOLL \
      -DWITHOUT_BOTAN=1 \
      -DWITH_SYSTEMD=1 \
louiz’'s avatar
louiz’ committed
42
      -DWITH_LIBIDN=1 \
43 44
      -DWITH_SQLITE3=1 \
      -DWITH_POSTGRESQL=1
45

46
make %{?_smp_mflags}
47 48 49 50 51 52


%install
make install DESTDIR=%{buildroot}


53
%check
54
make check %{?_smp_mflags}
55 56


57 58 59
%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
60
%doc README.rst COPYING doc/biboumi.1.rst
61
%{_unitdir}/%{name}.service
62
%config(noreplace) %{biboumi_confdir}/*policy.txt
63 64 65


%changelog
louiz’'s avatar
louiz’ committed
66 67 68
* Wed May 25 2018 Le Coz Florent <louiz@louiz.org> - 8.2-1
  Update to version 8.1

louiz’'s avatar
louiz’ committed
69 70 71
* Wed May 14 2018 Le Coz Florent <louiz@louiz.org> - 8.1-1
  Update to version 8.1

louiz’'s avatar
louiz’ committed
72 73
* Wed May 2 2018 Le Coz Florent <louiz@louiz.org> - 8.0-1
  Update to version 8.0
louiz’'s avatar
louiz’ committed
74

louiz’'s avatar
louiz’ committed
75 76 77
* Wed Jan 24 2018 Le Coz Florent <louiz@louiz.org> - 7.2-1
  Update to version 7.2

louiz’'s avatar
louiz’ committed
78 79 80
* Wed Jan 22 2018 Le Coz Florent <louiz@louiz.org> - 7.1-1
  Update to version 7.1

louiz’'s avatar
louiz’ committed
81 82
* Wed Jan 17 2018 Le Coz Florent <louiz@louiz.org> - 7.0-1
  Update to version 7.0
83

louiz’'s avatar
louiz’ committed
84 85 86
* Wed Oct 4 2017 Le Coz Florent <louiz@louiz.org> - 6.1-1
  Update to version 6.1

louiz’'s avatar
louiz’ committed
87 88
* Tue Sep 19 2017 Le Coz Florent <louiz@louiz.org> - 6.0-1
  Update to version 6.0
louiz’'s avatar
louiz’ committed
89

90
* Wed May 24 2017 Le Coz Florent <louiz@louiz.org> - 5.0-1
louiz’'s avatar
louiz’ committed
91
- Update to version 5.0
louiz’'s avatar
louiz’ committed
92

93 94 95 96
* Wed May 2 2017 Le Coz Florent <louiz@louiz.org> - 4.3-1
- Fix a segmentation fault that occured when trying to connect
  to an IRC server without any port configured.

louiz’'s avatar
louiz’ committed
97 98 99 100 101 102
* Wed Apr 26 2017 Le Coz Florent <louiz@louiz.org> - 4.2-1
- Fix a build issue when LiteSQL is absent from the system

* Tue Mar 21 2017 Le Coz Florent <louiz@louiz.org> - 4.1-1
- Update to 4.1 sources: compatibility with botan 2.0

louiz’'s avatar
louiz’ committed
103 104
* Wed Nov 9 2016 Le Coz Florent <louiz@louiz.org> - 4.0-1
- Update to 4.0 sources
louiz’'s avatar
louiz’ committed
105

louiz’'s avatar
louiz’ committed
106 107
* Thu Aug 4 2016 Le Coz Florent <louiz@louiz.org> - 3.0-1
- Update to 3.0 sources
108

109 110 111 112
* Wed Jan 13 2016 Le Coz Florent <louiz@louiz.org> - 2.0-2
- Do not install the systemd unit and configuration files, because
  “make install” does it itself now

louiz’'s avatar
louiz’ committed
113 114 115
* Fri May 29 2015 Le Coz Florent <louiz@louiz.org> - 2.0-1
- Update to 2.0 sources

116
* Thu Nov 13 2014 Le Coz Florent <louiz@louiz.org> - 1.1-2
117
- Use the -DWITH(OUT) cmake flags for all optional dependencies
118
- Build with the correct optflags
119
- Use hardened_build
120

121
* Mon Aug 18 2014 Le Coz Florent <louiz@louiz.org> - 1.1-1
louiz’'s avatar
louiz’ committed
122 123
- Update to 1.1 release

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