00741b
%global upstream_version %(echo %{version} | tr -d '~')
00741b
00741b
Name:           bsh
00741b
Version:        2.0~b6
00741b
Release:        3%{?dist}
00741b
Summary:        Lightweight Scripting for Java
00741b
URL:            http://www.beanshell.org/
00741b
# bundled asm is BSD
00741b
# bsf/src/bsh/util/BeanShellBSFEngine.java is public-domain
00741b
License:        ASL 2.0 and BSD and Public Domain
00741b
BuildArch:      noarch
00741b
# ./generate-tarball.sh
00741b
# TODO Use proper %%{version} when a newer version is available
00741b
# TODO Also see TODO in ./generate-tarball.sh
00741b
Source0:        %{name}-2.0-b6.tar.gz
00741b
# Remove bundled jars which cannot be easily verified for licensing
00741b
# Remove code marked as SUN PROPRIETARY/CONFIDENTAIL
00741b
Source2:        generate-tarball.sh
00741b
00741b
Patch0:         %{name}-source-1.6.patch
00741b
Patch1:         %{name}-java-9.patch
00741b
00741b
BuildRequires:  javapackages-local
00741b
BuildRequires:  ant
00741b
BuildRequires:  bsf
00741b
BuildRequires:  junit
00741b
BuildRequires:  javacc
00741b
BuildRequires:  glassfish-servlet-api
00741b
00741b
Provides:       %{name}-utils = %{version}-%{release}
00741b
00741b
# bsh uses small subset of modified (shaded) classes from ancient version of
00741b
# objecweb-asm under asm directory
00741b
Provides:       bundled(objectweb-asm) = 1.3.6
00741b
00741b
%description
00741b
BeanShell is a small, free, embeddable, Java source interpreter with
00741b
object scripting language features, written in Java. BeanShell
00741b
executes standard Java statements and expressions, in addition to
00741b
obvious scripting commands and syntax. BeanShell supports scripted
00741b
objects as simple method closures like those in Perl and
00741b
JavaScript(tm). You can use BeanShell interactively for Java
00741b
experimentation and debugging or as a simple scripting engine for your
00741b
applications. In short: BeanShell is a dynamically interpreted Java,
00741b
plus some useful stuff. Another way to describe it is to say that in
00741b
many ways BeanShell is to Java as Tcl/Tk is to C: BeanShell is
00741b
embeddable - You can call BeanShell from your Java applications to
00741b
execute Java code dynamically at run-time or to provide scripting
00741b
extensibility for your applications. Alternatively, you can call your
00741b
Java applications and objects from BeanShell; working with Java
00741b
objects and APIs dynamically. Since BeanShell is written in Java and
00741b
runs in the same space as your application, you can freely pass
00741b
references to "real live" objects into scripts and return them as
00741b
results.
00741b
00741b
%package manual
00741b
Summary:        Manual for %{name}
00741b
00741b
%description manual
00741b
Documentation for %{name}.
00741b
00741b
%package javadoc
00741b
Summary:        API documentation for %{name}
00741b
00741b
%description javadoc
00741b
This package provides %{summary}.
00741b
00741b
%prep
00741b
%setup -q -n beanshell-%{upstream_version}
00741b
%patch0 -p1
00741b
%patch1 -p1
00741b
00741b
sed -i 's,org.apache.xalan.xslt.extensions.Redirect,http://xml.apache.org/xalan/redirect,' docs/manual/xsl/*.xsl
00741b
00741b
%mvn_alias :bsh bsh:bsh bsh:bsh-bsf org.beanshell:bsh
00741b
00741b
%mvn_file : %{name}
00741b
00741b
%build
00741b
mkdir lib
00741b
build-jar-repository lib bsf javacc junit glassfish-servlet-api
00741b
00741b
ant test dist
00741b
00741b
%install
00741b
%mvn_artifact pom.xml dist/%{name}-%{upstream_version}.jar
00741b
00741b
%mvn_install -J javadoc
00741b
00741b
%files -f .mfiles
00741b
%license LICENSE NOTICE
00741b
%doc README.md src/Changes.html src/CodeMap.html docs/faq/faq.html
00741b
00741b
%files manual
00741b
%doc docs/manual/html
00741b
%doc docs/manual/images/*.jpg
00741b
%doc docs/manual/images/*.gif
00741b
%license LICENSE NOTICE
00741b
00741b
%files javadoc -f .mfiles-javadoc
00741b
%license LICENSE NOTICE
00741b
00741b
%changelog
00741b
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0~b6-3
00741b
- Mass rebuild for javapackages-tools 201902
00741b
00741b
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0~b6-2
00741b
- Drop launcher scripts and servlet
00741b
00741b
* Mon Sep 16 2019 Marian Koncek <mkoncek@redhat.com> - 2.0~b6-1
00741b
- Use tilde versioning
00741b
00741b
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-14.b6
00741b
- Mass rebuild for javapackages-tools 201901
00741b
00741b
* Fri Aug 03 2018 Michael Simacek <msimacek@redhat.com> - 0:2.0-13.b6
00741b
- Remove proprietary files from tarball
00741b
00741b
* Mon Jul 30 2018 Severin Gehwolf <sgehwolf@redhat.com> - 0:2.0-12.b6
00741b
- Add requirement on javapackages-tools for script's usage of
00741b
  java-functions.
00741b
00741b
* Mon Jul 30 2018 Michael Simacek <msimacek@redhat.com> - 0:2.0-11.b6
00741b
- Repack the tarball without binaries
00741b
00741b
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0-10.b6
00741b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
00741b
00741b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0-9.b6
00741b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
00741b
00741b
* Sat Sep 23 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.0-8.b6
00741b
- Properly conditionalize build-requires
00741b
00741b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0-7.b6
00741b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
00741b
00741b
* Tue Jun 13 2017 Michael Simacek <msimacek@redhat.com> - 0:2.0-6.b6
00741b
- Add conditional for desktop file
00741b
00741b
* Fri Mar  3 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.0-5.b6
00741b
- Install desktop icon to pixmaps instead of icons
00741b
00741b
* Fri Mar  3 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.0-4.b6
00741b
- Fix directory ownership
00741b
00741b
* Tue Feb 07 2017 Michael Simacek <msimacek@redhat.com> - 0:2.0-3.b6
00741b
- Build against glassfish-servlet-api
00741b
00741b
* Thu Nov 24 2016 Michael Simacek <msimacek@redhat.com> - 0:2.0-2.b6
00741b
- Install into expected location
00741b
00741b
* Thu Nov 24 2016 Michael Simacek <msimacek@redhat.com> - 0:2.0-1.b6
00741b
- Update to upstream version 2.0.b6
00741b
00741b
* Wed Oct 12 2016 Ville Skyttä <ville.skytta@iki.fi> - 0:1.3.0-36
00741b
- Switch to jline 2.x in -utils
00741b
- Mark License.txt as %%license
00741b
00741b
* Thu Jul 21 2016 Michael Simacek <msimacek@redhat.com> - 0:1.3.0-35
00741b
- Replace perl usage with sed
00741b
00741b
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.3.0-34
00741b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
00741b
00741b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3.0-33
00741b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
00741b
00741b
* Wed Nov  5 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.3.0-32
00741b
- Remove workaround for RPM bug #646523
00741b
00741b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3.0-31
00741b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
00741b
00741b
* Wed May 21 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.3.0-30
00741b
- Use .mfiles generated during build
00741b
00741b
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.3.0-29
00741b
- Use Requires: java-headless rebuild (#1067528)
00741b
00741b
* Wed Oct 30 2013 Michal Srb <msrb@redhat.com> - 0:1.3.0-28
00741b
- Switch to jline1 (Resolves rhbz#1023018)
00741b
00741b
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3.0-27
00741b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
00741b
00741b
* Fri Jul 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.3.0-26
00741b
- Use %%add_maven_depmap instead of legacy macros
00741b
- Install versionless javadocs
00741b
- Remove old Obsoletes
00741b
- Update and format descriptions
00741b
- Install license file with manual and javadoc packages
00741b
- Fix Requires and BuildRequires on java
00741b
- Fix calls to %%jpackage_script
00741b
00741b
* Wed Jul 10 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.3.0-26
00741b
- Remove arch-specific conditionals
00741b
- Remove group tags
00741b
- Remove Requires on jpackage-utils
00741b
- Remove Requires on coreutils
00741b
- Generate custom scripts with %%jpackage_script
00741b
- Install versionless JARs only
00741b
- Install POM files to %%{_mavenpomdir}
00741b
00741b
* Thu Jun 06 2013 Michal Srb <msrb@redhat.com> - 0:1.3.0-25
00741b
- Enable tests
00741b
- Fix BR
00741b
00741b
* Thu Feb 14 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 0:1.3.0-24
00741b
- remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247
00741b
- clean up spec to follow current guidelines
00741b
00741b
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3.0-23
00741b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
00741b
00741b
* Tue Nov 20 2012 David Tardon <dtardon@redhat.com> - 0:1.3.0-22
00741b
- Resolves: rhbz#850008 bsh - Should not own /usr/share/maven-fragments
00741b
  directory
00741b
- Resolves: rhbz#878163 bsh - javadoc subpackage doesn't require
00741b
  jpackage-utils
00741b
- Resolves: rhbz#878166 bsh: Public Domain not listed in license tag
00741b
00741b
* Thu Nov  1 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.3.0-21
00741b
- Add additional maven depmap
00741b
00741b
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3.0-20
00741b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
00741b
00741b
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3.0-19
00741b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
00741b
00741b
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3.0-18
00741b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
00741b
00741b
* Thu Nov 25 2010 Ville Skyttä <ville.skytta@iki.fi> - 0:1.3.0-17
00741b
- Rename -desktop to -utils, move shell scripts and menu entry to it (#417491).
00741b
- Bring icon cache scriptlets up to date with current guidelines.
00741b
- Use jline in bsh script for command history support.
00741b
- Prefer JRE over SDK when finding JVM to invoke in scripts.
00741b
- Build with -source 1.5.
00741b
00741b
* Thu Nov 25 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.3.0-16
00741b
- Fix pom filenames (Resolves rhbz#655791)
00741b
- Fix xsl errors when building docs
00741b
00741b
* Sat Jan 9 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.3.0-15.2
00741b
- Drop gcj_support.
00741b
- Fix rpmlint warnings.
00741b
00741b
* Mon Sep 21 2009 Permaine Cheung <pcheung@redhat.com> 0:1.3.0-15.1
00741b
- Do not build manual and faq for ppc64 or s390x as the style task is disabled
00741b
00741b
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3.0-15
00741b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
00741b
00741b
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3.0-14
00741b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
00741b
00741b
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.3.0-13
00741b
- drop repotag
00741b
- fix license tag
00741b
00741b
* Mon Mar 10 2008 Permaine Cheung <pcheung@redhat.com> 0:1.3.0-12jpp.3
00741b
- Fix bugzilla 436675. Separate menu entry into desktop subpackage.
00741b
00741b
* Thu Mar 06 2008 Permaine Cheung <pcheung@redhat.com> 0:1.3.0-12jpp.2
00741b
- Fix bugzilla 417491. Thanks Ville Skytta for the patch.
00741b
- Add menu entry and startup script for bsh desktop.
00741b
- Ensure scriptlets exit with zero exit status.
00741b
00741b
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.3.0-12jpp.1
00741b
- Autorebuild for GCC 4.3
00741b
00741b
* Mon Jan 21 2008 Permaine Cheung <pcheung@redhat.com> 0:1.3.0-11jpp.1
00741b
- Merge with upstream
00741b
00741b
* Thu Jul 12 2007 Ralph Apel <r.apel at r-apel.de> 0:1.3.0-11jpp
00741b
- Fix aot build
00741b
- Add pom and depmap frags
00741b
- Restore all jars
00741b
- Add webapps
00741b
00741b
* Fri Mar 16 2007 Permaine Cheung <pcheung@redhat.com> 0:1.3.0-10jpp.1
00741b
- Merge with upstream
00741b
- Removed unapplied patch and moved buildroot removal from prep to install,
00741b
  and other rpmlint cleanup
00741b
00741b
* Mon Mar 12 2007 Karsten Hopp <karsten@redhat.com> 1.3.0-9jpp.2
00741b
- add buildrequirement ant-trax for documentation
00741b
00741b
* Fri Aug 04 2006 Deepak Bhole <dbhole@redhat.com> 0:1.3.0-9jpp.1
00741b
- Added missing requirements
00741b
00741b
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> 0:1.3.0-8jpp_3fc
00741b
- Rebuilt
00741b
00741b
* Fri Jul 21 2006 Deepak Bhole <dbhole@redhat.com> 0:1.3.0-8jpp_2fc
00741b
- Removing vendor and distribution tags.
00741b
00741b
* Thu Jul 20 2006 Deepak Bhole <dbhole@redhat.com> 0:1.3.0-8jpp_1fc
00741b
- Add conditional native compilation.
00741b
00741b
* Thu May 04 2006 Ralph Apel <r.apel at r-apel.de> 0:1.3.0-7jpp
00741b
- First JPP-1.7 release
00741b
00741b
* Fri Aug 20 2004 Ralph Apel <r.apel at r-apel.de> 0:1.3.0-6jpp
00741b
- Build with ant-1.6.2
00741b
00741b
* Mon Jan 26 2004 David Walluck <david@anti-microsoft.org> 0:1.3.0-5jpp
00741b
- really drop readline patch
00741b
00741b
* Sun Jan 25 2004 David Walluck <david@anti-microsoft.org> 0:1.3.0-4jpp
00741b
- drop readline patch
00741b
00741b
* Wed Jan 21 2004 David Walluck <david@anti-microsoft.org> 0:1.3.0-3jpp
00741b
- port libreadline-java patch to new bsh
00741b
00741b
* Tue Jan 20 2004 David Walluck <david@anti-microsoft.org> 0:1.3.0-2jpp
00741b
- add Distribution tag
00741b
00741b
* Tue Jan 20 2004 David Walluck <david@anti-microsoft.org> 0:1.3.0-1jpp
00741b
- 1.3.0
00741b
- remove bsf patch (fixed upstream)
00741b
- add epoch to demo package Requires
00741b
00741b
* Sat Apr 12 2003 David Walluck <david@anti-microsoft.org> 0:1.2-0.b8.4jpp
00741b
- fix strange permissions
00741b
00741b
* Fri Apr 11 2003 David Walluck <david@anti-microsoft.org> 0:1.2-0.b8.3jpp
00741b
- rebuild for JPackage 1.5
00741b
- add bsf patch
00741b
00741b
* Sat Feb 01 2003 David Walluck <david@anti-microsoft.org> 1.2-0.b8.2jpp
00741b
- remove servlet dependency (if anyone wants to add this as a separate
00741b
  package and do the tomcat integration, be my guest)
00741b
00741b
* Thu Jan 23 2003 David Walluck <david@anti-microsoft.org> 1.2-0.b8.1jpp
00741b
- rename to bsh
00741b
- add manual
00741b
- add Changes.html to %%doc
00741b
- add bsh and bshdoc scripts
00741b
- add %%dir %%{_datadir}/%%{name} to main package
00741b
- correct test interpreter and make bsh files executable
00741b
00741b
* Mon Jan 21 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.01-3jpp
00741b
- really section macro
00741b
00741b
* Sun Jan 20 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.01-2jpp
00741b
- additional sources in individual archives
00741b
- versioned dir for javadoc
00741b
- no dependencies for javadoc package
00741b
- stricter dependency for demo package
00741b
- section macro
00741b
00741b
* Tue Dec 18 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.01-1jpp
00741b
- first JPackage release