Compare commits

...

3 Commits
master ... el6

Author SHA1 Message Date
David Nalley dd9aeea8c1 updating to 0.2.4 2011-11-24 20:13:24 -05:00
David Nalley 0c05d27c84 Fixing EL6 build 2011-06-04 23:10:40 -04:00
David Nalley 3686e98729 Initial import 2011-05-24 11:52:22 -04:00
3 changed files with 100 additions and 0 deletions

2
.gitignore vendored
View File

@ -0,0 +1,2 @@
/sheepdog-0.2.3.tar.gz
/sheepdog-0.2.4.tar.gz

97
sheepdog.spec Normal file
View File

@ -0,0 +1,97 @@
Name: sheepdog
Summary: The Sheepdog Distributed Storage System for KVM/QEMU
Version: 0.2.4
Release: 1%{?dist}
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
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
# Build bits
BuildRequires: autoconf automake
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-bc0ab52
%build
./autogen.sh
%{configure} --with-initddir=%{_initrddir}
make %{_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
## tree fixup
# drop static libs
rm -f %{buildroot}%{_libdir}/*.a
%clean
rm -rf %{buildroot}
%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 INSTALL
%{_sbindir}/sheep
%{_sbindir}/collie
%attr(755,-,-)%config %{_initddir}/sheepdog
%dir %{_localstatedir}/lib/sheepdog
%{_mandir}/man8/sheep.8*
%changelog
* 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
* 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

View File

@ -0,0 +1 @@
c4443ce1ee7d668f12fa959771131c31 sheepdog-0.2.4.tar.gz