Sophie

Sophie

distrib > Mageia > 2 > i586 > by-pkgid > 52a6169b3889e7853306cf818c708e87 > files > 2

magicrescue-1.1.9-1.mga2.src.rpm

Name:           magicrescue
Version:        1.1.9
Release:        %mkrel 1
Summary:        Tries to recover files
License:        GPLv2+
Group:          Archiving/Other
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

* 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