Group :: Text tools
RPM: magicrescue
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: magicrescue
Version: 1.1.9
Release: alt1.qa1
Packager: Victor Forsiuk <force at altlinux.org>
Summary: Magic Rescue is a file carving tool that uses "magic bytes" in a file contents to recover data
License: GPLv2+
Group: Text tools
Url: http://www.student.dtu.dk/~s042078/magicrescue
Source: http://www.itu.dk/people/jobr/magicrescue/release/magicrescue-%version.tar.gz
Source1: magicrescue-rar-recipe
# Automatically added by buildreq on Mon Nov 16 2009
BuildRequires: libdb4-devel libgdbm-devel
%description
Magic Rescue scans a block device for file types it knows how to recover and
calls an external program to extract them. It looks at "magic bytes" in file
contents, so it can be used both as an undelete utility and for recovering a
corrupted drive or partition. As long as the file data is there, it will find
it.
It works on any file system, but on very fragmented file systems it can only
recover the first chunk of each file. Practical experience (this program was not
written for fun) shows, however, that chunks of 30-50MB are not uncommon.
%prep
%setup
%build
cp %SOURCE1 recipes/rar
subst 's at )/man/man1 at )/share/man/man1 at g' Makefile.in
subst 's at $(PREFIX)/share/magicrescue/tools at %buildroot%_libdir/magicrescue at g' Makefile.in
subst 's at prefix/share/magicrescue/tools at %_libdir/magicrescue at ' config.d/80magicrescue_defs
%define _optlevel 3
./configure --prefix=/usr CFLAGS="%optflags"
%make_build
%install
install -d %buildroot/usr
%make_install PREFIX=%buildroot/usr install
# Due to usage of perl module that is not yet in repo...
rm -f %buildroot%_libdir/magicrescue/gimp-resave.pl
%files
%_bindir/*
%_datadir/magicrescue
%_libdir/magicrescue
%_man1dir/*
%changelog
…
Full changelog you can see here
Version: 1.1.9
Release: alt1.qa1
Packager: Victor Forsiuk <force at altlinux.org>
Summary: Magic Rescue is a file carving tool that uses "magic bytes" in a file contents to recover data
License: GPLv2+
Group: Text tools
Url: http://www.student.dtu.dk/~s042078/magicrescue
Source: http://www.itu.dk/people/jobr/magicrescue/release/magicrescue-%version.tar.gz
Source1: magicrescue-rar-recipe
# Automatically added by buildreq on Mon Nov 16 2009
BuildRequires: libdb4-devel libgdbm-devel
%description
Magic Rescue scans a block device for file types it knows how to recover and
calls an external program to extract them. It looks at "magic bytes" in file
contents, so it can be used both as an undelete utility and for recovering a
corrupted drive or partition. As long as the file data is there, it will find
it.
It works on any file system, but on very fragmented file systems it can only
recover the first chunk of each file. Practical experience (this program was not
written for fun) shows, however, that chunks of 30-50MB are not uncommon.
%prep
%setup
%build
cp %SOURCE1 recipes/rar
subst 's at )/man/man1 at )/share/man/man1 at g' Makefile.in
subst 's at $(PREFIX)/share/magicrescue/tools at %buildroot%_libdir/magicrescue at g' Makefile.in
subst 's at prefix/share/magicrescue/tools at %_libdir/magicrescue at ' config.d/80magicrescue_defs
%define _optlevel 3
./configure --prefix=/usr CFLAGS="%optflags"
%make_build
%install
install -d %buildroot/usr
%make_install PREFIX=%buildroot/usr install
# Due to usage of perl module that is not yet in repo...
rm -f %buildroot%_libdir/magicrescue/gimp-resave.pl
%files
%_bindir/*
%_datadir/magicrescue
%_libdir/magicrescue
%_man1dir/*
%changelog
…
Full changelog you can see here