Name: dst Version: 20090114 Release: 1%{?dist} Summary: Distributed storage (DST) userspace tools Group: System Environment/Base License: GPLv2+ URL: http://tservice.net.ru/~s0mbre/old/?section=projects&item=dst Source0: http://tservice.net.ru/~s0mbre/cgi-bin/gitweb.cgi?p=dst-usrspace.git;a=snapshot;h=ff2c3b6163d0465e8b74599d0585711ec2b906fc BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: kernel-devel %description Distributed storage is a network block device. TODO %prep %setup -q -n dst-usrspace.git sed -e 's,.*?/home/zbr/aWork/git/linux-2.6/linux-2.6.dst.*,,g' -i Makefile %build #configure #make %{?_smp_mflags} cc -W -Wall -I"/lib/modules/$(uname -r)/build/include" %{optflags} -o dst dst.c %install rm -rf $RPM_BUILD_ROOT #make install DESTDIR=$RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_sbindir} install -p -m 0755 dst $RPM_BUILD_ROOT%{_sbindir}/dst %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_sbindir}/dst %doc EXAMPLES %changelog * Sun Dec 13 2009 Michal Ingeli - 20090114-1 - Initial build from upstream git