# TODO: # - proper init scripts if non-systemd boot is too 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 angular # Angular-based mgr/dashboard frontend (built using npm, too outdated currently) %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_with fio # FIO engines support %bcond_without pmem # PMDK (persistent memory) 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] %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 %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: 13.2.10 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: 4dfcd8bf2cbbc90ac3bc70cbb2992fa9 Source1: ceph.sysconfig Source3: ceph.tmpfiles Patch0: %{name}-init-fix.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 URL: https://ceph.io/ %{?with_accelio:BuildRequires: accelio-devel} %{?with_babeltrace:BuildRequires: babeltrace-devel} BuildRequires: boost-devel >= 1.67 BuildRequires: boost-python-devel >= 1.67 BuildRequires: cmake >= 2.8.12 %{?with_cryptopp:BuildRequires: cryptopp-devel} BuildRequires: curl-devel %if %{with dpdk} || %{with spdk} BuildRequires: dpdk-devel %endif BuildRequires: expat-devel >= 1.95 %{?with_fcgi:BuildRequires: fcgi-devel} %{?with_fio:BuildRequires: fio-devel} BuildRequires: gdbm-devel %if %{with java} BuildRequires: jdk %endif BuildRequires: keyutils-devel BuildRequires: leveldb-devel >= 1.2 BuildRequires: libaio-devel BuildRequires: libatomic_ops BuildRequires: libblkid-devel >= 2.17 BuildRequires: libedit-devel >= 2.11 BuildRequires: libfuse-devel # +RDMA? %{?with_accelio:BuildRequires: libibverbs-devel} BuildRequires: libltdl-devel %{?with_accelio:BuildRequires: librdmacm-devel} BuildRequires: libstdc++-devel >= 6:7 %{?with_tcmalloc:BuildRequires: libtcmalloc-devel} BuildRequires: libtool >= 2:1.5 BuildRequires: libuuid-devel BuildRequires: libxml2-devel >= 2.0 %{?with_lttng:BuildRequires: lttng-ust-devel} BuildRequires: lz4-devel >= 1:1.7 %{?with_angular:BuildRequires: npm} %{!?with_cryptopp:BuildRequires: nss-devel >= 3} BuildRequires: openldap-devel BuildRequires: openssl-devel BuildRequires: perl-base BuildRequires: pkgconfig %{?with_pmem:BuildRequires: pmdk-devel} BuildRequires: python >= 1:2.7 BuildRequires: python-devel >= 1:2.7 BuildRequires: python-Cython BuildRequires: python3-devel >= 1:3.2 BuildRequires: python3-Cython %{?with_system_rocksdb:BuildRequires: rocksdb-devel >= 5.8} BuildRequires: rpmbuild(macros) >= 1.671 BuildRequires: sed >= 4.0 BuildRequires: snappy-devel BuildRequires: sphinx-pdg-2 >= 1.0 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 Requires(post,preun): /sbin/chkconfig Requires(preun): rc-scripts Requires: %{name}-libs = %{version}-%{release} Requires: python-%{name} = %{version}-%{release} Requires: systemd-units >= 38 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.* %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 %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.67 Requires: curl-devel Requires: expat-devel Requires: fcgi-devel Requires: nss-devel >= 3 Requires: leveldb-devel 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 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} %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 %patch2 -p0 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %{__sed} -i -e '1s,/usr/bin/env python$,%{__python},' \ src/{ceph-create-keys,mount.fuse.ceph} \ src/ceph-disk/ceph_disk/main.py %{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' \ src/{ceph-post-file.in,rbd-replay-many,rbdmap} %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 <