packages: rarcrack/rarcrack.spec - selftest added.

pluto pluto at pld-linux.org
Sat Jan 15 21:56:24 CET 2011


Author: pluto                        Date: Sat Jan 15 20:56:24 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- selftest added.

---- Files affected:
packages/rarcrack:
   rarcrack.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/rarcrack/rarcrack.spec
diff -u packages/rarcrack/rarcrack.spec:1.1 packages/rarcrack/rarcrack.spec:1.2
--- packages/rarcrack/rarcrack.spec:1.1	Sat Jan 15 21:41:53 2011
+++ packages/rarcrack/rarcrack.spec	Sat Jan 15 21:56:19 2011
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not proceed cracking selftest (few minutes).
+#
 Summary:	Password recovery tool for Rar, 7z and Zip archives
 Name:		rarcrack
 Version:	0.2
@@ -11,6 +15,11 @@
 Patch1:		%{name}-mime.patch
 URL:		http://sourceforge.net/projects/rarcrack/
 BuildRequires:	libxml2-devel
+%if %{with tests}
+BuildRequires:	p7zip
+BuildRequires:	unrar
+BuildRequires:	unzip
+%endif
 Requires:	file
 Requires:	p7zip
 Requires:	unrar
@@ -31,6 +40,14 @@
 %build
 %{__make} CC="%{__cc}" CFLAGS="%{rpmcflags}"
 
+%if %{with tests}
+rm -f test.*.xml
+# each test archive is encrypted with passwrd '100'.
+./rarcrack test.7z
+./rarcrack test.rar
+./rarcrack test.zip
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -50,5 +67,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2011/01/15 20:56:19  pluto
+- selftest added.
+
 Revision 1.1  2011/01/15 20:41:53  pluto
 - new.
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/rarcrack/rarcrack.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list