Sophie

Sophie

distrib > Mageia > 2 > x86_64 > media > core-release-src > by-pkgid > ac66e5445a48931c846219213ebb7e8d > files > 2

jgraphx-1.4.1.0-1.mga2.src.rpm

%define real_ver %( echo %{version} | tr . _)

Summary:	Java-based Diagram Component and Editor
Name:		jgraphx
Version:	1.4.1.0
Release:	%mkrel 1
Epoch:		1
License:	BSD
Group:		Development/Java
URL:		http://www.jgraph.com/
Source0:	http://www.jgraph.com/downloads/jgraphx/archive/%{name}-%{real_ver}.zip
BuildRequires:	ant >= 0:1.6
BuildRequires:	java-rpmbuild
BuildRequires:	jpackage-utils >= 0:1.6
Requires:	jpackage-utils
BuildArch:	noarch

%description
Jgraphx is the a lightweight and feature-rich graph component for Java,
and the successor to jgraph. It provides automatic 2D layout and routing
for diagrams. Object and relations can be displayed in any Swing UI
via provided scalable component.

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java

%description javadoc
%{summary}.

%prep
%setup -q -c

mv %{name}/* .

# remove all binary libs
find -type f -name "*.jar" | xargs -t rm

%build
export CLASSPATH=
export OPT_JAR_LIST=:
%ant -Dbuild.sysclasspath=only

# Remove copies of source so that we don't confuse
# the debuginfo finder
rm -rf build/src dist/%{name}-%{version}-src

%install
rm -rf %{buildroot}

# jars
mkdir -p %{buildroot}%{_javadir}
cp -p lib/jgraphx.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
pushd  %{buildroot}%{_javadir} 
    #create symlink
    ln -s %{name}-%{version}.jar %{name}.jar
    #indexing
    jar -i %{name}-%{version}.jar
popd

# javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr docs/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

# maven
%add_to_maven_depmap com.mxgraph %{name} %{version} JPP %{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc license.txt
%{_javadir}/%{name}.jar
%{_javadir}/%{name}-%{version}.jar
%config(noreplace) %{_mavendepmapfragdir}/%{name}

%files javadoc
%defattr(-,root,root)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}




%changelog

* Sun Aug 21 2011 grenoya <grenoya> 1:1.4.1.0-1.mga2
+ Revision: 134752
- revert source to 1.4.1.0

* Sat Jun 18 2011 grenoya <grenoya> 1:1.7.0.6-1.mga2
+ Revision: 109479
- update sources

* Mon Mar 28 2011 grenoya <grenoya> 1:1.4.1.0-1.mga1
+ Revision: 78519
- imported package jgraphx


* Fri Jan 21 2011 Paulo Andrade <pcpa@mandriva.com.br> 1:1.4.1.0-1mdv2011.0
+ Revision: 632067
- Update to jgraphx 1.4.1.0

* Mon Dec 06 2010 Oden Eriksson <oeriksson@mandriva.com> 1:1.2.0.10-2mdv2011.0
+ Revision: 612447
- the mass rebuild of 2010.1 packages

* Fri May 07 2010 Tomasz Pawel Gajc <tpg@mandriva.org> 1:1.2.0.10-1mdv2010.1
+ Revision: 543285
- downgrade to 1.2.0.10 version due to API mismatch in scilab (use Epoch)

* Tue Apr 06 2010 Yuri Myasoedov <omerta13@mandriva.org> 1.3.1.5-1mdv2010.1
+ Revision: 532285
- jar indexing was added in spec
- new version 1.3.1.5

* Mon Mar 22 2010 Yuri Myasoedov <omerta13@mandriva.org> 1.3.1.3-1mdv2010.1
+ Revision: 526625
- Updating sources
- Updating for new version of jgraphx 1.3.1.3

* Sun Dec 20 2009 Tomasz Pawel Gajc <tpg@mandriva.org> 1.2.0.3-1mdv2010.1
+ Revision: 480443
- import jgraphx