# TODO: # - 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 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 (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 %bcond_without tcmalloc # tcmalloc allocator %bcond_with tests # build tests %ifarch x32 %undefine with_tcmalloc %endif %ifnarch %{x8664} aarch64 %undefine with_pmem %endif %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: 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: 843fb59f95f62e0e156539e49a2a3a9a Source1: ceph.sysconfig Source3: ceph.tmpfiles Patch0: %{name}-python.patch Patch1: %{name}-fio.patch Patch2: %{name}-cmake-static.patch Patch3: %{name}-arrow-pld.patch Patch4: no-virtualenvs.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: %{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_qatzip:BuildRequires: QATzip-devel} %{?with_babeltrace:BuildRequires: babeltrace-devel} 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_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 >= 3.15} BuildRequires: gdbm-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: %{?use_jdk:%{use_jdk}-jre-base-X11}%{!?use_jdk:jre-X11} %endif BuildRequires: keyutils-devel 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: libfmt-devel >= 6.0.0 BuildRequires: libfuse3-devel >= 3 %{?with_rdma:BuildRequires: libibverbs-devel} BuildRequires: libicu-devel >= 52.0 BuildRequires: libltdl-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 >= 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 >= 1.1 BuildRequires: perl-base BuildRequires: pkgconfig %{?with_pmem:BuildRequires: pmdk-devel >= 1.10.0} BuildRequires: python3 >= 1:3.2 BuildRequires: python3-Cython 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 >= 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 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_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 excellent performance, reliability, and scalability. %description -l pl.UTF-8 Ceph to rozproszony sieciowy system plików zaprojektowany z myślą o dobrej wydajności, wiarygodności i skalowalności. %package libs 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. %description libs -l pl.UTF-8 Biblioteki współdzielone Cepha. %package devel Summary: Ceph header files 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.73 Requires: curl-devel Requires: expat-devel >= 1.95 Requires: fcgi-devel Requires: nss-devel >= 3 Requires: leveldb-devel >= 1.23-2 Requires: libatomic_ops Requires: libblkid-devel >= 2.17 Requires: libstdc++-devel >= 6:7 Requires: libuuid-devel %{?with_lttng:Requires: lttng-ust-devel} Requires: openldap-devel Obsoletes: ceph-static < 12 %description devel This package contains the headers needed to develop programs that use Ceph. %description devel -l pl.UTF-8 Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów wykorzystujących Cepha. %package -n python3-ceph 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. %description -n python3-ceph -l pl.UTF-8 Wiązania Pythona 3 do bibliotek Cepha. %package -n java-cephfs Summary: CephFS Java bindings Summary(pl.UTF-8): Wiązania Javy do biblioteki CephFS Group: Libraries/Java Requires: %{name}-libs = %{version}-%{release} %description -n java-cephfs CephFS Java bindings. %description -n java-cephfs -l pl.UTF-8 Wiązania Javy do biblioteki CephFS. %package fuse Summary: Ceph FUSE-based client Summary(pl.UTF-8): Klient Cepha oparty na FUSE Group: Base Requires: %{name} = %{version}-%{release} %description fuse FUSE based client for Ceph distributed network file system. %description fuse -l pl.UTF-8 Oparty na FUSE klient rozproszonego sieciowego systemu plików Ceph. %package radosgw Summary: rados REST gateway Summary(pl.UTF-8): Bramka REST-owa rados Group: Applications/System #Requires: apache-mod_fcgid %description radosgw radosgw is an S3 HTTP REST gateway for the RADOS object store. It is implemented as a FastCGI module using libfcgi, and can be used in conjunction with any FastCGI capable web server. %description radosgw -l pl.UTF-8 radosgw to REST-owa bramka HTTP S3 do przechowalni obiektów RADOS. Jest zaimplementowana jako moduł FastCGI wykorzystujący libfcgi i może być używana w połączeniu z dowolnym serwerem WWW obsługującym FastCGI. %package resource-agents Summary: OCF Resource Agents for Ceph processes Summary(pl.UTF-8): Agenci OCF do monitorowania procesów Cepha Group: Applications/System Requires: %{name} = %{version}-%{release} Requires: resource-agents %description resource-agents OCF Resource Agents for Ceph processes. %description resource-agents -l pl.UTF-8 Agenci OCF do monitorowania procesów Cepha. %package test Summary: Ceph benchmarks and test tools Summary(pl.UTF-8): Narzędzia testowe oraz do mierzenia wydajności dla Ceph Group: Applications/System Requires: %{name} = %{version}-%{release} %description test Ceph benchmarks and test tools. %description test -l pl.UTF-8 Narzędzia testowe oraz do mierzenia wydajności dla Ceph. %package -n fio-ceph-objectstore Summary: FIO engine module for Ceph ObjectStore Summary(pl.UTF-8): Moduł silnika FIO do używania Ceph ObjectStore Group: Libraries Requires: %{name}-libs = %{version}-%{release} %if %{with fio} %requires_ge_to fio fio-devel %endif %description -n fio-ceph-objectstore This FIO engine allows you to mount and use a ceph object store directly, without having to build a ceph cluster or start any daemons. %description -n fio-ceph-objectstore -l pl.UTF-8 Ten silnik FIO pozwala na bezpośrednie montowanie i używanie przestrzeni obiektów ceph, bez potrzeby budowania klastra ceph czy uruchamiania demonów. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %ifarch %{ix86} %patch9 -p1 %endif %patch10 -p1 %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 <