X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=ceph.spec;h=b8f6371826cc01becf2805cc47ccae0849601992;hb=HEAD;hp=bd1b0eff4bcb98ce6bd36304bfdfe9957d68cb4f;hpb=370f7446fa9c09a2e4723acfb74c98a5d609b859;p=packages%2Fceph.git diff --git a/ceph.spec b/ceph.spec index bd1b0ef..b8f6371 100644 --- a/ceph.spec +++ b/ceph.spec @@ -1,20 +1,34 @@ # TODO: -# - proper init scripts if non-systemd boot is too be supported +# - system arrow, parquet (WITH_SYSTEM_ARROW=ON, arrow>=4, parquet>=4)? +# - brotli? (WITH_BROTLI=ON, uses internal brotli as downloaded subproject) +# - proper init scripts if non-systemd boot is to be supported # (upstream scripts seem overcomplicated and hardly useful) # - run as non-root user +# - build selinux policy (-DWITH_SELINUX=ON) +# - package sphinx docs (from doc/) # # Note on versioning: http://docs.ceph.com/docs/master/releases/ +# Reef (18.1.2) is in RC stage currently # # Conditional build: %bcond_without java # Java binding -%bcond_with accelio # Accelio transport support [needs update for internal API changes] -%bcond_with cryptopp # use cryptopp instead of NSS crypto/SSL -%bcond_with dpdk # DPDK messaging (requires cryptopp instead of nss) +%bcond_with angular # Angular-based mgr/dashboard frontend (built using npm, too outdated currently) +%bcond_without bluefs # BlueFS library +%bcond_with dpdk # DPDK messaging +# 15.2.x/16.2.x build fails with: +# src/rgw/rgw_fcgi_process.cc:92:53: error: 'class rgw::sal::RGWRadosStore' has no member named 'get_new_req_id' %bcond_with fcgi # RADOS Gateway FCGI frontend -%bcond_with fio # FIO engines support +%bcond_with fio # FIO engines support (16.x: downloads fio as internal subproject) +%bcond_with kerberos # GSSAPI/KRB5 support %bcond_without pmem # PMDK (persistent memory) support +%bcond_without qat # QAT driver +%bcond_without qatzip # QATZIP +%bcond_without rdma # RDMA transport support +%bcond_with seastar # seastar components (64-bit pointers required) %bcond_with spdk # Ceph SPDK support (DPDK based) %bcond_without system_rocksdb # system RocksDB storage support +%bcond_without zbd # ZBD bluestore backend +# 15.2.x/16.2.x: "fallthrough" define from OpenZFS's spl breaks "[[fallthrough]]" in src/include/blobhash.h %bcond_with zfs # ZFS support [not ready for zfs 0.8.x] %bcond_without lttng # LTTng tracing %bcond_without babeltrace # Babeltrace traces support @@ -27,106 +41,150 @@ %ifnarch %{x8664} aarch64 %undefine with_pmem %endif -%if %{without cryptopp} && %{with dpdk} -%error DPDK requires cryptopp +%ifnarch %{x8664} aarch64 mips64 ppc64 sparc64 s390x +%undefine with_seastar %endif + +%{?with_java:%{?use_default_jdk}} # Summary: User space components of the Ceph file system Summary(pl.UTF-8): Działające w przestrzeni użytkownika elementy systemu plików Ceph Name: ceph -Version: 16.2.7 -Release: 2 +Version: 17.2.7 +Release: 1 License: LGPL v2.1 (libraries), GPL v2 (some programs) Group: Base Source0: http://download.ceph.com/tarballs/%{name}-%{version}.tar.gz -# Source0-md5: 3cb3d259e59920b0d7145537f338aeec +# Source0-md5: 843fb59f95f62e0e156539e49a2a3a9a Source1: ceph.sysconfig Source3: ceph.tmpfiles Patch0: %{name}-python.patch -Patch1: %{name}-tcmalloc.patch -Patch2: %{name}-fcgi.patch -Patch3: string-includes.patch +Patch1: %{name}-fio.patch +Patch2: %{name}-cmake-static.patch +Patch3: %{name}-arrow-pld.patch Patch4: no-virtualenvs.patch -Patch5: system-zstd.patch +Patch5: %{name}-libdir.patch Patch6: types.patch Patch7: use-provided-cpu-flag-values.patch Patch8: ix86-no-asm.patch Patch9: long-int-time_t.patch -Patch10: fuse3-api.patch +Patch10: %{name}-qat.patch +Patch11: %{name}-liburing.patch +Patch12: %{name}-glibc.patch +Patch13: %{name}-libfmt.patch +Patch14: %{name}-system-rocksdb.patch +# https://src.fedoraproject.org/rpms/ceph/blob/rawhide/f/0017-gcc-12-omnibus.patch +Patch15: %{name}-gcc12.patch +# https://src.fedoraproject.org/rpms/ceph/blob/rawhide/f/0020-src-arrow-cpp-cmake_modules-ThirdpartyToolchain.cmake.patch +Patch16: %{name}-system-xsimd.patch +Patch17: boost1.81.patch URL: https://ceph.io/ -%{?with_accelio:BuildRequires: accelio-devel} +%{?with_qatzip:BuildRequires: QATzip-devel} %{?with_babeltrace:BuildRequires: babeltrace-devel} -BuildRequires: boost-devel >= 1.66 -BuildRequires: boost-python3-devel >= 1.66 +BuildRequires: boost-devel >= 1.73 +BuildRequires: boost-python3-devel >= 1.73 +%{?with_seastar:BuildRequires: c-ares-devel >= 1.13.0} BuildRequires: cmake >= 3.22.2 -%{?with_cryptopp:BuildRequires: cryptopp-devel} +%{?with_seastar:BuildRequires: cryptopp-devel >= 5.6.5} +BuildRequires: cryptsetup-devel >= 2.0.5 BuildRequires: curl-devel %if %{with dpdk} || %{with spdk} +# also seastar with dpdk support BuildRequires: dpdk-devel %endif +BuildRequires: doxygen BuildRequires: expat-devel >= 1.95 %{?with_fcgi:BuildRequires: fcgi-devel} -%{?with_fio:BuildRequires: fio-devel} +%{?with_fio:BuildRequires: fio-devel >= 3.15} BuildRequires: gdbm-devel -BuildRequires: gperftools-devel +%{?with_seastar:BuildRequires: gnutls-devel >= 3.3.26} +BuildRequires: gperf +%{?with_tcmalloc:BuildRequires: gperftools-devel >= 2.6.2} +%{?with_kerberos:BuildRequires: heimdal-devel} +%{?with_seastar:BuildRequires: hwloc-devel >= 1.11.2} %if %{with java} -BuildRequires: jdk -BuildRequires: jre-X11 +%buildrequires_jdk +BuildRequires: %{?use_jdk:%{use_jdk}-jre-base-X11}%{!?use_jdk:jre-X11} %endif BuildRequires: keyutils-devel -BuildRequires: leveldb-devel >= 1.2 +BuildRequires: leveldb-devel >= 1.23-2 BuildRequires: libaio-devel BuildRequires: libatomic_ops BuildRequires: libblkid-devel >= 2.17 +BuildRequires: libcap-ng-devel BuildRequires: libedit-devel >= 2.11 -BuildRequires: libfuse3-devel -# +RDMA? -%{?with_accelio:BuildRequires: libibverbs-devel} +BuildRequires: libfmt-devel >= 6.0.0 +BuildRequires: libfuse3-devel >= 3 +%{?with_rdma:BuildRequires: libibverbs-devel} +BuildRequires: libicu-devel >= 52.0 BuildRequires: libltdl-devel -BuildRequires: librdkafka-devel -%{?with_accelio:BuildRequires: librdmacm-devel} -BuildRequires: libstdc++-devel >= 6:4.7 -%{?with_tcmalloc:BuildRequires: libtcmalloc-devel} +BuildRequires: libnl-devel >= 3.2 +BuildRequires: librdkafka-devel >= 0.9.2 +%{?with_rdma:BuildRequires: librdmacm-devel} +%{?with_seastar:BuildRequires: libsctp-devel} +BuildRequires: libstdc++-devel >= 6:7 +%{?with_tcmalloc:BuildRequires: libtcmalloc-devel >= 2.6.2} BuildRequires: libtool >= 2:1.5 +BuildRequires: liburing-devel +BuildRequires: libutf8proc-devel >= 2.2.0 BuildRequires: libuuid-devel BuildRequires: libxml2-devel >= 2.0 +%{?with_zbd:BuildRequires: libzbd-devel} %{?with_lttng:BuildRequires: lttng-ust-devel} -BuildRequires: lua-devel -BuildRequires: lz4-devel >= 1:1.7 -%{!?with_cryptopp:BuildRequires: nss-devel >= 3} +BuildRequires: lua-devel >= 5.3 +BuildRequires: lz4-devel >= 1:1.7.3 +BuildRequires: ncurses-devel +%{?with_angular:BuildRequires: npm} +BuildRequires: nspr-devel >= 4 +BuildRequires: nss-devel >= 3 +%{?with_seastar:BuildRequires: numactl-devel} BuildRequires: oath-toolkit-devel BuildRequires: openldap-devel -BuildRequires: openssl-devel +BuildRequires: openssl-devel >= 1.1 BuildRequires: perl-base BuildRequires: pkgconfig -%{?with_pmem:BuildRequires: pmdk-devel} +%{?with_pmem:BuildRequires: pmdk-devel >= 1.10.0} BuildRequires: python3 >= 1:3.2 -BuildRequires: python3-devel >= 1:3.2 -BuildRequires: python3-tox >= 2.9.1 BuildRequires: python3-Cython -%{?with_system_rocksdb:BuildRequires: rocksdb-devel >= 5.6.0} -BuildRequires: rpmbuild(macros) >= 1.671 +BuildRequires: python3-PyYAML +BuildRequires: python3-devel >= 1:3.2 +BuildRequires: python3-modules >= 1:3.2 +%{?with_tests:BuildRequires: python3-tox >= 2.9.1} +BuildRequires: rabbitmq-c-devel +%{?with_seastar:BuildRequires: ragel >= 6.10} +%{?with_system_rocksdb:BuildRequires: rocksdb-devel >= 5.14} +BuildRequires: rpmbuild(macros) >= 2.021 +%{?with_qat:BuildRequires: qatlib-devel} BuildRequires: sed >= 4.0 BuildRequires: snappy-devel -BuildRequires: sphinx-pdg >= 3.0 +BuildRequires: sphinx-pdg >= 4.4.0 +BuildRequires: sqlite3-devel >= 3 +# >= 0.13.0 wanted, but seems to build with 0.11.0 +BuildRequires: thrift-devel BuildRequires: udev-devel %{?with_dpdk:BuildRequires: xorg-lib-libpciaccess-devel} BuildRequires: xfsprogs-devel +BuildRequires: xsimd-devel +%{?with_seastar:BuildRequires: yaml-cpp-devel >= 0.5.1} %ifarch %{x8664} BuildRequires: yasm %endif %{?with_zfs:BuildRequires: zfs-devel >= 0.8.0} BuildRequires: zlib-devel +BuildRequires: zstd-devel >= 1.4.4 Requires(post,preun): /sbin/chkconfig Requires(preun): rc-scripts Requires: %{name}-libs = %{version}-%{release} +Requires: lz4 >= 1:1.7.3 Requires: python3-%{name} = %{version}-%{release} +%{?with_system_rocksdb:Requires: rocksdb >= 5.14} Requires: systemd-units >= 38 -Obsoletes: gcephtool -Obsoletes: hadoop-cephfs +Requires: zstd >= 1.4.4 +Obsoletes: gcephtool < 0.51 +Obsoletes: hadoop-cephfs < 0.71 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define skip_post_check_so libceph_crypto_isal.so.* libceph_lz4.so.* libceph_snappy.so.* libceph_zlib.so.* libceph_zstd.so.* libcls_.*.so.* libec_.*.so.* +%define skip_post_check_so libceph_crypto_isal.so.* libceph_crypto_qat.so.* libceph_lz4.so.* libceph_snappy.so.* libceph_zlib.so.* libceph_zstd.so.* libcls_.*.so.* libec_.*.so.* %description Ceph is a distributed network file system designed to provide @@ -140,6 +198,9 @@ dobrej wydajności, wiarygodności i skalowalności. Summary: Ceph shared libraries Summary(pl.UTF-8): Biblioteki współdzielone Cepha Group: Libraries +Requires: libfmt >= 6.0.0 +Requires: librdkafka >= 0.9.2 +Requires: openssl >= 1.1 %description libs Ceph shared libraries. @@ -153,15 +214,15 @@ Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Cepha License: LGPL v2.1 Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} -Requires: boost-devel >= 1.66 +Requires: boost-devel >= 1.73 Requires: curl-devel -Requires: expat-devel +Requires: expat-devel >= 1.95 Requires: fcgi-devel Requires: nss-devel >= 3 -Requires: leveldb-devel +Requires: leveldb-devel >= 1.23-2 Requires: libatomic_ops Requires: libblkid-devel >= 2.17 -Requires: libstdc++-devel >= 6:4.7 +Requires: libstdc++-devel >= 6:7 Requires: libuuid-devel %{?with_lttng:Requires: lttng-ust-devel} Requires: openldap-devel @@ -180,6 +241,7 @@ Summary: Ceph Python 3 bindings Summary(pl.UTF-8): Wiązania Pythona 3 do bibliotek Cepha Group: Development/Languages/Python Requires: %{name}-libs = %{version}-%{release} +Obsoletes: python-ceph < 15 %description -n python3-ceph Ceph Python 3 bindings. @@ -273,7 +335,7 @@ uruchamiania demonów. %prep %setup -q %patch0 -p1 -#patch1 -p1 +%patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 @@ -285,10 +347,32 @@ uruchamiania demonów. %patch9 -p1 %endif %patch10 -p1 - -%{__sed} -E -i -e '1s,#!\s*/usr/bin/awk(\s|$),#!/bin/awk\1,' \ +%patch11 -p1 +%patch12 -p1 +%patch13 -p1 +%patch14 -p1 +%patch15 -p1 +%patch16 -p1 +%patch17 -p1 + +%{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' \ + src/{ceph-post-file.in,rbd-replay-many,rbdmap} \ + src/rgw/rgw-{gap,orphan}-list + +%{__sed} -i -e '1s,/usr/bin/awk,/bin/awk,' \ src/rgw/rgw-gap-list-comparator +%if %{with angular} +# stub virtualenv with npm for src/pybind/mgr/dashboard bootstrapping +install -d build/src/pybind/mgr/dashboard/node-env/bin +ln -sf /usr/bin/npm build/src/pybind/mgr/dashboard/node-env/bin/npm +cat >build/src/pybind/mgr/dashboard/node-env/bin/activate <