Name: magicrescue Version: 1.1.9 Release: %mkrel 3 Summary: Tries to recover files License: GPLv2+ Group: File tools URL: http://jbj.rapanden.dk/magicrescue/ Source0: http://jbj.rapanden.dk/magicrescue/release/%name-%version.tar.gz Conflicts: safecat Requires: binutils Requires: gzip Requires: mencoder Requires: mpg123 BuildRequires: gdbm-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. %prep %setup -q %build # XXX: This is not a GNU autoconf script export CFLAGS="%{optflags}" ./configure --prefix=%{_prefix} %{make} %install mkdir -p %{buildroot}%{_prefix} %makeinstall PREFIX=%{buildroot}/%{_prefix} # move man pages to the right directory mv %{buildroot}%{_prefix}/man %{buildroot}%{_datadir} # move binaries from /usr/share mv %{buildroot}%{_datadir}/magicrescue/tools/inputseek %{buildroot}%{_bindir} mv %{buildroot}%{_datadir}/magicrescue/tools/safecat %{buildroot}%{_bindir} mv %{buildroot}%{_datadir}/magicrescue/tools/textextract %{buildroot}%{_bindir} %files %defattr(0644,root,root,0755) %doc COPYING README %{_datadir}/magicrescue/recipes/* %{_mandir}/man1/* %defattr(0755,root,root,0755) %{_bindir}/* %{_datadir}/magicrescue/tools/* %changelog * Sat Jan 12 2013 umeabot <umeabot> 1.1.9-3.mga3 + Revision: 359300 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Oct 20 2012 malo <malo> 1.1.9-2.mga3 + Revision: 308529 - update RPM group * Mon Feb 13 2012 juancho <juancho> 1.1.9-1.mga2 + Revision: 208327 - Adjusted mkrel to 1 (no release until now) - Removed non-existent BR db4-devel and changed it for dgbm-devel as Mandriva uses. - Removed all not required BuildRoot stuff. + kharec <kharec> - imported package magicrescue