mirror of
https://abf.rosa.ru/djam/icedtea-web.git
synced 2025-02-23 17:52:54 +00:00
- Update to pre 1.1.5 icedtea-web package that works with java-1.7.0-openjdk.
SILENT: Actually, 1.1.4 did work with chromium-browser, but required some SILENT: patches, but only using icedtea-web tip plus a patch makes it work SILENT: correctly in my test cases with firefox 10 and chromium-browser. SILENT: svn-revision: 773885
This commit is contained in:
parent
1b34f540ca
commit
b9b8b590cc
1 changed files with 90 additions and 52 deletions
142
icedtea-web.spec
142
icedtea-web.spec
|
@ -1,16 +1,15 @@
|
||||||
%if %mandriva_branch == Cooker
|
# actually, plugin should advertise itself as 1.2pre
|
||||||
%define release %mkrel 2
|
%define custom .1
|
||||||
|
%define snapshot 89eb20442421
|
||||||
|
|
||||||
|
%ifarch %{ix86} x86_64
|
||||||
|
%define javaver 1.7.0
|
||||||
|
%define priority 17000
|
||||||
%else
|
%else
|
||||||
%define subrel 1
|
%define javaver 1.6.0
|
||||||
%define release %mkrel 0
|
%define priority 16000
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Version of java
|
|
||||||
%define javaver 1.6.0
|
|
||||||
|
|
||||||
# Alternatives priority
|
|
||||||
%define priority 16000
|
|
||||||
|
|
||||||
%ifarch %{ix86}
|
%ifarch %{ix86}
|
||||||
%define archinstall i386
|
%define archinstall i386
|
||||||
%endif
|
%endif
|
||||||
|
@ -28,27 +27,37 @@
|
||||||
%define javaplugin libjavaplugin.so
|
%define javaplugin libjavaplugin.so
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%define binsuffix .itweb
|
||||||
|
|
||||||
Name: icedtea-web
|
Name: icedtea-web
|
||||||
Version: 1.0.6
|
Version: 1.1.4%{custom}
|
||||||
Release: %{release}
|
Release: 1
|
||||||
Summary: Additional Java components for OpenJDK
|
Summary: Additional Java components for OpenJDK
|
||||||
Group: Networking/WWW
|
Group: Networking/WWW
|
||||||
License: LGPLv2+ and GPLv2 with exceptions
|
License: LGPLv2+ and GPLv2 with exceptions
|
||||||
URL: http://icedtea.classpath.org/wiki/IcedTea-Web
|
URL: http://icedtea.classpath.org/wiki/IcedTea-Web
|
||||||
|
%if !%{defined snapshot}
|
||||||
Source0: http://icedtea.classpath.org/download/source/%{name}-%{version}.tar.gz
|
Source0: http://icedtea.classpath.org/download/source/%{name}-%{version}.tar.gz
|
||||||
|
%else
|
||||||
|
# http://icedtea.classpath.org/hg/icedtea-web/archive/%{snapshot}.tar.gz
|
||||||
|
Source0: icedtea-web-%{snapshot}.tar.gz
|
||||||
|
%endif
|
||||||
|
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
BuildRequires: gtk2-devel
|
BuildRequires: gtk2-devel
|
||||||
|
|
||||||
# Need java-1.6.0-openjdk with IcedTea6 1.10 or newer
|
%ifarch %{ix86} x86_64
|
||||||
BuildRequires: java-1.6.0-openjdk-devel >= 1.6.0.0-18.b22
|
BuildRequires: java-%{javaver}-openjdk-devel
|
||||||
|
%else
|
||||||
|
BuildRequires: java-%{javaver}-openjdk-devel >= 1.6.0.0-18.b22
|
||||||
|
%endif
|
||||||
|
|
||||||
BuildRequires: xulrunner-devel
|
BuildRequires: xulrunner-devel
|
||||||
BuildRequires: zip
|
BuildRequires: zip
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
|
|
||||||
Requires: java-1.6.0-openjdk
|
Requires: java-%{javaver}-openjdk
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
|
|
||||||
|
@ -58,7 +67,14 @@ Provides: java-plugin = %{javaver}
|
||||||
Provides: java-1.6.0-openjdk-plugin = 1.6.0.0-18.b22
|
Provides: java-1.6.0-openjdk-plugin = 1.6.0.0-18.b22
|
||||||
Obsoletes: java-1.6.0-openjdk-plugin
|
Obsoletes: java-1.6.0-openjdk-plugin
|
||||||
|
|
||||||
|
# IcedTea is only built on these archs for now
|
||||||
|
ExclusiveArch: x86_64 i586
|
||||||
|
|
||||||
Patch0: icedtea-web-1.0.2-mutex_and_leak.patch
|
Patch0: icedtea-web-1.0.2-mutex_and_leak.patch
|
||||||
|
# http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=866
|
||||||
|
# http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2012-February/017132.html
|
||||||
|
# http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2012-February/017134.html
|
||||||
|
Patch1: icedtea-web-1.1-single-thread-JSRuntime.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The IcedTea-Web project provides a Java web browser plugin, an implementation
|
The IcedTea-Web project provides a Java web browser plugin, an implementation
|
||||||
|
@ -78,67 +94,89 @@ BuildArch: noarch
|
||||||
This package contains Javadocs for the IcedTea-Web project.
|
This package contains Javadocs for the IcedTea-Web project.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%if %{defined snapshot}
|
||||||
%patch0 -p1
|
%setup -q -n %{name}-%{snapshot}
|
||||||
|
%else
|
||||||
|
%setup -q
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %mdkversion < 201000
|
%patch0 -p1
|
||||||
# ugly hack to make it work on 2009.0/mes5 (pcpa)
|
%patch1 -p1
|
||||||
perl -pi -e 's|AC_CANONICAL_HOST||;' configure.*
|
|
||||||
autoreconf -fi
|
%if !%{defined snapshot}
|
||||||
|
%if %mdkversion < 201000
|
||||||
|
# ugly hack to make it work on 2009.0/mes5 (pcpa)
|
||||||
|
perl -pi -e 's|AC_CANONICAL_HOST||;' configure.*
|
||||||
|
autoreconf -fi
|
||||||
|
%endif
|
||||||
|
%else
|
||||||
|
sh autogen.sh
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure2_5x \
|
%configure2_5x \
|
||||||
--with-pkgversion=mandriva-%{release}-%{_arch} \
|
--with-pkgversion=mandriva-%{release}-%{_arch} \
|
||||||
--docdir=%{_javadocdir}/%{name} \
|
--docdir=%{_javadocdir}/%{name} \
|
||||||
--prefix=%{jredir}/
|
--with-jdk-home=%{javadir} \
|
||||||
|
--with-jre-home=%{jredir} \
|
||||||
|
--libdir=%{_libdir} \
|
||||||
|
--program-suffix=%{binsuffix} \
|
||||||
|
--prefix=%{_prefix}
|
||||||
|
|
||||||
make CXXFLAGS="%{optflags}"
|
make CXXFLAGS="%{optflags}"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall_std
|
%makeinstall_std
|
||||||
|
# Move javaws man page to a more specific name
|
||||||
# FIXME
|
mv %{buildroot}/%{_mandir}/man1/javaws.1 %{buildroot}/%{_mandir}/man1/javaws-itweb.1
|
||||||
rm -f %{buildroot}%{_prefix}/bin
|
|
||||||
|
|
||||||
# Remove pluginappletviewer ... it is unused and will be removed in 1.1
|
|
||||||
rm -f %{buildroot}%{jredir}/bin/pluginappletviewer
|
|
||||||
|
|
||||||
# Install desktop files.
|
# Install desktop files.
|
||||||
install -d -m 755 %{buildroot}%{_datadir}/{applications,pixmaps}
|
install -d -m 755 %{buildroot}%{_datadir}/{applications,pixmaps}
|
||||||
cp javaws.png %{buildroot}%{_datadir}/pixmaps
|
cp javaws.png %{buildroot}%{_datadir}/pixmaps
|
||||||
desktop-file-install --vendor '' \
|
desktop-file-install --vendor ''\
|
||||||
--dir %{buildroot}%{_datadir}/applications javaws.desktop
|
--dir %{buildroot}%{_datadir}/applications javaws.desktop
|
||||||
desktop-file-install --vendor '' \
|
desktop-file-install --vendor ''\
|
||||||
--dir %{buildroot}%{_datadir}/applications itweb-settings.desktop
|
--dir %{buildroot}%{_datadir}/applications itweb-settings.desktop
|
||||||
|
|
||||||
|
%post
|
||||||
|
if [ $1 -gt 1 ]
|
||||||
|
then
|
||||||
|
update-alternatives --remove %{javaplugin} \
|
||||||
|
%{jre6dir}/lib/%{archinstall}/IcedTeaPlugin.so 2>/dev/null || :
|
||||||
|
fi
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
update-alternatives --remove %{javaplugin} \
|
update-desktop-database &> /dev/null || :
|
||||||
%{javadir}/jre/lib/%{archinstall}/gcjwebplugin.so 2>/dev/null
|
update-alternatives \
|
||||||
update-alternatives --remove %{javaplugin} \
|
--install %{_libdir}/mozilla/plugins/libjavaplugin.so %{javaplugin} \
|
||||||
%{jredir}/lib/%{archinstall}/IcedTeaNPPlugin.so 2>/dev/null
|
%{_libdir}/IcedTeaPlugin.so %{priority} \
|
||||||
update-alternatives \
|
--slave %{_bindir}/javaws javaws %{_prefix}/bin/javaws%{binsuffix} \
|
||||||
--install %{_libdir}/mozilla/plugins/libjavaplugin.so %{javaplugin} \
|
--slave %{_mandir}/man1/javaws.1.gz javaws.1.gz \
|
||||||
%{jredir}/lib/%{archinstall}/IcedTeaPlugin.so %{priority} \
|
%{_mandir}/man1/javaws-itweb.1.gz
|
||||||
--slave %{_bindir}/javaws javaws %{jredir}/bin/javaws \
|
|
||||||
--slave %{_mandir}/man1/javaws.1 javaws.1 \
|
|
||||||
%{jredir}/man/man1/javaws.1
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ $1 -eq 0 ]; then
|
update-desktop-database &> /dev/null || :
|
||||||
alternatives --remove %{javaplugin} \
|
if [ $1 -eq 0 ]
|
||||||
%{jredir}/lib/%{archinstall}/IcedTeaPlugin.so
|
then
|
||||||
|
update-alternatives --remove %{javaplugin} \
|
||||||
|
%{_libdir}/IcedTeaPlugin.so
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{jredir}/bin/*
|
%{_prefix}/bin/*
|
||||||
%{jredir}/lib/*
|
%{_libdir}/IcedTeaPlugin.so
|
||||||
%{jredir}/man/man1/*
|
%{_datadir}/applications/*
|
||||||
%{_datadir}/pixmaps/javaws.png
|
%{_datadir}/icedtea-web
|
||||||
%{_datadir}/applications/javaws.desktop
|
%{_datadir}/man/man1/*
|
||||||
%{_datadir}/applications/itweb-settings.desktop
|
%{_datadir}/pixmaps/*
|
||||||
%doc %{_javadocdir}/%{name}
|
|
||||||
%doc NEWS README COPYING
|
%doc NEWS README COPYING
|
||||||
|
|
||||||
|
%files javadoc
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_datadir}/javadoc/%{name}
|
||||||
|
%doc COPYING
|
||||||
|
|
Loading…
Add table
Reference in a new issue