File netbeans-javaparser.spec of Package netbeans-javaparser
#
# spec file for package netbeans-javaparser (Version 6.5)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: netbeans-javaparser
Version: 6.5
Release: 3
Summary: NetBeans Java Parser
License: GPL v2 only; GPLv2 with Classpath Exception
Url: http://java.netbeans.org/javaparser/
Group: Development/Libraries/Java
# The source for this package was pulled from upstream's vcs. Use the
# following commands to generate the tarball:
# hg clone http://hg.netbeans.org/main/nb-javac/
# cd nb-javac/
# hg update -r release65_base
# tar -czvf ../nb-javac-6.5.tar.gz .
Source0: nb-javac-%{version}.tar.bz2
BuildRequires: ant
BuildRequires: ant-nodeps
BuildRequires: java-devel
BuildRequires: jpackage-utils
Requires: java
Requires: jpackage-utils
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: libnb-javaparser-java = 6.1
%description
Java parser to analyse Java source files inside of the NetBeans IDE
%prep
%setup -q -c
# remove all binary libs
find . -name "*.jar" -exec %{__rm} -f {} \;
%build
[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
ant -f make/netbeans/nb-javac/build.xml jar
%install
# jar
%{__install} -d -m 755 %{buildroot}%{_javadir}
%{__install} -m 644 make/netbeans/nb-javac/dist/javac-api.jar %{buildroot}%{_javadir}/%{name}-api-%{version}.jar
%{__ln_s} %{name}-api-%{version}.jar %{buildroot}%{_javadir}/%{name}-api.jar
%{__install} -m 644 make/netbeans/nb-javac/dist/javac-impl.jar %{buildroot}%{_javadir}/%{name}-impl-%{version}.jar
%{__ln_s} %{name}-impl-%{version}.jar %{buildroot}%{_javadir}/%{name}-impl.jar
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%doc ASSEMBLY_EXCEPTION LICENSE README
%{_javadir}/*
%changelog
* Tue May 19 2009 mvyskocil@suse.cz
- 'Initial packaging of netbeans-javaparser (from Fedora 11)'