packages java-fit.spec
      Pages: < 1 >  DOWNLOAD      
Name:          java-fit
Version:       1.1
Release:       2mamba
Summary:       Framework for Integrated Test (Java implementation)
Group:         Development/Libraries/Java
Vendor:        openmamba
Distribution:  openmamba
Packager:      gil <puntogil@...>
URL:           http://fit.c2.com/
Source0:       http://downloads.sourceforge.net/project/fit/fit-java/%{version}/fit-java-%{version}.zip
Patch0:        java-fit-1.1-javadoc.patch
License:       GPL
BuildRequires: apache-ant
BuildRequires: apache-ant-nodeps
BuildRequires: java-junit3
BuildRequires: jpackage-utils
BuildRequires: xerces-j2
BuildRequires: xml-commons-apis
Requires:      jpackage-utils
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
Great software requires collaboration and communication.
Fit is a tool for enhancing collaboration in software
development. It's an invaluable way to collaborate on
complicated problems--and get them right--early in
development.

Fit allows customers, testers, and programmers to learn
what their software should do and what it does do. It
automatically compares customers' expectations to actual
results.

%package javadoc
Group:          Documentation
Summary:        Javadoc for %{name}

%description javadoc
Fit is a framework for writing acceptance tests as
used in extreme programming (Java implementation).

This package contains javadoc for %{name}.

%prep

%setup -q -c %{name}-%{version}

%patch0

for j in $(find . -name "*.jar"); do
	rm -rf $j
done

for c in $(find . -name "*.class"); do
	rm -rf $c
done

%build

cd source/imp/java
export CLASSPATH=$(build-classpath ant ant/ant-nodeps xercesImpl xml-commons-apis junit-3.8.2):output/classes
ant jars javadoc

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

mkdir -p %{buildroot}%{_javadir}

cd source/imp/java
install -pm 644 output/jars/fit.jar \
	%{buildroot}%{_javadir}/fit-%{version}.jar

(
	cd %{buildroot}%{_javadir}/
	for jar in *-%{version}*; do
		ln -sf ${jar} ${jar/-%{version}/}
	done
)

mkdir -p %{buildroot}%{_javadocdir}/fit-%{version}
cp -pr output/apidocs/* %{buildroot}%{_javadocdir}/fit-%{version}/
ln -sf fit-%{version} %{buildroot}%{_javadocdir}/fit

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%{_javadir}/fit-%{version}.jar
%{_javadir}/fit.jar
%doc license.txt readme.html

%files javadoc
%defattr(-,root,root)
%{_javadocdir}/fit-%{version}
%{_javadocdir}/fit

%changelog
* Sun Dec 05 2010 gil <puntogil@...> 1.1-2mamba
- rebuilt devel

* Sat Aug 14 2010 gil <puntogil@...> 1.1-1mamba
- package created by autospec