Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 920f500a284319f889a4b1e8f3f267e3 > files > 5

shunit2-2.1.6-3.fc13.src.rpm

Name:           shunit2
Version:        2.1.6
Release:        3%{?dist}
Summary:        A xUnit based unit testing for Unix shell scripts

Group:          Development/Languages
License:        LGPLv2
URL:            http://code.google.com/p/shunit2
Source0:        http://shunit2.googlecode.com/files/%{name}-%{version}.tgz
# add makefiles to do install
Source1:        LGPL-2.1
Patch0:         add_makefiles.patch
Patch1:         fix_examples_source_path.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch

%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
%patch0 -p1
%patch1 -p1
iconv -f ISO88592 -t UTF8 doc/shunit2.txt -o doc/shunit2.txt
cp -p %{SOURCE1} doc/

%build
# This section is empty because this package ccontains shell scripts
# to be sourced: there's nothing to build


%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%doc %{_docdir}/%{name}-%{version}



%changelog
* Tue May 17 2011 Hushan Jia <hjia@redhat.com> 2.1.6-3
- fix file list warning

* Tue May 17 2011 Hushan Jia <hjia@redhat.com> 2.1.6-2
- remove duplicate %doc directive
- fix source include path of examples
- replace license with update-to-date version

* Tue May 3 2011 Hushan Jia <hjia@redhat.com> 2.1.6-1
- initial package