public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Deepak Bhole <dbhole@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/bsh] epel10: Add conditional native compilation.
Date: Wed, 15 Jul 2026 09:36:03 GMT [thread overview]
Message-ID: <178410816371.1.9064171907186716157.rpms-bsh-b800ade09d02@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/bsh
Branch : epel10
Commit : b800ade09d0251702b0aff993e35b10bd1deadf6
Author : Deepak Bhole <dbhole@fedoraproject.org>
Date : 2006-07-20T16:45:38+00:00
Stats : +82/-23 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/bsh/c/b800ade09d0251702b0aff993e35b10bd1deadf6?branch=epel10
Log:
Add conditional native compilation.
---
diff --git a/bsh.spec b/bsh.spec
index d5a05b3..cbd259f 100644
--- a/bsh.spec
+++ b/bsh.spec
@@ -1,27 +1,66 @@
-%define name bsh
-%define Name BeanShell
-%define version 1.3.0
-%define fversion 1.3.0
-%define release 5jpp_1fc.1.1
+# Copyright (c) 2000-2005, JPackage Project
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the
+# distribution.
+# 3. Neither the name of the JPackage Project nor the names of its
+# contributors may be used to endorse or promote products derived
+# from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+%define _with_gcj_support 1
+
+%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
+
%define section free
-Name: %{name}
-Version: %{version}
-Release: %{release}.1.1
+Name: bsh
+Version: 1.3.0
+Release: 8jpp_1fc
Epoch: 0
Summary: Lightweight Scripting for Java
License: LGPL
-Source0: %{name}-%{fversion}-src.tar.bz2
+Source0: %{name}-%{version}-src.tar.bz2
Patch0: %{name}-build.patch
Patch1: %{name}-readline.patch
+BuildRequires: ant, bsf, perl
Requires: bsf
-Requires: jpackage-utils >= 0:1.5
-BuildRequires: ant bsf
+Requires: jpackage-utils >= 0:1.6
#BuildRequires: libreadline-java
Url: http://www.beanshell.org/
Group: Development/Java
+%if ! %{gcj_support}
Buildarch: noarch
+%endif
Buildroot: %{_tmppath}/%{name}-%{version}-buildroot
+Distribution: JPackage
+Vendor: JPackage Project
+
+%if %{gcj_support}
+BuildRequires: java-gcj-compat-devel
+Requires(post): java-gcj-compat
+Requires(postun): java-gcj-compat
+%endif
%description
BeanShell is a small, free, embeddable, Java source interpreter with
@@ -68,7 +107,7 @@ Demonstrations and samples for %{name}.
%prep
rm -rf $RPM_BUILD_ROOT
-%setup -q -n %{Name}
+%setup -q -n BeanShell
%patch0 -p1
#%patch1 -p1
find . -name "*.jar" -exec rm -f {} \;
@@ -92,7 +131,7 @@ ant -Dexclude-servlet='bsh/servlet/*' bshdoc
%install
# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
-install -m 644 dist/%{name}-%{fversion}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
+install -m 644 dist/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)
# manual
find docs -name ".cvswrappers" -exec rm -f {} \;
@@ -165,9 +204,29 @@ cat > $RPM_BUILD_ROOT%{_bindir}/%{name}doc << EOF
EOF
cat scripts/bshdoc.bsh >> $RPM_BUILD_ROOT%{_bindir}/%{name}doc
+%if %{gcj_support}
+%{_bindir}/aot-compile-rpm
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+%if %{gcj_support}
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+ %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%postun
+%if %{gcj_support}
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+ %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
%files
%defattr(-,root,root)
%doc src/Changes.html src/License.txt src/README.txt
@@ -176,6 +235,10 @@ rm -rf $RPM_BUILD_ROOT
%{_javadir}/*
%dir %{_datadir}/%{name}
+%if %{gcj_support}
+%attr(-,root,root) %{_libdir}/gcj/%{name}
+%endif
+
%files manual
%defattr(-,root,root)
%doc docs/*
@@ -189,18 +252,14 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/%{name}/*
%changelog
-* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0:1.3.0-5jpp_1fc.1.1.1.1
-- rebuild
-
-* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
-- rebuilt
+* Thu Jul 20 2006 Deepak Bhole <dbhole@redhat.com> 0:1.3.0-8jpp_1fc
+- Add conditional native compilation.
-* Thu Jun 16 2005 Gary Benson <gbenson@redhat.com> 0:1.3.0-5jpp_1fc
-- Build into Fedora.
+* Thu May 04 2006 Ralph Apel <r.apel at r-apel.de> 0:1.3.0-7jpp
+- First JPP-1.7 release
-* Thu Mar 4 2004 Frank Ch. Eigler <fche@redhat.com> 0:1.3.0-5jpp_1rh
-- RH vacuuming
-- added bsf build-prereq
+* Fri Aug 20 2004 Ralph Apel <r.apel at r-apel.de> 0:1.3.0-6jpp
+- Build with ant-1.6.2
* Mon Jan 26 2004 David Walluck <david@anti-microsoft.org> 0:1.3.0-5jpp
- really drop readline patch
reply other threads:[~2026-07-15 9:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178410816371.1.9064171907186716157.rpms-bsh-b800ade09d02@fedoraproject.org \
--to=dbhole@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox