nfs-ganesha 2.5rc2

This commit is contained in:
Kaleb S. KEITHLEY 2017-04-22 08:38:40 -04:00
parent bfd42fc375
commit 59466f6b5c
2 changed files with 52 additions and 15 deletions

View File

@ -37,6 +37,9 @@ Requires: sles-release >= 12
%bcond_without nullfs
%global use_fsal_null %{on_off_switch nullfs}
%bcond_with mem
%global use_fsal_mem %{on_off_switch mem}
%bcond_with gpfs
%global use_fsal_gpfs %{on_off_switch gpfs}
@ -46,7 +49,7 @@ Requires: sles-release >= 12
%bcond_without ceph
%global use_fsal_ceph %{on_off_switch ceph}
%bcond_without rgw
%bcond_with rgw
%global use_fsal_rgw %{on_off_switch rgw}
%bcond_without gluster
@ -72,15 +75,18 @@ Requires: sles-release >= 12
%bcond_without system_ntirpc
%global use_system_ntirpc %{on_off_switch system_ntirpc}
%global dev rc2
%global dash_dev_version 2.5-rc2
Name: nfs-ganesha
Version: 2.4.5
Release: 2%{?dev:%{dev}}%{?dist}
Version: 2.5.0
Release: 0.1%{?dev:%{dev}}%{?dist}
Summary: NFS-Ganesha is a NFS Server running in user space
Group: Applications/System
License: LGPLv3+
Url: https://github.com/nfs-ganesha/nfs-ganesha/wiki
Source0: https://github.com/%{name}/%{name}/archive/V%{version}/%{name}-%{version}.tar.gz
Source0: https://github.com/%{name}/%{name}/archive/V%{dash_dev_version}/%{name}-%{dash_dev_version}.tar.gz
BuildRequires: cmake
BuildRequires: bison
@ -100,7 +106,7 @@ BuildRequires: libblkid-devel
BuildRequires: libuuid-devel
BuildRequires: gcc-c++
%if %{with system_ntirpc}
BuildRequires: libntirpc-devel >= 1.4.1
BuildRequires: libntirpc-devel >= 1.5.0
%endif
%if ( 0%{?fedora} )
# this should effectively be a no-op, as all Fedora installs should have it
@ -136,6 +142,7 @@ Requires(postun): systemd
%else
BuildRequires: initscripts
%endif
Requires(post): psmisc
# Use CMake variables
@ -177,9 +184,9 @@ be used with NFS-Ganesha to support PROXY based filesystems
Summary: The NFS-GANESHA's util scripts
Group: Applications/System
%if ( 0%{?suse_version} )
Requires: dbus-1-python, python-gobject2
Requires: dbus-1-python, python-gobject2 python-pyparsing
%else
Requires: dbus-python, pygobject2
Requires: dbus-python, pygobject2, pyparsing
%endif
%if %{with gui_utils}
%if ( 0%{?suse_version} )
@ -224,6 +231,18 @@ This package contains a Stackable FSAL shared object to
be used with NFS-Ganesha. This is mostly a template for future (more sophisticated) stackable FSALs
%endif
# MEM
%if %{with mem}
%package mem
Summary: The NFS-GANESHA's Memory backed testing FSAL
Group: Applications/System
Requires: nfs-ganesha = %{version}-%{release}
%description mem
This package contains a FSAL shared object to be used with NFS-Ganesha. This
is used for speed and latency testing.
%endif
# GPFS
%if %{with gpfs}
%package gpfs
@ -242,7 +261,7 @@ be used with NFS-Ganesha to support GPFS backend
Summary: The NFS-GANESHA's CephFS FSAL
Group: Applications/System
Requires: nfs-ganesha = %{version}-%{release}
BuildRequires: libcephfs1-devel >= 10.2.0
BuildRequires: libcephfs1-devel >= 10.2.7
%description ceph
This package contains a FSAL shared object to
@ -255,7 +274,7 @@ be used with NFS-Ganesha to support CephFS
Summary: The NFS-GANESHA's Ceph RGW FSAL
Group: Applications/System
Requires: nfs-ganesha = %{version}-%{release}
BuildRequires: librgw2-devel >= 10.2.0
BuildRequires: librgw2-devel >= 10.2.7
%description rgw
This package contains a FSAL shared object to
@ -293,7 +312,7 @@ be used with NFS-Ganesha to support PANFS
Summary: The NFS-GANESHA's GLUSTER FSAL
Group: Applications/System
Requires: nfs-ganesha = %{version}-%{release}
BuildRequires: glusterfs-api-devel >= 3.8.5
BuildRequires: glusterfs-api-devel >= 3.10.0
BuildRequires: libattr-devel, libacl-devel
%description gluster
@ -302,13 +321,14 @@ be used with NFS-Ganesha to support Gluster
%endif
%prep
%setup -q -n %{name}-%{version}
%setup -q -n %{name}-%{dash_dev_version}
rm -rf contrib/libzfswrapper
%build
cd src && %cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DBUILD_CONFIG=rpmbuild \
-DUSE_FSAL_NULL=%{use_fsal_null} \
-DUSE_FSAL_MEM=%{use_fsal_mem} \
-DUSE_FSAL_ZFS=NO \
-DUSE_FSAL_XFS=%{use_fsal_xfs} \
-DUSE_FSAL_CEPH=%{use_fsal_ceph} \
@ -373,6 +393,11 @@ install -m 644 config_samples/xfs.conf %{buildroot}%{_sysconfdir}/ganesha
install -m 644 config_samples/ceph.conf %{buildroot}%{_sysconfdir}/ganesha
%endif
%if %{with rgw}
install -m 644 config_samples/rgw.conf %{buildroot}%{_sysconfdir}/ganesha
install -m 644 config_samples/rgw_bucket.conf %{buildroot}%{_sysconfdir}/ganesha
%endif
%if %{with gluster}
install -m 644 config_samples/logrotate_fsal_gluster %{buildroot}%{_sysconfdir}/logrotate.d/ganesha-gfapi
%endif
@ -403,7 +428,7 @@ make DESTDIR=%{buildroot} install
%systemd_post nfs-ganesha-config.service
%endif
%endif
killall -SIGHUP dbus-daemon 2>&1 > /dev/null
killall -SIGHUP dbus-daemon >/dev/null 2>&1 || :
%preun
%if ( 0%{?suse_version} )
@ -427,8 +452,8 @@ killall -SIGHUP dbus-daemon 2>&1 > /dev/null
%license src/LICENSE.txt
%{_bindir}/ganesha.nfsd
%if ! %{with system_ntirpc}
%{_libdir}/libntirpc.so.1.4.0
%{_libdir}/libntirpc.so.1.4
%{_libdir}/libntirpc.so.1.5.0
%{_libdir}/libntirpc.so.1.5
%{_libdir}/libntirpc.so
%{_libdir}/pkgconfig/libntirpc.pc
%{_includedir}/ntirpc/
@ -471,6 +496,12 @@ killall -SIGHUP dbus-daemon 2>&1 > /dev/null
%{_libdir}/ganesha/libfsalnull*
%endif
%if %{with mem}
%files mem
%defattr(-,root,root,-)
%{_libdir}/ganesha/libfsalmem*
%endif
%if %{with gpfs}
%files gpfs
%{_libdir}/ganesha/libfsalgpfs*
@ -502,6 +533,7 @@ killall -SIGHUP dbus-daemon 2>&1 > /dev/null
%defattr(-,root,root,-)
%{_libdir}/ganesha/libfsalrgw*
%config(noreplace) %{_sysconfdir}/ganesha/rgw.conf
%config(noreplace) %{_sysconfdir}/ganesha/rgw_bucket.conf
%endif
%if %{with gluster}
@ -545,9 +577,14 @@ killall -SIGHUP dbus-daemon 2>&1 > /dev/null
%{_bindir}/ganesha_stats
%{_bindir}/sm_notify.ganesha
%{_bindir}/ganesha_mgr
%{_bindir}/ganesha_conf
%{_mandir}/*/*
%endif
%changelog
* Mon Apr 24 2017 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.5.0-0.1rc2
- nfs-ganesha 2.5rc2
* Wed Apr 19 2017 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.4.5-2
- nfs-ganesha 2.4.5 GA, w/ RGW again (cephfs-10.2.7)

View File

@ -1 +1 @@
SHA512 (nfs-ganesha-2.4.5.tar.gz) = 1c0b68d2b818d53b3dd5881a10c13b125640edbecdd07ade2e09bba042b3088bb1c0a30b6e498e7872fbe7d16641730f9cbcbb336b4129f333a55569a7762984
SHA512 (nfs-ganesha-2.5-rc2.tar.gz) = 41647c1f2096a5beb944665831370829f86f6f5fb55a7e17f8060a4c251bdd03704b458cfea97ba747398eccc9b39c600a67121e96fd409a5e2c3e7fc5e87d5d