90 lines
2.8 KiB
RPMSpec
90 lines
2.8 KiB
RPMSpec
%define pkg_version %(echo %version | tr . _)
|
|
|
|
Name: java-graphx
|
|
Version: 1.4.1.0
|
|
Release: 1mamba
|
|
Summary: Java Swing Diagramming Library
|
|
Group: Development/Libraries/Java
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: gil <puntogil@libero.it>
|
|
URL: http://www.jgraph.com/
|
|
# http://www.jgraph.com/downloads.html
|
|
# Download JGraph X 0.99.0.4 - Accept License Agreement
|
|
# http://www.mxgraph.com/downloads/jgraphx/
|
|
Source: http://www.jgraph.com/downloads/jgraphx/archive/jgraphx-%{pkg_version}.zip
|
|
License: BSD, LGPL
|
|
BuildRequires: apache-ant
|
|
BuildRequires: jpackage-utils
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
JGraph X is the next generation of Java Swing Diagramming Library, factoring in 7 years of architectural improvements
|
|
into a clean, concise design. JGraph X provides a simple, powerful API, as well a more application-centric feature set.
|
|
The result is a low learning curve and faster implementation of customizations in your development. JGraph X shares the
|
|
core model of mxGraph, so your JGraph X application more easily ports directly to an mxGraph web application.
|
|
|
|
%package javadoc
|
|
Group: Documentation
|
|
Summary: Javadoc for %{name}
|
|
|
|
%description javadoc
|
|
JGraph X is the next generation of Java Swing Diagramming Library, factoring in 7 years of architectural improvements
|
|
into a clean, concise design. JGraph X provides a simple, powerful API, as well a more application-centric feature set.
|
|
The result is a low learning curve and faster implementation of customizations in your development. JGraph X shares the
|
|
core model of mxGraph, so your JGraph X application more easily ports directly to an mxGraph web application
|
|
|
|
This package contains javadoc for %{name}.
|
|
|
|
%prep
|
|
|
|
%setup -q -n jgraphx
|
|
for j in $(find . -name "*.jar"); do
|
|
mv $j ${j}.no
|
|
done
|
|
for j in $(find . -name "*.class"); do
|
|
mv $j ${j}.no
|
|
done
|
|
|
|
%build
|
|
export JAVA_HOME=/usr/lib/jvm/java
|
|
ant all
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
mkdir -p %{buildroot}%{_javadir}
|
|
install -pm 644 lib/jgraphx.jar \
|
|
%{buildroot}%{_javadir}/jgraphx-%{version}.jar
|
|
|
|
(
|
|
cd %{buildroot}%{_javadir}
|
|
for jar in *-%{version}.jar; do
|
|
ln -sf ${jar} ${jar/-%{version}/}
|
|
done
|
|
)
|
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/jgraphx-%{version}
|
|
cp -pr docs/* %{buildroot}%{_javadocdir}/jgraphx-%{version}
|
|
ln -sf jgraphx-%{version} %{buildroot}%{_javadocdir}/jgraphx
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_javadir}/jgraphx-%{version}.jar
|
|
%{_javadir}/jgraphx.jar
|
|
%doc license.txt examples
|
|
|
|
%files javadoc
|
|
%defattr(-,root,root)
|
|
%{_javadocdir}/jgraphx-%{version}
|
|
%{_javadocdir}/jgraphx
|
|
|
|
%changelog
|
|
* Fri Feb 04 2011 gil <puntogil@libero.it> 1.4.1.0-1mamba
|
|
- update to 1.4.1.0
|
|
|
|
* Sat Apr 18 2009 gil <puntogil@libero.it> 0.99.0.4-1mamba
|
|
- package created by autospec
|