2011-05-24 15:38:41 +00:00
|
|
|
Name: sheepdog
|
|
|
|
Summary: The Sheepdog Distributed Storage System for KVM/QEMU
|
2012-01-12 05:34:06 +00:00
|
|
|
Version: 0.3.0
|
2012-07-21 19:31:58 +00:00
|
|
|
Release: 3%{?dist}
|
2011-05-24 15:38:41 +00:00
|
|
|
License: GPLv2 and GPLv2+
|
|
|
|
Group: System Environment/Base
|
|
|
|
URL: http://www.osrg.net/sheepdog
|
2012-01-12 05:34:06 +00:00
|
|
|
Source0: collie-sheepdog-v0.3.0-0-gbb41896.tar.gz
|
|
|
|
#get source from github here https://github.com/collie/sheepdog/tarball/v0.3.0
|
|
|
|
Source1: sheepdog.service
|
2012-03-16 10:21:58 +00:00
|
|
|
Patch0: update_cpg_to_cs_defines.patch
|
2011-05-24 15:38:41 +00:00
|
|
|
|
|
|
|
# Runtime bits
|
|
|
|
Requires: corosync
|
|
|
|
Requires(post): chkconfig
|
|
|
|
Requires(preun): chkconfig
|
|
|
|
Requires(preun): initscripts
|
2012-01-12 05:34:06 +00:00
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(preun): systemd-units
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
Requires(post): systemd-sysv
|
2011-05-24 15:38:41 +00:00
|
|
|
|
|
|
|
# Build bits
|
2012-01-12 05:34:06 +00:00
|
|
|
BuildRequires: autoconf automake systemd-units
|
2011-05-24 15:38:41 +00:00
|
|
|
BuildRequires: corosync corosynclib corosynclib-devel
|
|
|
|
|
|
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
|
|
2011-11-25 01:14:15 +00:00
|
|
|
%if 0%{?rhel} >= 6
|
|
|
|
Excludearch: ppc
|
|
|
|
Excludearch: ppc64
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-24 15:38:41 +00:00
|
|
|
%description
|
|
|
|
This package contains the Sheepdog server, and command line tool which offer
|
|
|
|
a distributed object storage system for KVM.
|
|
|
|
|
|
|
|
%prep
|
2012-01-12 05:34:06 +00:00
|
|
|
%setup -qn collie-sheepdog-bb41896
|
2012-03-16 10:21:58 +00:00
|
|
|
%patch0 -p1
|
2011-05-24 15:38:41 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
./autogen.sh
|
|
|
|
%{configure} --with-initddir=%{_initrddir}
|
|
|
|
|
|
|
|
make %{_smp_mflags}
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
make install DESTDIR=%{buildroot}
|
2012-01-12 05:34:06 +00:00
|
|
|
mkdir -p %{buildroot}/%{_unitdir}
|
|
|
|
cp -a %{SOURCE1} %{buildroot}/%{_unitdir}/
|
2011-05-24 15:38:41 +00:00
|
|
|
## tree fixup
|
|
|
|
# drop static libs
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.a
|
2012-01-12 05:34:06 +00:00
|
|
|
rm -f %{buildroot}%{_initddir}/sheepdog
|
2011-05-24 15:38:41 +00:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%post
|
2012-01-12 05:34:06 +00:00
|
|
|
if [ $1 -eq 1 ] ; then
|
|
|
|
# Initial installation
|
|
|
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
|
fi
|
2011-05-24 15:38:41 +00:00
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ] ; then
|
2012-01-12 05:34:06 +00:00
|
|
|
# Package removal, not upgrade
|
|
|
|
/bin/systemctl --no-reload disable sheepdog.service > /dev/null 2>&1 || :
|
|
|
|
/bin/systemctl stop sheepdog.service > /dev/null 2>&1 || :
|
2011-05-24 15:38:41 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
2012-01-12 05:34:06 +00:00
|
|
|
%triggerun -- sheepdog < 0.2.4-2
|
|
|
|
/usr/bin/systemd-sysv-convert --save httpd >/dev/null 2>&1 ||:
|
|
|
|
/sbin/chkconfig --del httpd >/dev/null 2>&1 || :
|
|
|
|
/bin/systemctl try-restart sheepdog.service >/dev/null 2>&1 || :
|
|
|
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
|
if [ $1 -ge 1 ] ; then
|
|
|
|
# Package upgrade, not uninstall
|
|
|
|
/bin/systemctl try-restart sheepdog.service >/dev/null 2>&1 || :
|
2011-05-24 15:38:41 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING README INSTALL
|
|
|
|
%{_sbindir}/sheep
|
|
|
|
%{_sbindir}/collie
|
2012-01-12 05:34:06 +00:00
|
|
|
#%attr(755,-,-)%config %{_initddir}/sheepdog
|
|
|
|
%{_unitdir}/sheepdog.service
|
2011-05-24 15:38:41 +00:00
|
|
|
%dir %{_localstatedir}/lib/sheepdog
|
|
|
|
%{_mandir}/man8/sheep.8*
|
|
|
|
|
|
|
|
%changelog
|
2012-07-21 19:31:58 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-03-16 10:21:58 +00:00
|
|
|
* Fri Mar 16 2012 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.3.0-2
|
|
|
|
- Rebuild against new corosync (soname change).
|
|
|
|
- Add patch to fix build against new corosync headers.
|
|
|
|
|
2012-01-12 05:34:06 +00:00
|
|
|
* Wed Jan 15 2012 David Nalley <david@gnsa.us> - 0.3.0-1
|
|
|
|
- updating to 0.3.0
|
|
|
|
|
|
|
|
* Thu Nov 24 2011 David Nalley <david@gnsa.us> - 0.2.4-2
|
|
|
|
- adding systemd support
|
|
|
|
|
2011-11-25 01:14:15 +00:00
|
|
|
* Thu Nov 24 2011 David Nalley <david@gnsa.us> - 0.2.4-1
|
|
|
|
- updating to 0.2.4
|
|
|
|
|
|
|
|
* Sat Jun 04 2011 David Nalley <david@gnsa.us> - 0.2.3-2
|
|
|
|
- excluding ppc and ppc64 arch for el6
|
|
|
|
|
2011-05-24 15:38:41 +00:00
|
|
|
* Sat May 21 2011 David Nalley <david@gnsa.us> - 0.2.3-1
|
|
|
|
- updating to 0.2.3 to track upstream.
|
|
|
|
|
|
|
|
* Fri May 20 2011 David Nalley <david@gnsa.us> - 0.2.2-2
|
|
|
|
- removed -n from setup
|
|
|
|
- hardcoded version number.
|
|
|
|
- changed lic from gpl to gplv2
|
|
|
|
- added INSTALL to doc
|
|
|
|
- added proper handling of initscripts
|
|
|
|
|
|
|
|
* Fri May 20 2011 Autotools generated version <nobody@nowhere.org> - 0.2.2-1
|
|
|
|
- Autotools generated version
|
|
|
|
|