Name: sheepdog Summary: The Sheepdog Distributed Storage System for KVM/QEMU Version: 0.3.0 Release: 11%{?dist} License: GPLv2 and GPLv2+ Group: System Environment/Base URL: http://www.osrg.net/sheepdog 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 Patch0: update_cpg_to_cs_defines.patch Patch1: coroutine-stack-size.patch # Runtime bits Requires: corosync Requires(post): chkconfig Requires(preun): chkconfig Requires(preun): initscripts Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units Requires(post): systemd-sysv # Build bits BuildRequires: autoconf automake systemd-units BuildRequires: corosync corosynclib corosynclib-devel BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) %if 0%{?rhel} >= 6 Excludearch: ppc Excludearch: ppc64 %endif %description This package contains the Sheepdog server, and command line tool which offer a distributed object storage system for KVM. %prep %setup -qn collie-sheepdog-bb41896 %patch0 -p1 %patch1 -p1 %build ./autogen.sh %{configure} --with-initddir=%{_initrddir} make %{_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} mkdir -p %{buildroot}/%{_unitdir} cp -a %{SOURCE1} %{buildroot}/%{_unitdir}/ ## tree fixup # drop static libs rm -f %{buildroot}%{_libdir}/*.a rm -f %{buildroot}%{_initddir}/sheepdog %clean rm -rf %{buildroot} %post if [ $1 -eq 1 ] ; then # Initial installation /bin/systemctl daemon-reload >/dev/null 2>&1 || : fi %preun if [ $1 -eq 0 ] ; then # Package removal, not upgrade /bin/systemctl --no-reload disable sheepdog.service > /dev/null 2>&1 || : /bin/systemctl stop sheepdog.service > /dev/null 2>&1 || : fi %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 || : fi %files %defattr(-,root,root,-) %doc COPYING README %{_sbindir}/sheep %{_sbindir}/collie #%attr(755,-,-)%config %{_initddir}/sheepdog %{_unitdir}/sheepdog.service %dir %{_localstatedir}/lib/sheepdog %{_mandir}/man8/sheep.8* %changelog * Thu Feb 04 2016 Fedora Release Engineering - 0.3.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jun 19 2015 Fedora Release Engineering - 0.3.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Aug 21 2014 Kevin Fenzi - 0.3.0-9 - Rebuild for rpm bug 1131960 * Mon Aug 18 2014 Fedora Release Engineering - 0.3.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 0.3.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Dec 21 2013 Ville Skyttä - 0.3.0-6 - Drop empty %%postun script. - Drop INSTALL from docs. - Fix bogus date in %%changelog. * Sun Aug 04 2013 Fedora Release Engineering - 0.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Mar 16 2012 Fabio M. Di Nitto - 0.3.0-2 - Rebuild against new corosync (soname change). - Add patch to fix build against new corosync headers. * Thu Jan 12 2012 David Nalley - 0.3.0-1 - updating to 0.3.0 * Thu Nov 24 2011 David Nalley - 0.2.4-2 - adding systemd support * Thu Nov 24 2011 David Nalley - 0.2.4-1 - updating to 0.2.4 * Sat Jun 04 2011 David Nalley - 0.2.3-2 - excluding ppc and ppc64 arch for el6 * Sat May 21 2011 David Nalley - 0.2.3-1 - updating to 0.2.3 to track upstream. * Fri May 20 2011 David Nalley - 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 - 0.2.2-1 - Autotools generated version