File shake.spec of Package shake

#
# spec file for shake-0.99 (Version 0.99)
#
# Copyright (c) 2008 SOAD Project, Russia.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments to the Maintainer: sda00@himki.net
#
# Access to the development branch is below (via bzr)
# bzr branch lp:shake-0.99
#
 
# norootforbuild
 
Name:			shake
Version:		0.99
Release:		1
Summary:		shake is a defragmenter that runs in userspace
License:		GPL
Group:			Applications/System
URL:			http://vleu.net/shake/
Packager:		sda00 (sda00@himki.net)
Source:			%{name}-%{version}.tar.bz2
#Patch0:		shake_patch0
#Requires:	
BuildRequires:	gcc-c++ gcc cmake help2man libattr-devel libattr make cmake
BuildRoot:		%{_tmppath}/%{name}-%{version}-build

%description
Shake is a defragmenter that runs in userspace, without the need of patching the kernel and while the system is used (for now, on GNU/Linux only).
There is nothing magic in that : it just works by rewriting fragmented files. But it has some heuristics that could make it more efficient than other tools, including defrag and, maybe, xfs_fsr.
As an example, it allows you to write find -iname '*.mp3' | sort | shake to defrag all mp3 in a directory, puting together on the disk those close in lexical order.

Have fun!
 
%prep
%setup -q
cd build
##patch0
cmake ..
 
%build
cd build
make

##mkdir -p -m 755 %{buildroot}%{_bindir}
##mkdir -p -m 755 %{buildroot}%{_datadir}/pixmaps

%install
cd build
%makeinstall

if [ -e %{buildroot}/usr/local ] ; then
mv %{buildroot}/usr/local/* %{buildroot}/usr/
rm -rf %{buildroot}/usr/local
fi

%clean
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
 
%files 
%defattr(-,root,root)
%{_bindir}/*
%{_mandir}/man8/*
 
%changelog
* Mon Mar 30 2009 version 0.99
- first build for openSUSE
Packed by sda00@himki.net

openSUSE Build Service is sponsored by