Drop gcj support. Fix rpmlint warnings.

This commit is contained in:
Alexander Kurtakov 2010-01-09 13:50:46 +00:00
parent 0b103a97c0
commit 065175bd11

View File

@ -28,11 +28,9 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# #
%define gcj_support 1
Name: bsh Name: bsh
Version: 1.3.0 Version: 1.3.0
Release: 15.1%{?dist} Release: 15.2%{?dist}
Epoch: 0 Epoch: 0
Summary: Lightweight Scripting for Java Summary: Lightweight Scripting for Java
License: SPL or LGPLv2+ License: SPL or LGPLv2+
@ -51,19 +49,11 @@ BuildRequires: servlet
Requires: bsf Requires: bsf
Requires: jpackage-utils >= 0:1.7.2 Requires: jpackage-utils >= 0:1.7.2
#BuildRequires: libreadline-java #BuildRequires: libreadline-java
Url: http://www.beanshell.org/ URL: http://www.beanshell.org/
Group: Development/Java Group: Development/Libraries
%if ! %{gcj_support} BuildArch: noarch
Buildarch: noarch
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%if %{gcj_support}
BuildRequires: java-gcj-compat-devel
Requires(post): java-gcj-compat
Requires(postun): java-gcj-compat
%endif
%description %description
BeanShell is a small, free, embeddable, Java source interpreter with BeanShell is a small, free, embeddable, Java source interpreter with
object scripting language features, written in Java. BeanShell executes object scripting language features, written in Java. BeanShell executes
@ -85,21 +75,21 @@ scripts and return them as results.
%package manual %package manual
Summary: Manual for %{name} Summary: Manual for %{name}
Group: Development/Java Group: Documentation
%description manual %description manual
Documentation for %{name}. Documentation for %{name}.
%package javadoc %package javadoc
Summary: Javadoc for %{name} Summary: Javadoc for %{name}
Group: Development/Java Group: Documentation
%description javadoc %description javadoc
Javadoc for %{name}. Javadoc for %{name}.
%package demo %package demo
Summary: Demo for %{name} Summary: Demo for %{name}
Group: Development/Java Group: Development/Libraries
AutoReqProv: no AutoReqProv: no
Requires: %{name} = %{epoch}:%{version}-%{release} Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: /usr/bin/env Requires: /usr/bin/env
@ -108,8 +98,8 @@ Requires: /usr/bin/env
Demonstrations and samples for %{name}. Demonstrations and samples for %{name}.
%package desktop %package desktop
Summary: %{name} integration for the desktop Summary: Desktop integraton for %{name}
Group: Development/Java Group: Development/Libraries
Requires: %{name} = %{epoch}:%{version}-%{release} Requires: %{name} = %{epoch}:%{version}-%{release}
%description desktop %description desktop
@ -277,12 +267,6 @@ cat > $RPM_BUILD_ROOT%{_bindir}/%{name}doc << EOF
EOF EOF
cat scripts/bshdoc.bsh >> $RPM_BUILD_ROOT%{_bindir}/%{name}doc cat scripts/bshdoc.bsh >> $RPM_BUILD_ROOT%{_bindir}/%{name}doc
%if %{gcj_support}
%{_bindir}/aot-compile-rpm \
--exclude %{_datadir}/%{name}/webapps/bshservlet.war \
--exclude %{_datadir}/%{name}/webapps/bshservlet-wbsh.war
%endif
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -294,13 +278,6 @@ fi
%post %post
%update_maven_depmap %update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
%{_bindir}/rebuild-gcj-db
fi
%endif
exit 0
%postun desktop %postun desktop
touch --no-create %{_datadir}/icons/hicolor touch --no-create %{_datadir}/icons/hicolor
@ -310,13 +287,6 @@ fi
%postun %postun
%update_maven_depmap %update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
%{_bindir}/rebuild-gcj-db
fi
%endif
exit 0
%files %files
%defattr(-,root,root) %defattr(-,root,root)
@ -329,10 +299,6 @@ exit 0
%{_datadir}/maven2/poms/* %{_datadir}/maven2/poms/*
%{_mavendepmapfragdir} %{_mavendepmapfragdir}
%if %{gcj_support}
%attr(-,root,root) %{_libdir}/gcj/%{name}
%endif
%ifnarch ppc64 s390x %ifnarch ppc64 s390x
%files manual %files manual
%defattr(-,root,root) %defattr(-,root,root)
@ -355,6 +321,10 @@ exit 0
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png %{_datadir}/icons/hicolor/*x*/apps/%{name}.png
%changelog %changelog
* Sat Jan 9 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.3.0-15.2
- Drop gcj_support.
- Fix rpmlint warnings.
* Mon Sep 21 2009 Permaine Cheung <pcheung@redhat.com> 0:1.3.0-15.1 * Mon Sep 21 2009 Permaine Cheung <pcheung@redhat.com> 0:1.3.0-15.1
- Do not build manual and faq for ppc64 or s390x as the style task is disabled - Do not build manual and faq for ppc64 or s390x as the style task is disabled