%global oname TGGraphLayout Name: tggraphlayout Version: 1.22 Release: 1%{?dist} Summary: The layout library of the Touchgraph project License: ASL 2.0 URL: http://www.touchgraph.com/ #http://sourceforge.net/projects/touchgraph/ Source0: http://downloads.sourceforge.net/touchgraph/TGGL_122_jre11.zip BuildRequires: java-devel #BuildRequires: javapackages-local BuildRequires: maven-local BuildArch: noarch %description TouchGraph provides a set of interfaces for graph visualization using force-based layout and focus+context techniques. For now only older code is available, but we are planning to release new versions as well. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{oname} # Cleanup find -name *.jar -print -delete find -name *.class -print -delete mv TGGL\ ReleaseNotes.txt TGGL_ReleaseNotes.txt # Fix incorrect end-of-line encoding sed -i 's/\r//' TGGL_ReleaseNotes.txt # Generate customized maven pom file cat > pom.xml << EOF 4.0.0 com.touchgraph %{oname} bundle %{oname} %{version} The layout library of the Touchgraph project %{url} The Apache Software License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 UTF-8 UTF-8 1.6 \${basedir} org.apache.maven.plugins maven-compiler-plugin 3.3 true \${compileSource} \${compileSource} org.apache.maven.plugins maven-javadoc-plugin 2.10.3 -Xdoclint:none org.apache.felix maven-bundle-plugin 2.5.4 true com.touchgraph.graphlayout.GLPanel bundle-manifest process-classes manifest EOF # Configure the installation path and add symlinks %mvn_file com.touchgraph:%{oname} %{name} %{oname} tggl %build # No test suite available %mvn_build #mkdir -p target/{classes,site/apidocs} #%%javac -d target/classes -encoding UTF-8 $(find com/ -name "*.java") #%%javadoc -encoding UTF-8 -Xdoclint:none -classpath target/classes -d target/site/apidocs $(find com/ -name "*.java") #( # cd target/classes # %%jar cfe ../%%{name}.jar com.touchgraph.graphlayout.GLPanel * #) %install #%% mvn_artifact com.touchgraph:TGGraphLayout:%%{version} target/%%{name}.jar %mvn_install %files -f .mfiles %doc TGGL_ReleaseNotes.txt %license TG-APACHE-LICENSE.txt %files javadoc -f .mfiles-javadoc %license TG-APACHE-LICENSE.txt %changelog * Sat Nov 14 2015 gil cattaneo 1.22-1 - imported package tggraphlayout for Fedora * Sat Jun 11 2011 gil cattaneo 1.22-1.mga1 - imported package tggraphlayout