package init
This commit is contained in:
parent
9897fbbbf6
commit
433e6d479d
BIN
bsh-2.0-b6.tar.gz
Normal file
BIN
bsh-2.0-b6.tar.gz
Normal file
Binary file not shown.
9
bsh-desktop.desktop
Normal file
9
bsh-desktop.desktop
Normal file
@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Name=BeanShell Desktop
|
||||
Exec=bsh-desktop
|
||||
Icon=bsh
|
||||
Terminal=false
|
||||
Type=Application
|
||||
StartupWMClass=bsh-Console
|
||||
Categories=Development;Java;
|
||||
Version=1.0
|
||||
75
bsh.spec
Normal file
75
bsh.spec
Normal file
@ -0,0 +1,75 @@
|
||||
Name: bsh
|
||||
Version: 2.0
|
||||
Release: 14.b6
|
||||
Epoch: 0
|
||||
Summary: A Java scripting environment (command-line version)
|
||||
License: ASL 2.0 and BSD and Public Domain
|
||||
URL: http://www.beanshell.org/
|
||||
BuildArch: noarch
|
||||
Source0: %{name}-%{version}-b6.tar.gz
|
||||
Source1: %{name}-desktop.desktop
|
||||
Source2: generate-tarball.sh
|
||||
BuildRequires: javapackages-local ant bsf junit javacc glassfish-servlet-api ImageMagick desktop-file-utils
|
||||
Requires: java-headless bsf jline javapackages-tools
|
||||
Provides: %{name}-utils = %{epoch}:%{version}-%{release}
|
||||
Obsoletes: %{name}-utils < 0:2.0 %{name}-demo < 0:2.0
|
||||
Provides: bundled(objectweb-asm) = 1.3.6
|
||||
|
||||
%description
|
||||
BeanShell is a small, embeddable, Java source interpreter with object
|
||||
scripting language features, written in Java. BeanShell executes standard
|
||||
Java statements and expressions, in addition to obvious scripting commands
|
||||
and syntax. You can also script objects as simple method closures like those
|
||||
in Perl and JavaScript(tm).bsh starts the command-line version of BeanShell.
|
||||
|
||||
%package help
|
||||
Summary: This package contains help documents
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: bsh-manual = %{version}-%{release} bsh-javadoc = %{version}-%{release}
|
||||
Obsoletes: bsh-manual < %{version}-%{release} bsh-javadoc < %{version}-%{release}
|
||||
|
||||
%description help
|
||||
Files for help with bsh.
|
||||
|
||||
%prep
|
||||
%autosetup -n beanshell-%{version}b6 -p1
|
||||
sed -i 's,org.apache.xalan.xslt.extensions.Redirect,http://xml.apache.org/xalan/redirect,' docs/manual/xsl/*.xsl
|
||||
%mvn_alias :bsh bsh:bsh bsh:bsh-bsf org.beanshell:bsh
|
||||
%mvn_file : %{name}
|
||||
|
||||
%build
|
||||
install -d lib
|
||||
build-jar-repository lib bsf javacc junit glassfish-servlet-api
|
||||
ant test dist
|
||||
|
||||
%install
|
||||
%mvn_artifact pom.xml dist/%{name}-%{version}b6.jar
|
||||
%mvn_install -J javadoc
|
||||
desktop-file-install --mode=644 --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
|
||||
install -d -m 755 %{buildroot}%{_datadir}/pixmaps
|
||||
convert src/bsh/util/lib/icon.gif %{buildroot}%{_datadir}/pixmaps/bsh.png
|
||||
install -d -m 755 %{buildroot}%{_datadir}/%{name}/webapps
|
||||
install -m 644 dist/bshservlet.war %{buildroot}%{_datadir}/%{name}/webapps
|
||||
install -m 644 dist/bshservlet-wbsh.war %{buildroot}%{_datadir}/%{name}/webapps
|
||||
mkdir %{buildroot}%{_bindir}
|
||||
%jpackage_script bsh.Interpreter "\${BSH_DEBUG:+-Ddebug=true}" jline.console.internal.ConsoleRunner %{name}:jline %{name} true
|
||||
%jpackage_script bsh.Console "\${BSH_DEBUG:+-Ddebug=true}" "" bsh bsh-console true
|
||||
echo '#!%{_bindir}/bsh' > %{buildroot}%{_bindir}/bshdoc
|
||||
cat scripts/bshdoc.bsh >> %{buildroot}%{_bindir}/bshdoc
|
||||
|
||||
%files -f .mfiles
|
||||
%doc LICENSE
|
||||
%attr(0755,root,root) %{_bindir}/%{name}*
|
||||
%{_datadir}/applications/%{name}-desktop.desktop
|
||||
%{_datadir}/pixmaps/%{name}.png
|
||||
%{_datadir}/%{name}
|
||||
|
||||
%files help -f .mfiles-javadoc
|
||||
%doc NOTICE README.md src/Changes.html src/CodeMap.html docs/faq/faq.html
|
||||
%doc docs/manual/html
|
||||
%doc docs/manual/images/*.jpg
|
||||
%doc docs/manual/images/*.gif
|
||||
|
||||
%changelog
|
||||
* Fri Dec 13 2019 gulining<gulining1@huawei.com> - 0:2.0-14.b6
|
||||
- Pakcage init
|
||||
Loading…
x
Reference in New Issue
Block a user