X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=ceph.spec;h=83adbab20baababfa4d2b7efd8d01b88668b06ca;hb=refs%2Fheads%2Fmerge-16;hp=931498df0ab8a58364b3ed8e2073e12dc22b3469;hpb=f25d96c87ba4507d5602ae31fe188c017304ca41;p=packages%2Fceph.git diff --git a/ceph.spec b/ceph.spec index 931498d..83adbab 100644 --- a/ceph.spec +++ b/ceph.spec @@ -1,24 +1,36 @@ # TODO: -# - proper init scripts if non-systemd boot is too be supported +# - libzbd bluestore backend? (WITH_ZBD=ON, BR: libzbd-devel) +# - bluefs? (WITH_BLUEFS=ON) +# - QATZIP? (WITH_QATZIP=ON, BR: qatzip-devel) +# - brotli? (WITH_BROTLI=ON, uses internal brotli as downloaded subproject) +# - seastar (WITH_SEASTAR=ON, BR: c-ares-devel >= 1.13.0) +# - 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/ # # 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_without fcgi # RADOS Gateway FCGI frontend -%bcond_without fio # FIO engines support +%bcond_with angular # Angular-based mgr/dashboard frontend (built using npm, too outdated currently) +%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 rdma # RDMA transport support %bcond_with spdk # Ceph SPDK support (DPDK based) %bcond_without system_rocksdb # system RocksDB storage support -%bcond_without zfs # ZFS support [not ready for zfs 0.8.x] +# 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 @@ -26,105 +38,119 @@ %ifnarch %{x8664} aarch64 %undefine with_pmem %endif -%if %{without cryptopp} && %{with dpdk} -%error DPDK requires cryptopp -%endif # 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: 12.2.13 +Version: 16.2.9 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: 38bd01cf8224c9ca081298e19ab6e5a1 +# Source0-md5: d823195299c0950659343fc6ad39aa1b Source1: ceph.sysconfig -Source2: cephctl Source3: ceph.tmpfiles -Patch0: %{name}-init-fix.patch -Patch1: %{name}.logrotate.patch -Patch2: boost.patch -Patch3: %{name}-python.patch -Patch4: %{name}-types.patch -Patch5: %{name}-tcmalloc.patch -Patch6: %{name}-rocksdb.patch -Patch7: %{name}-fcgi.patch -Patch8: %{name}-fio.patch -Patch9: %{name}-zfs.patch -Patch10: %{name}-includes.patch +Patch0: %{name}-python.patch +Patch1: %{name}-fio.patch +Patch2: %{name}-fcgi.patch +Patch3: string-includes.patch +Patch4: no-virtualenvs.patch +Patch5: system-zstd.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 +Patch11: %{name}-liburing.patch URL: https://ceph.io/ -%{?with_accelio:BuildRequires: accelio-devel} %{?with_babeltrace:BuildRequires: babeltrace-devel} -BuildRequires: boost-devel >= 1.66 -BuildRequires: boost-python-devel >= 1.66 -BuildRequires: cmake >= 2.8.11 -%{?with_cryptopp:BuildRequires: cryptopp-devel} +BuildRequires: boost-devel >= 1.72 +BuildRequires: boost-python3-devel >= 1.72 +BuildRequires: cmake >= 3.22.2 +BuildRequires: cryptsetup-devel >= 2.0.5 BuildRequires: curl-devel %if %{with dpdk} || %{with spdk} 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: gperf +%{?with_tcmalloc:BuildRequires: gperftools-devel >= 2.6.2} +%{?with_kerberos:BuildRequires: heimdal-devel} %if %{with java} BuildRequires: jdk +BuildRequires: 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: libfuse-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 -%{?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} +BuildRequires: libstdc++-devel >= 6:7 +%{?with_tcmalloc:BuildRequires: libtcmalloc-devel >= 2.6.2} BuildRequires: libtool >= 2:1.5 +BuildRequires: liburing-devel BuildRequires: libuuid-devel BuildRequires: libxml2-devel >= 2.0 %{?with_lttng:BuildRequires: lttng-ust-devel} +BuildRequires: lua-devel >= 5.3 BuildRequires: lz4-devel >= 1:1.7 -%{!?with_cryptopp:BuildRequires: nss-devel >= 3} +BuildRequires: ncurses-devel +%{?with_angular:BuildRequires: npm} +BuildRequires: nspr-devel >= 4 +BuildRequires: nss-devel >= 3 +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} -BuildRequires: python >= 1:2.7 -BuildRequires: python-devel >= 1:2.7 -BuildRequires: python-Cython +%{?with_pmem:BuildRequires: pmdk-devel >= 1.6.1} +BuildRequires: python3 >= 1:3.2 BuildRequires: python3-devel >= 1:3.2 -# upstream uses 3.0.0, rocksdb patch adjusts for 5.6.0 API change -%{?with_system_rocksdb:BuildRequires: rocksdb-devel >= 5.6.0} +%{?with_tests:BuildRequires: python3-tox >= 2.9.1} +BuildRequires: python3-Cython +BuildRequires: rabbitmq-c-devel +%{?with_system_rocksdb:BuildRequires: rocksdb-devel >= 5.14} BuildRequires: rpmbuild(macros) >= 1.671 BuildRequires: sed >= 4.0 BuildRequires: snappy-devel -BuildRequires: sphinx-pdg-2 >= 1.0 +BuildRequires: sphinx-pdg >= 4.4.0 +BuildRequires: sqlite3-devel >= 3 BuildRequires: udev-devel -#BuildRequires: virtualenv for tests %{?with_dpdk:BuildRequires: xorg-lib-libpciaccess-devel} BuildRequires: xfsprogs-devel %ifarch %{x8664} BuildRequires: yasm %endif -# zfs patch updates to 0.8.0 API %{?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: python-%{name} = %{version}-%{release} +Requires: lz4 >= 1:1.7 +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_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_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 @@ -138,6 +164,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. @@ -151,15 +180,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.72 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 @@ -173,23 +202,12 @@ Ceph. Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów wykorzystujących Cepha. -%package -n python-ceph -Summary: Ceph Python 2 bindings -Summary(pl.UTF-8): Wiązania Pythona 2 do bibliotek Cepha -Group: Development/Languages/Python -Requires: %{name}-libs = %{version}-%{release} - -%description -n python-ceph -Ceph Python 2 bindings. - -%description -n python-ceph -l pl.UTF-8 -Wiązania Pythona 2 do bibliotek 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. @@ -250,6 +268,18 @@ 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 @@ -272,44 +302,83 @@ uruchamiania demonów. %setup -q %patch0 -p1 %patch1 -p1 -%patch2 -p0 +%patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 +%ifarch %{ix86} %patch9 -p1 +%endif %patch10 -p1 - -%{__sed} -i -e '1s,/usr/bin/env python$,%{__python},' \ - src/{ceph-create-keys,ceph-rest-api,mount.fuse.ceph} \ - src/brag/client/ceph-brag \ - src/ceph-disk/ceph_disk/main.py +%patch11 -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 <