sync w/ changes in upstream glusterfs.spec.in, pending next build
This commit is contained in:
parent
c426a212af
commit
53a3e75bc0
@ -35,6 +35,10 @@
|
|||||||
# rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@tar.gz --without ufo
|
# rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@tar.gz --without ufo
|
||||||
%{?_without_ufo:%global _without_ufo true}
|
%{?_without_ufo:%global _without_ufo true}
|
||||||
|
|
||||||
|
%if ( 0%{?fedora} && 0%{?fedora} > 16 ) || ( 0%{?rhel} && 0%{?rhel} > 6 )
|
||||||
|
%global _with_systemd true
|
||||||
|
%endif
|
||||||
|
|
||||||
%if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} >= 6 )
|
%if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} >= 6 )
|
||||||
%global SWIFTVER 1.8.0
|
%global SWIFTVER 1.8.0
|
||||||
%if ( 0%{_for_fedora_koji_builds} )
|
%if ( 0%{_for_fedora_koji_builds} )
|
||||||
@ -47,48 +51,40 @@
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if ( 0%{?fedora} && 0%{?fedora} > 16 ) || ( 0%{?rhel} && 0%{?rhel} > 6 )
|
|
||||||
%global _with_systemd true
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Summary: Cluster File System
|
Summary: Cluster File System
|
||||||
%if ( 0%{_for_fedora_koji_builds} )
|
%if ( 0%{_for_fedora_koji_builds} )
|
||||||
Name: glusterfs
|
Name: glusterfs
|
||||||
Version: 3.4.0
|
Version: 3.4.0
|
||||||
Release: 2%{?prereltag:.%{prereltag}}%{?dist}
|
Release: 2%{?prereltag:.%{prereltag}}%{?dist}
|
||||||
|
Vendor: Fedora Project
|
||||||
%else
|
%else
|
||||||
Name: @PACKAGE_NAME@
|
Name: @PACKAGE_NAME@
|
||||||
Version: @PACKAGE_VERSION@
|
Version: @PACKAGE_VERSION@
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
|
Vendor: glusterfs.org
|
||||||
%endif
|
%endif
|
||||||
License: GPLv2 or LGPLv3+
|
License: GPLv2 or LGPLv3+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
%if ( 0%{_for_fedora_koji_builds} )
|
|
||||||
Vendor: Red Hat
|
|
||||||
%endif
|
|
||||||
URL: http://www.gluster.org//docs/index.php/GlusterFS
|
URL: http://www.gluster.org//docs/index.php/GlusterFS
|
||||||
%if ( 0%{_for_fedora_koji_builds} )
|
%if ( 0%{_for_fedora_koji_builds} )
|
||||||
Source0: http://download.gluster.org/pub/gluster/glusterfs/3.4/%{version}%{?prereltag}/glusterfs-%{version}%{?prereltag}.tar.gz
|
Source0: http://download.gluster.org/pub/gluster/glusterfs/3.4/%{version}%{?prereltag}/glusterfs-%{version}%{?prereltag}.tar.gz
|
||||||
%else
|
|
||||||
Source0: @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz
|
|
||||||
%endif
|
|
||||||
Source1: glusterd.sysconfig
|
Source1: glusterd.sysconfig
|
||||||
Source2: glusterfsd.sysconfig
|
Source2: glusterfsd.sysconfig
|
||||||
Source3: glusterfs-fuse.logrotate
|
Source3: glusterfs-fuse.logrotate
|
||||||
Source4: glusterd.logrotate
|
Source4: glusterd.logrotate
|
||||||
Source5: glusterfsd.logrotate
|
Source5: glusterfsd.logrotate
|
||||||
Source6: rhel5-load-fuse-modules
|
Source6: rhel5-load-fuse-modules
|
||||||
|
Source11: glusterfsd.service
|
||||||
|
Source13: glusterfsd.init
|
||||||
Patch0: %{name}-3.2.5.configure.ac.patch
|
Patch0: %{name}-3.2.5.configure.ac.patch
|
||||||
Patch1: %{name}-3.3.0.libglusterfs.Makefile.patch
|
Patch1: %{name}-3.3.0.libglusterfs.Makefile.patch
|
||||||
Patch2: %{name}-3.3.1.rpc.rpcxprt.rdma.name.c.patch
|
Patch2: %{name}-3.3.1.rpc.rpcxprt.rdma.name.c.patch
|
||||||
|
%else
|
||||||
|
Source0: @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz
|
||||||
|
%endif
|
||||||
|
|
||||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
|
|
||||||
Source10: glusterd.service
|
|
||||||
Source11: glusterfsd.service
|
|
||||||
Source12: glusterd.init
|
|
||||||
Source13: glusterfsd.init
|
|
||||||
|
|
||||||
%if ( ! ( 0%{?rhel} && 0%{?rhel} < 6 ) )
|
%if ( ! ( 0%{?rhel} && 0%{?rhel} < 6 ) )
|
||||||
# we don't build swift/ufo on rhel5
|
# we don't build swift/ufo on rhel5
|
||||||
# not including the sources is ugly, but we state our intentions clearly
|
# not including the sources is ugly, but we state our intentions clearly
|
||||||
@ -154,8 +150,9 @@ Patch23: glusterfs-3.4.0.swift.egginfo-grizzly.patch
|
|||||||
Patch24: 0002-Add-fixes-for-building-the-doc-package.patch.180
|
Patch24: 0002-Add-fixes-for-building-the-doc-package.patch.180
|
||||||
|
|
||||||
%if ( 0%{?_with_systemd:1} )
|
%if ( 0%{?_with_systemd:1} )
|
||||||
%global glusterd_service %{S:%{SOURCE10}}
|
%if ( 0%{_for_fedora_koji_builds} )
|
||||||
%global glusterfsd_service %{S:%{SOURCE11}}
|
%global glusterfsd_service %{S:%{SOURCE11}}
|
||||||
|
%endif
|
||||||
BuildRequires: systemd-units
|
BuildRequires: systemd-units
|
||||||
Requires(post): systemd-units
|
Requires(post): systemd-units
|
||||||
Requires(preun): systemd-units
|
Requires(preun): systemd-units
|
||||||
@ -174,7 +171,6 @@ Requires(postun): systemd-units
|
|||||||
%define _init_gluster_swift_proxy %{_unitdir}/gluster-swift-proxy.service
|
%define _init_gluster_swift_proxy %{_unitdir}/gluster-swift-proxy.service
|
||||||
%else
|
%else
|
||||||
%if ( 0%{_for_fedora_koji_builds} )
|
%if ( 0%{_for_fedora_koji_builds} )
|
||||||
%global glusterd_service %{S:%{SOURCE12}}
|
|
||||||
%global glusterfsd_service %{S:%{SOURCE13}}
|
%global glusterfsd_service %{S:%{SOURCE13}}
|
||||||
%endif
|
%endif
|
||||||
Requires(post): /sbin/chkconfig
|
Requires(post): /sbin/chkconfig
|
||||||
@ -217,8 +213,6 @@ Provides: %{name}-core = %{version}-%{release}
|
|||||||
|
|
||||||
# We do not want to generate useless provides and requires for xlator .so files
|
# We do not want to generate useless provides and requires for xlator .so files
|
||||||
# Filter all generated:
|
# Filter all generated:
|
||||||
# - .so requires that do not start with 'lib'
|
|
||||||
# - all provides from xlators and private libraries not in the ldconfig path
|
|
||||||
#
|
#
|
||||||
# TODO: RHEL5 does not have a convenient solution
|
# TODO: RHEL5 does not have a convenient solution
|
||||||
%if ( 0%{?rhel} == 6 )
|
%if ( 0%{?rhel} == 6 )
|
||||||
@ -307,7 +301,7 @@ This package provides support to FUSE based clients.
|
|||||||
|
|
||||||
%package server
|
%package server
|
||||||
Summary: Clustered file-system server
|
Summary: Clustered file-system server
|
||||||
License: GPLv3+
|
License: GPLv2 or GPLv3+
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: %{name}-fuse = %{version}-%{release}
|
Requires: %{name}-fuse = %{version}-%{release}
|
||||||
@ -330,7 +324,7 @@ This package provides the glusterfs server daemon.
|
|||||||
|
|
||||||
%package api
|
%package api
|
||||||
Summary: Clustered file-system api library
|
Summary: Clustered file-system api library
|
||||||
License: GPLv3+
|
License: GPLv2 or GPLv3+
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
@ -683,15 +677,13 @@ cd ..
|
|||||||
%{__install} -D -p -m 0644 extras/glusterd-sysconfig \
|
%{__install} -D -p -m 0644 extras/glusterd-sysconfig \
|
||||||
%{buildroot}%{_sysconfdir}/sysconfig/glusterd
|
%{buildroot}%{_sysconfdir}/sysconfig/glusterd
|
||||||
%endif
|
%endif
|
||||||
# We'll use our init.d
|
|
||||||
%if ( 0%{?_with_systemd:1} )
|
|
||||||
%{__rm} -f %{buildroot}%{_sysconfdir}/init.d/glusterd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
%if ( 0%{_for_fedora_koji_builds} )
|
||||||
%if ( 0%{?rhel} && 0%{?rhel} <= 5 )
|
%if ( 0%{?rhel} && 0%{?rhel} <= 5 )
|
||||||
%{__install} -D -p -m 0755 %{SOURCE7} \
|
%{__install} -D -p -m 0755 %{SOURCE6} \
|
||||||
%{buildroot}%{_sysconfdir}/sysconfig/modules/glusterfs-fuse.modules
|
%{buildroot}%{_sysconfdir}/sysconfig/modules/glusterfs-fuse.modules
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%{__mkdir_p} %{buildroot}%{_localstatedir}/log/glusterd
|
%{__mkdir_p} %{buildroot}%{_localstatedir}/log/glusterd
|
||||||
%{__mkdir_p} %{buildroot}%{_localstatedir}/log/glusterfs
|
%{__mkdir_p} %{buildroot}%{_localstatedir}/log/glusterfs
|
||||||
@ -723,9 +715,8 @@ EOM
|
|||||||
sed -i 's|option working-directory /etc/glusterd|option working-directory %{_sharedstatedir}/glusterd|g' \
|
sed -i 's|option working-directory /etc/glusterd|option working-directory %{_sharedstatedir}/glusterd|g' \
|
||||||
%{buildroot}%{_sysconfdir}/glusterfs/glusterd.vol
|
%{buildroot}%{_sysconfdir}/glusterfs/glusterd.vol
|
||||||
|
|
||||||
# Install systemd .service files. `make install` will install the init files
|
# Install glusterfsd .service or init.d file
|
||||||
%if ( 0%{?_with_systemd:1} ) || ( 0%{_for_fedora_koji_builds} )
|
%if ( 0%{?_with_systemd:1} ) || ( 0%{_for_fedora_koji_builds} )
|
||||||
%_init_install %{glusterd_service} glusterd
|
|
||||||
%_init_install %{glusterfsd_service} glusterfsd
|
%_init_install %{glusterfsd_service} glusterfsd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -881,6 +872,7 @@ cp ufo/bin/gluster-swift-gen-builders %{buildroot}%{_bindir}/
|
|||||||
%endif
|
%endif
|
||||||
# Remove tests
|
# Remove tests
|
||||||
%{__rm} -rf %{buildroot}/%{python_sitelib}/test
|
%{__rm} -rf %{buildroot}/%{python_sitelib}/test
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{__rm} -rf %{buildroot}
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
@ -947,9 +939,11 @@ fi
|
|||||||
%if ( ! 0%{?_without_fusermount:1} )
|
%if ( ! 0%{?_without_fusermount:1} )
|
||||||
%{_bindir}/fusermount-glusterfs
|
%{_bindir}/fusermount-glusterfs
|
||||||
%endif
|
%endif
|
||||||
|
%if ( 0%{_for_fedora_koji_builds} )
|
||||||
%if ( 0%{?rhel} && 0%{?rhel} <= 5 )
|
%if ( 0%{?rhel} && 0%{?rhel} <= 5 )
|
||||||
%{_sysconfdir}/sysconfig/modules/glusterfs-fuse.modules
|
%{_sysconfdir}/sysconfig/modules/glusterfs-fuse.modules
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%files server
|
%files server
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -1443,6 +1437,10 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 18 2013 Kaleb S. KEITHLEY <kkeithle[at]redhat.com>
|
||||||
|
- sync changes from upstream glusterfs.spec.in, ready for next build
|
||||||
|
|
||||||
|
|
||||||
* Tue Jul 16 2013 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 3.4.0-2
|
* Tue Jul 16 2013 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 3.4.0-2
|
||||||
- tag /var/lib/glusterd/glusterd.info as %config
|
- tag /var/lib/glusterd/glusterd.info as %config
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user