SPECS: shunit.spec - the one from googlecode

glen glen at pld-linux.org
Fri Nov 21 00:04:37 CET 2008


Author: glen                         Date: Thu Nov 20 23:04:37 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- the one from googlecode

---- Files affected:
SPECS:
   shunit.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/shunit.spec
diff -u SPECS/shunit.spec:1.1 SPECS/shunit.spec:1.2
--- SPECS/shunit.spec:1.1	Thu Nov 20 23:55:29 2008
+++ SPECS/shunit.spec	Fri Nov 21 00:04:31 2008
@@ -1,29 +1,41 @@
 # $Revision$, $Date$
-Summary:	shunit
+Summary:	xUnit based unit testing for Unix shell scripts
 Name:		shunit
-Version:	1.3
-Release:	0.1
-License:	GPL v2
+Version:	2.1.5
+Release:	0.2
+License:	LGPL 2.1
 Group:		Development/Building
-Source0:	http://dl.sourceforge.net/shunit/ShUnit-%{version}.tgz
-# Source0-md5:	3c91026c2e6e8598f2e14e38f0455881
-URL:		http://shunit.sourceforge.net/
+Source0:	http://shunit2.googlecode.com/files/%{name}2-%{version}.tgz
+# Source0-md5:	f434f0095f7ca9a698ade330feae356a
+URL:		http://code.google.com/p/shunit2/
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
+shUnit2 is a xUnit unit test framework for Bourne based shell scripts,
+and it is designed to work in a similar manner to JUnit, PyUnit, etc.
+If you have ever had the desire to write a unit test for a shell
+script, shUnit2 can do the job.
 
 %prep
-%setup -q -n ShUnit-%{version}
+%setup -q -n %{name}2-%{version}
+rm -f doc/LGPL-2.1
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name}-%{version}}
+install src/shell/shunit2 $RPM_BUILD_ROOT%{_bindir}/%{name}
+
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc doc/*
+%attr(755,root,root) %{_bindir}/shunit
+%{_examplesdir}/%{name}-%{version}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -31,5 +43,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2008/11/20 23:04:31  glen
+- the one from googlecode
+
 Revision 1.1  2008/11/20 22:55:29  glen
 - wanted
================================================================

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



More information about the pld-cvs-commit mailing list