diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a216e3e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/biboumi-8.3.tar.gz diff --git a/Don-t-download-catch-during-build.patch b/Don-t-download-catch-during-build.patch new file mode 100644 index 0000000..c5c3f25 --- /dev/null +++ b/Don-t-download-catch-during-build.patch @@ -0,0 +1,45 @@ +From 1983388a2f472087bddbafb66f41f5430eeee5cc Mon Sep 17 00:00:00 2001 +From: Jeremy Cline +Date: Fri, 7 Sep 2018 00:52:51 -0400 +Subject: [PATCH] Don't download catch during build + +Signed-off-by: Jeremy Cline +--- + CMakeLists.txt | 21 --------------------- + 1 file changed, 21 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e217171..251cbae 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -284,27 +284,6 @@ foreach(file ${source_all}) + set_property(SOURCE ${file} APPEND PROPERTY COMPILE_DEFINITIONS __FILENAME__="${shorter_file}") + endforeach() + +-# +-## Add a rule to download the catch unit test framework +-# +-include(ExternalProject) +-ExternalProject_Add(catch +- GIT_REPOSITORY "https://lab.louiz.org/louiz/Catch.git" +- PREFIX "external" +- UPDATE_COMMAND "" +- CONFIGURE_COMMAND "" +- BUILD_COMMAND "" +- INSTALL_COMMAND "" +- ) +-set_target_properties(catch PROPERTIES EXCLUDE_FROM_ALL TRUE) +-ExternalProject_Get_Property(catch SOURCE_DIR) +-if(NOT EXISTS ${CMAKE_SOURCE_DIR}/tests/catch.hpp) +- target_include_directories(test_suite +- PUBLIC "${SOURCE_DIR}/single_include/" +- ) +- add_dependencies(test_suite catch) +-endif() +- + # + ## Add some custom rules to launch the tests + # +-- +2.17.1 + diff --git a/README.md b/README.md new file mode 100644 index 0000000..90c6fb1 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# biboumi + +The biboumi package \ No newline at end of file diff --git a/biboumi.spec b/biboumi.spec new file mode 100644 index 0000000..1036ff2 --- /dev/null +++ b/biboumi.spec @@ -0,0 +1,89 @@ +Name: biboumi +Version: 8.3 +Release: 4%{?dist} +Summary: An XMPP gateway that connects to IRC servers + +License: zlib +URL: https://lab.louiz.org/louiz/biboumi +Source0: %{url}/-/archive/%{version}/%{name}-%{version}.tar.gz +Patch0: Don-t-download-catch-during-build.patch + +BuildRequires: gcc-c++ +BuildRequires: cmake >= 3.0 +BuildRequires: catch-devel +BuildRequires: libuuid-devel +BuildRequires: expat-devel +BuildRequires: libidn-devel +BuildRequires: systemd-devel +BuildRequires: botan2-devel +BuildRequires: sqlite-devel +BuildRequires: udns-devel +BuildRequires: libpq-devel +BuildRequires: pandoc +BuildRequires: systemd-rpm-macros +%{?systemd_requires} + +%description +Biboumi is 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 +%autosetup + + +%build +%cmake \ + -DCMAKE_BUILD_TYPE=release \ + -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DPOLLER=EPOLL \ + -DWITH_BOTAN=1 \ + -DWITH_SYSTEMD=1 \ + -DWITH_LIBIDN=1 \ + -DWITH_SQLITE3=1 \ + -DWITH_POSTGRESQL=1 . +%make_build + + +%install +%make_install + + +%check +ctest -VV %{?_smp_mflags} + + +%post +%systemd_post %{name}.service + +%preun +%systemd_preun %{name}.service + +%postun +%systemd_postun_with_restart %{name}.service + + +%files +%license COPYING +%doc README.rst doc/*.rst +%config(noreplace) %{_sysconfdir}/%{name}/* +%{_sysconfdir}/%{name} +%{_mandir}/man1/%{name}.1* +%{_unitdir}/%{name}.service +%{_bindir}/%{name} + + +%changelog +* Tue Jan 28 2020 Fedora Release Engineering - 8.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jul 24 2019 Fedora Release Engineering - 8.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Apr 21 2019 Jeremy Cline - 8.3-2 +- Add systemd scriptlets +- Own the /etc/biboumi directory + +* Sun Apr 14 2019 Jeremy Cline - 8.3-1 +- Initial package diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/sources b/sources new file mode 100644 index 0000000..75f78b4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (biboumi-8.3.tar.gz) = 1f9d8d0a6e8329832c31864b86d39542fd4121267e3741643642baae3b77107773121cd7d0f2bab291693635787813467317ac58397fe0713daf74731827383b