[brd] Initial import (#1112434).

jsbackus jsbackus at fedoraproject.org
Tue Jul 1 22:19:09 UTC 2014


commit 640b3dbea4f4d6a0c4a0df3ba21afedbba6c83ab
Author: Jeff Backus <jeff.backus at gmail.com>
Date:   Tue Jul 1 18:18:58 2014 -0400

    Initial import (#1112434).

 .gitignore |    1 +
 brd.spec   |   43 +++++++++++++++++++++++++++++++++++++++++++
 sources    |    1 +
 3 files changed, 45 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9fa7aeb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/brd-f984731d36aef24e630ead0e3818efd3b0b99f07.tar.gz
diff --git a/brd.spec b/brd.spec
new file mode 100644
index 0000000..dac473b
--- /dev/null
+++ b/brd.spec
@@ -0,0 +1,43 @@
+%global	commit f984731d36aef24e630ead0e3818efd3b0b99f07
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+Name:		brd
+Version:	1.0
+Release:	1%{?dist}
+Summary:	Scans directories and files for damage due to decay of storage medium
+
+License:	GPLv2+
+URL:		https://github.com/jsbackus/brd
+Source0:	https://github.com/jsbackus/brd/archive/%{commit}/%{name}-%{commit}.tar.gz
+
+BuildRequires:	python3-devel
+BuildArch:	noarch
+
+%description
+bit_rot_detector, or brd, is a tool to scan a directory tree and check each file
+for corruption caused by damage to the physical storage medium or by damage from
+malicious programs. Files are fingerprinted using the SHA-1 algorithm. File
+fingerprints, sizes, and modification times are stored in a SQLite database.
+
+%prep
+%setup -qn %{name}-%{commit}
+
+%build
+%{__python3} setup.py build
+
+%check
+cd unit_tests
+%{__python3} -m unittest
+
+%install
+%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
+
+%files
+%doc LICENSE README
+%{_bindir}/brd
+%{_mandir}/man1/%{name}.1*
+%{python3_sitelib}/%{name}*.egg-info
+
+
+%changelog
+* Sun Jun 15 2014 Jeff Backus <jeff.backus at gmail.com> - 1.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..827c108 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4839fc9cb94d5a55d8f2153fc0631994  brd-f984731d36aef24e630ead0e3818efd3b0b99f07.tar.gz


More information about the scm-commits mailing list