fix fedora package
This commit is contained in:
committed by
mathieui
parent
ee7ecebbdc
commit
fdcc9f9b84
+13
-6
@@ -350,9 +350,7 @@ install(FILES ${policy_files} DESTINATION etc/bibo
|
|||||||
#
|
#
|
||||||
add_custom_command(OUTPUT ${ARCHIVE_NAME}.tar.xz
|
add_custom_command(OUTPUT ${ARCHIVE_NAME}.tar.xz
|
||||||
COMMAND git archive --prefix=${ARCHIVE_NAME}/ --format=tar HEAD^{tree}
|
COMMAND git archive --prefix=${ARCHIVE_NAME}/ --format=tar HEAD^{tree}
|
||||||
> ${CMAKE_CURRENT_BINARY_DIR}/${ARCHIVE_NAME}.tar
|
--output=${CMAKE_CURRENT_BINARY_DIR}/${ARCHIVE_NAME}.tar
|
||||||
# Append this specific file that is not part of the git repo
|
|
||||||
COMMAND tar -rf ${CMAKE_CURRENT_BINARY_DIR}/${ARCHIVE_NAME}.tar -P ${SOURCE_DIR}/single_include/catch.hpp --xform 's|/.*/|${ARCHIVE_NAME}/tests/|g'
|
|
||||||
# Remove a potential existing archive
|
# Remove a potential existing archive
|
||||||
COMMAND rm -f ${CMAKE_CURRENT_BINARY_DIR}/${ARCHIVE_NAME}.tar.xz
|
COMMAND rm -f ${CMAKE_CURRENT_BINARY_DIR}/${ARCHIVE_NAME}.tar.xz
|
||||||
# Compress the archive
|
# Compress the archive
|
||||||
@@ -360,12 +358,21 @@ add_custom_command(OUTPUT ${ARCHIVE_NAME}.tar.xz
|
|||||||
COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --cyan "${ARCHIVE_NAME}.tar.xz created."
|
COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --cyan "${ARCHIVE_NAME}.tar.xz created."
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_custom_target(dist
|
add_custom_target(dist
|
||||||
DEPENDS ${ARCHIVE_NAME}.tar.xz
|
DEPENDS ${ARCHIVE_NAME}.tar.xz)
|
||||||
DEPENDS catch)
|
|
||||||
|
# The forge only provides .tar.gz, so make this target to be used to simulate
|
||||||
|
# downloading a tarball
|
||||||
|
add_custom_command(OUTPUT ${RPM_VERSION}.tar.gz
|
||||||
|
COMMAND git archive --prefix=${ARCHIVE_NAME}/ --format=tar.gz HEAD^{tree}
|
||||||
|
--output=${CMAKE_CURRENT_BINARY_DIR}/${RPM_VERSION}.tar.gz
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --cyan "${RPM_VERSION}.tar.gz created."
|
||||||
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
add_custom_target(rpm
|
add_custom_target(rpm
|
||||||
DEPENDS dist
|
DEPENDS ${RPM_VERSION}.tar.gz
|
||||||
COMMAND mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
COMMAND mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
||||||
COMMAND rpmbuild --define "_topdir `pwd`/rpmbuild/" --define "_sourcedir `pwd`" -ba biboumi.spec
|
COMMAND rpmbuild --define "_topdir `pwd`/rpmbuild/" --define "_sourcedir `pwd`" -ba biboumi.spec
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
# This Dockerfile creates a docker image suitable to run biboumi’s build and
|
# This Dockerfile creates a docker image suitable to run biboumi’s build and
|
||||||
# tests. For example, it can be used on with gitlab-ci.
|
# tests. For example, it can be used on with gitlab-ci.
|
||||||
|
|
||||||
FROM docker.io/fedora:latest
|
FROM docker.io/fedora:44
|
||||||
|
|
||||||
ARG ERGO_VERSION=2.16.0
|
ARG ERGO_VERSION=2.16.0
|
||||||
ENV LC_ALL=C.UTF-8
|
ENV LC_ALL=C.UTF-8
|
||||||
|
|
||||||
# TODO: upgrade to botan3
|
|
||||||
RUN dnf --refresh install -y \
|
RUN dnf --refresh install -y \
|
||||||
git \
|
git \
|
||||||
make \
|
make \
|
||||||
@@ -17,7 +16,7 @@ udns-devel \
|
|||||||
expat-devel \
|
expat-devel \
|
||||||
libidn-devel \
|
libidn-devel \
|
||||||
sqlite-devel \
|
sqlite-devel \
|
||||||
botan2-devel \
|
botan3-devel \
|
||||||
systemd-devel \
|
systemd-devel \
|
||||||
libuuid-devel \
|
libuuid-devel \
|
||||||
libgcrypt-devel \
|
libgcrypt-devel \
|
||||||
@@ -25,7 +24,7 @@ postgresql-devel \
|
|||||||
lcov \
|
lcov \
|
||||||
libasan \
|
libasan \
|
||||||
libubsan \
|
libubsan \
|
||||||
catch \
|
catch-devel \
|
||||||
valgrind \
|
valgrind \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
python3-lxml \
|
python3-lxml \
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ Release: 1%{?dist}
|
|||||||
Summary: Lightweight XMPP to IRC gateway
|
Summary: Lightweight XMPP to IRC gateway
|
||||||
|
|
||||||
License: zlib
|
License: zlib
|
||||||
URL: http://biboumi.louiz.org
|
URL: https://biboumi.codeberg.page/
|
||||||
Source0: http://git.louiz.org/biboumi/snapshot/biboumi-%{version}.tar.xz
|
Source0: https://codeberg.org/poezio/biboumi/archive/%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: libidn-devel
|
BuildRequires: libidn-devel
|
||||||
BuildRequires: expat-devel
|
BuildRequires: expat-devel
|
||||||
@@ -13,7 +13,8 @@ BuildRequires: libuuid-devel
|
|||||||
BuildRequires: systemd-devel
|
BuildRequires: systemd-devel
|
||||||
BuildRequires: sqlite-devel
|
BuildRequires: sqlite-devel
|
||||||
BuildRequires: postgresql-devel
|
BuildRequires: postgresql-devel
|
||||||
BuildRequires: botan2-devel
|
BuildRequires: botan3-devel
|
||||||
|
BuildRequires: catch-devel
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
BuildRequires: python3-sphinx
|
BuildRequires: python3-sphinx
|
||||||
@@ -64,8 +65,8 @@ make check %{?_smp_mflags}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
-* ${RPM_DATE} Le Coz Florent <louiz@louiz.org> - ${RPM_VERSION}-1
|
* ${RPM_DATE} Le Coz Florent <louiz@louiz.org> - ${RPM_VERSION}-1
|
||||||
-- Build latest git revision
|
Build latest git revision
|
||||||
|
|
||||||
* Tue Sep 22 2020 Le Coz Florent <louiz@louiz.org> - 9.0-1
|
* Tue Sep 22 2020 Le Coz Florent <louiz@louiz.org> - 9.0-1
|
||||||
Update to version 9.0
|
Update to version 9.0
|
||||||
|
|||||||
Reference in New Issue
Block a user