Accepting request 653651 from Java:packages

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/653651
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rhino?expand=0&rev=33
This commit is contained in:
Dominique Leuenberger 2018-12-07 13:31:16 +00:00 committed by Git OBS Bridge
commit c643913cda
2 changed files with 22 additions and 4 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Nov 18 16:32:33 UTC 2018 - Fridrich Strba <fstrba@suse.com>
- Actually use the rhino-js.pom file in the source package.
- Add "org.mozilla:rhino" alias, since the later 1.7.x versions
are distributed as such
-------------------------------------------------------------------
Tue Oct 3 06:51:14 UTC 2017 - fstrba@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package rhino
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2000-2009, JPackage Project
#
# All modifications and additions to the file contributed by third parties
@ -13,7 +13,7 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -22,7 +22,7 @@ Name: rhino
Version: 1.7R3
Release: 0
Summary: JavaScript for Java
License: MPL-1.1 OR GPL-2.0+
License: MPL-1.1 OR GPL-2.0-or-later
Group: Development/Libraries/Java
Url: http://www.mozilla.org/rhino/
# wget ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino%{cvs_version}.zip
@ -49,7 +49,7 @@ Patch100: rhino-1.7-gcj.patch
BuildRequires: ant
BuildRequires: bea-stax-api
BuildRequires: java-devel >= 1.6
BuildRequires: javapackages-tools
BuildRequires: javapackages-local
BuildRequires: jline
BuildRequires: xmlbeans-mini
#!BuildIgnore: antlr
@ -123,6 +123,11 @@ mkdir -p %{buildroot}%{_javadir}
cp -a build/%{name}%{cvs_version}/js.jar %{buildroot}%{_javadir}
ln -s js.jar %{buildroot}%{_javadir}/%{name}.jar
# pom
mkdir -p %{buildroot}%{_mavenpomdir}
cp -a %{SOURCE6} %{buildroot}%{_mavenpomdir}/js.pom
%add_maven_depmap js.pom js.jar -a "org.mozilla:rhino"
# scripts
mkdir -p %{buildroot}%{_bindir}
install -m 0755 %{SOURCE2} %{buildroot}%{_bindir}/%{name}
@ -142,6 +147,12 @@ cp -a build/%{name}%{cvs_version}/%{name}-examples.jar %{buildroot}%{_javadir}/%
%attr(0755,root,root) %{_bindir}/%{name}-idswitch
%attr(0755,root,root) %{_bindir}/%{name}-jsc
%{_javadir}/*.jar
%{_mavenpomdir}/*.pom
%if %{defined _maven_repository}
%config(noreplace) %{_mavendepmapfragdir}/%{name}
%else
%{_datadir}/maven-metadata/%{name}.xml
%endif
%files demo
%{_datadir}/%{name}