packages java-formatstring.spec
      Pages: < 1 >  DOWNLOAD      
%define        javahome         /usr/lib/jvm/jdk-sun
%define        java_javadocpath  %{javahome}/bin/javadoc
%define        anthome              /usr/share/ant
Name:          java-formatstring
Version:       0
Release:       3mamba
Summary:       Compile time checking for Java Format Strings
Group:         Development/Libraries/Java
Vendor:        openmamba
Distribution:  openmamba
Packager:      gil <puntogil@...>
URL:           https://jformatstring.dev.java.net/
# svn export -r 8 https://jformatstring.dev.java.net/svn/jformatstring/trunk jformatstring --username guest
# pwd guest
# tar -cjf jFormatString-0.tar.bz2 jformatstring 
Source:        jFormatString-%{version}.tar.bz2
Patch0:        java-formatstring-0-build_xml.patch
License:       GPL
BuildRequires: apache-ant
BuildRequires: java-junit45
BuildRequires: jpackage-utils
Requires:      jpackage-utils
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
This project is derived from Sun's implementation of java.util.Formatter.  It
is designed to allow compile time checks as to whether or not a use of a
format string will be erroneous when executed at runtime.

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

%description javadoc
This project is derived from Sun's implementation of java.util.Formatter.  It
is designed to allow compile time checks as to whether or not a use of a
format string will be erroneous when executed at runtime

This package contains javadoc for %{name}.

%prep

%setup -q -n jformatstring
cd jFormatString
%patch0 -p0

%build
cd jFormatString
%anthome/bin/ant
cd ..

%{java_javadocpath} -d apidocs \
	-source 1.5 \
	-encoding iso-8859-1 \
        -sourcepath jFormatString/src/java \
	-classpath jFormatString/build/classes:%{_javadir}/junit45.jar \
        -link file://%{_javadocdir}/java edu.umd.cs.findbugs.formatStringChecker

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

mkdir -p %{buildroot}%{_javadir}
install -p -m 644 jFormatString/build/jFormatString.jar \
	%{buildroot}%{_javadir}/jFormatString-%{version}.jar
ln -s jFormatString-%{version}.jar %{buildroot}%{_javadir}/jFormatString.jar


mkdir -p %{buildroot}%{_javadocdir}/jformatstring-%{version}
cp -rp apidocs/* %{buildroot}%{_javadocdir}/jformatstring-%{version}
ln -s jformatstring-%{version} %{buildroot}%{_javadocdir}/jformatstring

#%{_bindir}/aot-compile-rpm

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

%files
%defattr(-,root,root)
%{_javadir}/jFormatString-%{version}.jar
%{_javadir}/jFormatString.jar
%doc www/index.html jFormatString/LICENSE

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

%changelog
* Thu Nov 04 2010 gil <puntogil@...> 0-3mamba
- rebuilt devel

* Thu Dec 10 2009 gil <puntogil@...> 0-2mamba
- rebuilt

* Sat Mar 14 2009 gil <puntogil@...> 0-1mamba
- package created by autospec