[Sheepdog] [PATCH] Update sheepdog.spec.in to match Fedora upstream rpm

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Mon Jun 6 19:18:45 CEST 2011


At Sun,  5 Jun 2011 15:10:19 -0700,
Steven Dake wrote:
> 
> Signed-off-by: Steven Dake <sdake at redhat.com>
> ---
>  sheepdog.spec.in |   32 +++++++++++++++++++++++++-------
>  1 files changed, 25 insertions(+), 7 deletions(-)

Applied, thanks!

Kazutaka


> 
> diff --git a/sheepdog.spec.in b/sheepdog.spec.in
> index 937ea04..ce4ef14 100644
> --- a/sheepdog.spec.in
> +++ b/sheepdog.spec.in
> @@ -2,13 +2,16 @@ Name: sheepdog
>  Summary: The Sheepdog Distributed Storage System for KVM/QEMU
>  Version: @version@
>  Release: 1%{?dist}
> -License: GPL
> +License: GPLv2 and GPLv2+
>  Group: System Environment/Base
>  URL: http://www.osrg.net/sheepdog
>  Source0: http://downloads.sourceforge.net/project/sheepdog/%{name}/%{version}/%{name}-%{version}.tar.gz
>  
>  # Runtime bits
> -Requires: corosync corosynclib
> +Requires: corosync
> +Requires(post): chkconfig
> +Requires(preun): chkconfig
> +Requires(preun): initscripts
>  
>  # Build bits
>  BuildRequires: autoconf automake
> @@ -16,8 +19,12 @@ BuildRequires: corosync corosynclib corosynclib-devel
>  
>  BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
>  
> +%description
> +This package contains the Sheepdog server, and command line tool which offer
> +a distributed object storage system for KVM.
> +
>  %prep
> -%setup -q -n %{name}-%{version}
> +%setup -q
>  
>  %build
>  ./autogen.sh
> @@ -37,15 +44,26 @@ rm -f %{buildroot}%{_libdir}/*.a
>  %clean
>  rm -rf %{buildroot}
>  
> -%description
> -This package contains the Sheepdog server, and command line tool.
> +%post
> +/sbin/chkconfig --add sheepdog
> +
> +%preun
> +if [ $1 -eq 0 ] ; then
> +	/sbin/service sheepdog stop >/dev/null 2>&1
> +	/sbin/chkconfig --del sheepdog
> +fi
> +
> +%postun
> +if [ "$1" -ge "1" ] ; then
> +	/sbin/service sheepdog condrestart >/dev/null 2>&1 || :
> +fi
>  
>  %files
>  %defattr(-,root,root,-)
> -%doc COPYING README
> +%doc COPYING README INSTALL
>  %{_sbindir}/sheep
>  %{_sbindir}/collie
> -%{_initddir}/sheepdog
> +%attr(755,-,-)%config %{_initddir}/sheepdog
>  %dir %{_localstatedir}/lib/sheepdog
>  %{_mandir}/man8/sheep.8*
>  
> -- 
> 1.7.4.4
> 
> -- 
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog



More information about the sheepdog mailing list