jgraphx-vl.spec 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. %define tarball_id g567042d
  2. %define source_id bebd4db
  3. Summary: Java graph visualisation library
  4. Summary(ja): Java グラフ可視化ライブラリ
  5. Name: jgraphx
  6. Version: 1.10.4.0
  7. Release: 1%{?_dist_release}
  8. Group: Development/Libraries
  9. License: BSD
  10. URL: http://www.jgraph.com/
  11. Source: http://downloads.jgraph.com/downloads/jgraphx/archive/%{name}-1_10_4_0.zip
  12. BuildRequires: ant
  13. BuildRequires: java-devel >= 1.6.0
  14. BuildRequires: jpackage-utils
  15. Requires: java >= 1.6.0
  16. Requires: jpackage-utils
  17. BuildArch: noarch
  18. %description
  19. JGraphX provides functionality for visualisation and interaction
  20. with node-edge graphs (not charts). Example applications that you
  21. might write with it are a workflow editor, an organisational chart,
  22. a business process modelling tool, a UML tool, an electronic circuit
  23. diagrammer, network/telecoms visualisation (you get the idea, things
  24. with nodes and edges that connect those nodes, a mathematical graph).
  25. %package javadoc
  26. Summary: API Documentation for %{name}
  27. Group: Documentation
  28. Requires: jpackage-utils
  29. Requires: %{name} = %{version}-%{release}
  30. %description javadoc
  31. JavaDoc documentation for %{name}
  32. %prep
  33. %setup -q -n %{name}
  34. find -name '*.jar' -delete
  35. rm -rf docs/api
  36. %build
  37. ant
  38. %install
  39. # Code
  40. install -d $RPM_BUILD_ROOT%{_javadir}
  41. install -p -m644 lib/%{name}.jar \
  42. $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
  43. ln -s %{name}-%{version}.jar \
  44. $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
  45. # API documentation
  46. install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
  47. cp -a docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
  48. %files
  49. %{_javadir}/*
  50. %doc license.txt
  51. %files javadoc
  52. %{_javadocdir}/*
  53. %changelog
  54. * Sun Nov 04 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.4.0-1
  55. - initia build