Skip to content

Commit

Permalink
Initial RPM package.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdgathman committed Dec 3, 2015
1 parent d1a0506 commit d771e2d
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions lbatofile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,39 @@ Release: 1%{?dist}
Summary: Map LBA to file

Group: Applications/System
License: GPL2
URL: https://sourceforge.net/projects/lbatofile/
Source0: lbatofile
License: GPL2+
URL: https://github.com/sdgathman/lbatofile
Source0: https://github.com/sdgathman/lbatofile/archive/master.tar.gz

BuildRequires:
Requires:
Requires: python >= 2.6, e2fsprogs, lvm2
%if 0%{?rhel} == 6
Requires: util-linux-ng
%else
Requires: util-linux
%endif

%description

When you have a bad sector on storage media, modern drives will repair the
sector when you write to it. However, you would like to know what file is
damaged by the missing data. In many cases, the bad sector will be in free
space. Or the file is one that you can delete and restore from elsewhere.
lbatofile.py will "drill down" starting from any block device and LBA within
that block device (which is usually a whole disk), and invoke linux utilities
to interpret the partition tables, LVM metadata, or filesystems containing the
LBA.

%prep
%setup -q


%build
%configure
make %{?_smp_mflags}


%install
%make_install

mkdir -p %{buildroot}/%{_sbindir}
cp -p lbatofile.py %{buildroot}/%{_sbindir}/lbatofile

%files
%doc


%doc README.md LICENSE

%changelog

* Wed Dec 2 2015 Stuart Gathman <[email protected]> 0.1-1
- Initial package

0 comments on commit d771e2d

Please sign in to comment.