2009-05-30 16:17:54 +00:00
|
|
|
#
|
2013-09-09 11:59:28 +00:00
|
|
|
# spec file for package netbeans-javaparser
|
2009-05-30 16:17:54 +00:00
|
|
|
#
|
2022-03-23 04:40:19 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2009-05-30 16:17:54 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2022-03-23 04:40:19 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-05-30 16:17:54 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2010-04-01 14:19:06 +00:00
|
|
|
# Prevent brp-java-repack-jars from being run.
|
|
|
|
%define __jar_repack %{nil}
|
2009-05-30 16:17:54 +00:00
|
|
|
Name: netbeans-javaparser
|
2010-04-01 14:19:06 +00:00
|
|
|
Version: 6.8
|
2013-09-09 11:59:28 +00:00
|
|
|
Release: 0
|
2009-05-30 16:17:54 +00:00
|
|
|
Summary: NetBeans Java Parser
|
2012-06-26 15:07:54 +00:00
|
|
|
License: GPL-2.0-with-classpath-exception
|
2009-05-30 16:17:54 +00:00
|
|
|
Group: Development/Libraries/Java
|
2022-03-23 04:40:19 +00:00
|
|
|
URL: http://java.netbeans.org/javaparser/
|
2009-05-30 16:17:54 +00:00
|
|
|
# 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/
|
2010-04-01 14:19:06 +00:00
|
|
|
# hg update -r 1c46268162cd
|
|
|
|
# tar -czvf ../nb-javac-6.8.tar.gz .
|
2009-05-30 16:17:54 +00:00
|
|
|
Source0: nb-javac-%{version}.tar.bz2
|
|
|
|
BuildRequires: ant
|
2022-03-23 04:40:19 +00:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2013-09-09 11:59:28 +00:00
|
|
|
BuildRequires: javapackages-tools
|
2022-03-23 04:40:19 +00:00
|
|
|
Requires: java >= 1.8
|
2013-09-09 11:59:28 +00:00
|
|
|
Requires: javapackages-tools
|
2014-07-08 10:54:50 +00:00
|
|
|
BuildArch: noarch
|
2009-05-30 16:17:54 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Java parser to analyse Java source files inside of the NetBeans IDE
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c
|
|
|
|
# remove all binary libs
|
2014-07-08 10:54:50 +00:00
|
|
|
find . -name "*.jar" -exec rm -f {} \;
|
2009-05-30 16:17:54 +00:00
|
|
|
|
|
|
|
%build
|
2022-03-23 04:40:19 +00:00
|
|
|
%{ant} \
|
2017-09-19 15:10:00 +00:00
|
|
|
-f make/netbeans/nb-javac/build.xml \
|
2022-03-23 04:40:19 +00:00
|
|
|
-Djavac.source=1.8 -Djavac.target=1.8 \
|
2017-09-19 15:10:00 +00:00
|
|
|
jar
|
2009-05-30 16:17:54 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jar
|
2014-07-08 10:54:50 +00:00
|
|
|
install -d -m 755 %{buildroot}%{_javadir}
|
2022-03-23 04:40:19 +00:00
|
|
|
install -m 644 make/netbeans/nb-javac/dist/javac-api.jar %{buildroot}%{_javadir}/%{name}-api.jar
|
|
|
|
install -m 644 make/netbeans/nb-javac/dist/javac-impl.jar %{buildroot}%{_javadir}/%{name}-impl.jar
|
2009-05-30 16:17:54 +00:00
|
|
|
|
|
|
|
%files
|
2022-03-23 05:04:00 +00:00
|
|
|
%license LICENSE ASSEMBLY_EXCEPTION
|
2022-03-23 04:40:19 +00:00
|
|
|
%doc ASSEMBLY_EXCEPTION README
|
2009-05-30 16:17:54 +00:00
|
|
|
%{_javadir}/*
|
|
|
|
|
|
|
|
%changelog
|