From ae7c54f3737b3646edfa5c4d4d7fd553aa296da6 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Fri, 22 Jan 2016 00:47:24 +0100 Subject: Spec file becomes a template, auto filled with the date and version --- packaging/biboumi.spec.cmake | 84 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 packaging/biboumi.spec.cmake (limited to 'packaging/biboumi.spec.cmake') diff --git a/packaging/biboumi.spec.cmake b/packaging/biboumi.spec.cmake new file mode 100644 index 0000000..633a168 --- /dev/null +++ b/packaging/biboumi.spec.cmake @@ -0,0 +1,84 @@ +Name: biboumi +Version: ${RPM_VERSION} +Release: 1%{?dist} +Summary: Lightweight XMPP to IRC gateway + +License: zlib +URL: http://biboumi.louiz.org +Source0: http://git.louiz.org/biboumi/snapshot/biboumi-%{version}.tar.xz + +BuildRequires: libidn-devel +BuildRequires: expat-devel +BuildRequires: libuuid-devel +BuildRequires: systemd-devel +BuildRequires: cmake +BuildRequires: systemd +BuildRequires: rubygem-ronn + +%global _hardened_build 1 + +%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_CXX_FLAGS="%{optflags}" \ + -DCMAKE_BUILD_TYPE=release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DPOLLER=EPOLL \ + -DWITHOUT_BOTAN=1 \ + -DWITH_SYSTEMD=1 \ + -DWITH_LIBIDN=1 + +# The documentation is in utf-8, ronn fails to build it if that locale is +# not specified +export LC_ALL=en_GB.utf-8 +make %{?_smp_mflags} + + +%install +make install DESTDIR=%{buildroot} + + +%check +make check %{?_smp_mflags} + + +%files +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1* +%doc README COPYING doc/biboumi.1.md +%{_unitdir}/%{name}.service +%config(noreplace) %{biboumi_confdir}/biboumi.cfg + + +%changelog +* ${RPM_DATE} Le Coz Florent - ${RPM_VERSION}-1 +- Build latest git revision + +* Wed Jan 13 2016 Le Coz Florent - 2.0-2 +- Do not install the systemd unit and configuration files, because + “make install” does it itself now + +* Fri May 29 2015 Le Coz Florent - 2.0-1 +- Update to 2.0 sources + +* Thu Nov 13 2014 Le Coz Florent - 1.1-2 +- Use the -DWITH(OUT) cmake flags for all optional dependencies +- Build with the correct optflags +- Use hardened_build + +* Mon Aug 18 2014 Le Coz Florent - 1.1-1 +- Update to 1.1 release + +* Wed Jun 25 2014 Le Coz Florent - 1.0-1 +- Spec file written from scratch -- cgit v1.2.3 From b32729fb8a5ff5cdbd6c94ad327a09aa19396389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Tue, 8 Mar 2016 20:29:31 +0100 Subject: Convert README, INSTALL etc to markdown --- packaging/biboumi.spec.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packaging/biboumi.spec.cmake') diff --git a/packaging/biboumi.spec.cmake b/packaging/biboumi.spec.cmake index 633a168..08b5c6d 100644 --- a/packaging/biboumi.spec.cmake +++ b/packaging/biboumi.spec.cmake @@ -56,7 +56,7 @@ make check %{?_smp_mflags} %files %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* -%doc README COPYING doc/biboumi.1.md +%doc README.md COPYING doc/biboumi.1.md %{_unitdir}/%{name}.service %config(noreplace) %{biboumi_confdir}/biboumi.cfg -- cgit v1.2.3 From 38202e5f6e16d8fc1e07811049851bfa417fb9c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Mon, 23 May 2016 11:51:03 +0200 Subject: Update the build process to take into account the rst files --- packaging/biboumi.spec.cmake | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'packaging/biboumi.spec.cmake') diff --git a/packaging/biboumi.spec.cmake b/packaging/biboumi.spec.cmake index 08b5c6d..f38f4c4 100644 --- a/packaging/biboumi.spec.cmake +++ b/packaging/biboumi.spec.cmake @@ -13,7 +13,7 @@ BuildRequires: libuuid-devel BuildRequires: systemd-devel BuildRequires: cmake BuildRequires: systemd -BuildRequires: rubygem-ronn +BuildRequires: pandoc %global _hardened_build 1 @@ -39,9 +39,6 @@ cmake . -DCMAKE_CXX_FLAGS="%{optflags}" \ -DWITH_SYSTEMD=1 \ -DWITH_LIBIDN=1 -# The documentation is in utf-8, ronn fails to build it if that locale is -# not specified -export LC_ALL=en_GB.utf-8 make %{?_smp_mflags} @@ -56,7 +53,7 @@ make check %{?_smp_mflags} %files %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* -%doc README.md COPYING doc/biboumi.1.md +%doc README.rst COPYING doc/biboumi.1.rst %{_unitdir}/%{name}.service %config(noreplace) %{biboumi_confdir}/biboumi.cfg -- cgit v1.2.3 From 0f14fe83ef53b08bd8fa09670c82f4996c329bdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Thu, 4 Aug 2016 11:32:45 +0200 Subject: Release 3.0 --- packaging/biboumi.spec.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packaging/biboumi.spec.cmake') diff --git a/packaging/biboumi.spec.cmake b/packaging/biboumi.spec.cmake index f38f4c4..c94da8b 100644 --- a/packaging/biboumi.spec.cmake +++ b/packaging/biboumi.spec.cmake @@ -59,8 +59,8 @@ make check %{?_smp_mflags} %changelog -* ${RPM_DATE} Le Coz Florent - ${RPM_VERSION}-1 -- Build latest git revision +* Thu Aug 4 2016 Le Coz Florent - 3.0-1 +- Update to 3.0 sources * Wed Jan 13 2016 Le Coz Florent - 2.0-2 - Do not install the systemd unit and configuration files, because -- cgit v1.2.3