Name: java-graph Version: 5.12.2.1 Release: 2mamba Summary: The free Swing-style component Group: Development/Libraries/Java Vendor: openmamba Distribution: openmamba Packager: gil URL: http://www.jgraph.com/jgraph.html # http://puzzle.dl.sourceforge.net/sourceforge/jgraph/jgraph-5.12.2.1-lgpl-src.jar Source: jgraph-%{version}-lgpl-src.tar.gz License: LGPL BuildRequires: apache-ant BuildRequires: jpackage-utils Requires: jpackage-utils BuildRoot: %{_tmppath}/%{name}-%{version}-root %description JGraph is the most powerful, easy-to-use, feature-rich and standards-compliant open source graph component available for Java. Features * 100% pure Java, integrates into Swing component class hierarchy, based on Swing MVC pattern * Fully standards-compliant, code complies with the Java Code Conventions * Fully documented with many examples demonstrating the various features * Can be used in rich clients and on the server-side * Operates on various backends, XML files to databases or other systems, such as LDAP, JMX, J2EE * Provides zooming, folding, undo, drag and drop and much more... %package javadoc Group: Documentation Summary: Javadoc for %{name} %description javadoc JGraph is the most powerful, easy-to-use, feature-rich and standards-compliant open source graph component available for Java. This package contains javadoc for %{name}. %prep %setup -q -n jgraph-%{version}-lgpl-src for j in $(find . -name "*.jar"); do mv $j ${j}.no done for c in $(find . -name "*.class"); do rm -rf $c done %build ant all %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_javadir} install -pm 644 dist/jgraph-%{version}/lib/jgraph.jar \ %{buildroot}%{_javadir}/jgraph-%{version}.jar ln -sf jgraph-%{version}.jar %{buildroot}%{_javadir}/jgraph.jar mkdir -p %{buildroot}%{_javadocdir}/jgraph-%{version} cp -pr dist/jgraph-%{version}/doc/api/* %{buildroot}%{_javadocdir}/jgraph-%{version} ln -sf jgraphx-%{version} %{buildroot}%{_javadocdir}/jgraph %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_javadir}/jgraph-%{version}.jar %{_javadir}/jgraph.jar %doc dist/jgraph-%{version}/ChangeLog %doc dist/jgraph-%{version}/LICENSE %doc dist/jgraph-%{version}/README %doc dist/jgraph-%{version}/WHATSNEW %doc dist/jgraph-%{version}/examples %files javadoc %defattr(-,root,root) %{_javadocdir}/jgraph-%{version} %{_javadocdir}/jgraph %changelog * Fri Dec 10 2010 gil 5.12.2.1-2mamba - rebuilt devel * Sat Apr 18 2009 gil 5.12.2.1-1mamba - package created by autospec