Group :: Ferramentas de texto
RPM: foremost
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: foremost
Version: 1.5.7
Release: alt2
Summary: Recover files by "carving" them from a raw disk
License: Public Domain
Group: Text tools
Url: http://foremost.sourceforge.net/
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://foremost.sourceforge.net/pkg/%name-%version.tar
Patch0: foremost-broken-jpeg.patch
Patch1: foremost-fix-permission-timestamp.patch
Patch2: foremost-1.5.7-format-security.patch
Patch3: foremost-1.5.7-gcc10.patch
Patch10: %name-sysconfdir.patch
%description
Foremost recovers files files based on their headers, footers, and
internal data structures. This process is commonly referred to as data
carving. Foremost can work on a raw disk drive or image file generated
by dd. The headers and footers can be specified by a configuration
file or you can use command line switches to specify built-in file
types. These built-in types look at the data structures of a given
file format allowing for a more reliable and faster recovery.
See use case in russian: http://mydebianblog.blogspot.com/2007/01/1-foremost.html
%prep
%setup
%patch10 -p2
%patch0
%patch1 -p2
%patch2 -p1
%patch3 -p1
%build
%make_build \
RAW_CC="%__cc" \
RAW_FLAGS="%optflags -DVERSION=\\\"%version\\\"" \
BIN=%_bindir \
MAN=%_man1dir \
CONF=%_sysconfdir
%install
install -d %buildroot{%_bindir,%_man1dir,%_sysconfdir}
%make_install install \
BIN=%buildroot%_bindir \
MAN=%buildroot%_man1dir \
CONF=%buildroot%_sysconfdir
%files
%doc README CHANGES
%_bindir/%name
%_man1dir/*
%config(noreplace) %_sysconfdir/%name.conf
%changelog
…
Todas as alterações você pod ver aqui
Version: 1.5.7
Release: alt2
Summary: Recover files by "carving" them from a raw disk
License: Public Domain
Group: Text tools
Url: http://foremost.sourceforge.net/
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://foremost.sourceforge.net/pkg/%name-%version.tar
Patch0: foremost-broken-jpeg.patch
Patch1: foremost-fix-permission-timestamp.patch
Patch2: foremost-1.5.7-format-security.patch
Patch3: foremost-1.5.7-gcc10.patch
Patch10: %name-sysconfdir.patch
%description
Foremost recovers files files based on their headers, footers, and
internal data structures. This process is commonly referred to as data
carving. Foremost can work on a raw disk drive or image file generated
by dd. The headers and footers can be specified by a configuration
file or you can use command line switches to specify built-in file
types. These built-in types look at the data structures of a given
file format allowing for a more reliable and faster recovery.
See use case in russian: http://mydebianblog.blogspot.com/2007/01/1-foremost.html
%prep
%setup
%patch10 -p2
%patch0
%patch1 -p2
%patch2 -p1
%patch3 -p1
%build
%make_build \
RAW_CC="%__cc" \
RAW_FLAGS="%optflags -DVERSION=\\\"%version\\\"" \
BIN=%_bindir \
MAN=%_man1dir \
CONF=%_sysconfdir
%install
install -d %buildroot{%_bindir,%_man1dir,%_sysconfdir}
%make_install install \
BIN=%buildroot%_bindir \
MAN=%buildroot%_man1dir \
CONF=%buildroot%_sysconfdir
%files
%doc README CHANGES
%_bindir/%name
%_man1dir/*
%config(noreplace) %_sysconfdir/%name.conf
%changelog
…
Todas as alterações você pod ver aqui