Name: jdiff Version: 1.1.1 Release: 1%{?dist} Summary: An HTML Report of API Differences Group: Development/Libraries License: LGPLv2+ URL: http://javadiff.sourceforge.net/ # cvs -d:pserver:anonymous@javadiff.cvs.sourceforge.net:/cvsroot/javadiff login # cvs -z3 -d:pserver:anonymous@javadiff.cvs.sourceforge.net:/cvsroot/javadiff export -rHEAD jdiff # removing unneeded files # find jdiff -name .cvsignore -delete # find jdiff -name "*.jar" -delete # find jdiff -name "*.class" -delete # tar czf jdiff-1.1.1-clean-src-cvs.tar.gz jdiff Source0: jdiff-1.1.1-clean-src-cvs.tar.gz Source1: jdiff-pom-template.xml Source2: jdiff-script BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: ant BuildRequires: junit BuildRequires: xerces-j2 Requires: ant Requires: xerces-j2 Requires: java Requires: jpackage-utils BuildArch: noarch %description JDiff is a Javadoc doclet which generates an HTML report of all the packages, classes, constructors, methods, and fields which have been removed, added or changed in any way, including their documentation, when two APIs are compared. This is very useful for describing exactly what has changed between two releases of a product. Only the API (Application Programming Interface) of each version is compared. It does not compare what the source code does when executed. %package javadoc Group: Documentation Summary: Javadoc for %{name} Requires: jpackage-utils %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n jdiff perl -pi -e 's/\r$//g' doc/CHANGES.txt doc/KNOWN_LIMITATIONS.txt doc/TODO doc/dev_notes.txt perl -pi -e 's/\r$//g' LICENSE.txt README.txt ln -sf $(build-classpath xerces-j2) lib/xerces.jar # fix non ASCII chars native2ascii -encoding UTF8 test/old/ChangedPackageDoc2/ChangedMethod.java test/old/ChangedPackageDoc2/ChangedMethod.java native2ascii -encoding UTF8 test/new/ChangedPackageDoc2/ChangedMethod.java test/new/ChangedPackageDoc2/ChangedMethod.java %build export CLASSPATH=$(build-classpath junit):`pwd`/build/lib/jdiff.jar:`pwd`/build/lib/antjdiff.jar %{ant} -Dbuild.sysclasspath=only release %javadoc -classpath `pwd`/build/lib/jdiff.jar:`pwd`/build/lib/antjdiff.jar:$(build-classpath xerces-j2 ant.jar ../jvm/java/lib/tools) \ -d apidocs -sourcepath src -subpackages jdiff %install mkdir -p %{buildroot}%{_javadir} install -pm 644 build/lib/ant%{name}.jar %{buildroot}%{_javadir}/ant%{name}.jar install -pm 644 build/lib/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar mkdir -p %{buildroot}%{_mavenpomdir} install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom sed -i "s|@version@|%{version}|" %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar mkdir -p %{buildroot}%{_javadocdir}/%{name} cp -pr apidocs/* %{buildroot}%{_javadocdir}/%{name} mkdir -p %{buildroot}%{_bindir} install -pm 755 %{SOURCE2} %{buildroot}%{_bindir}/%{name} %files %{_bindir}/%{name} %{_javadir}/*%{name}.jar %{_mavenpomdir}/JPP-%{name}.pom %{_mavendepmapfragdir}/%{name} %doc LICENSE.txt README.txt doc/jdiff.html doc/CHANGES.txt doc/KNOWN_LIMITATIONS.txt doc/TODO doc/dev_notes.txt %files javadoc %{_javadocdir}/%{name} %doc LICENSE.txt %changelog * Wed Apr 25 2012 gil cattaneo 1.1.1-1 - initial rpm