2024-01-05 23:49:04 +01:00
|
|
|
%define javaver 8
|
2024-01-05 23:49:04 +01:00
|
|
|
%define archbuild %{_target_cpu}
|
|
|
|
%ifarch %{ix86}
|
2024-01-05 23:49:04 +01:00
|
|
|
%define archbuild i386
|
2024-01-05 23:49:04 +01:00
|
|
|
%endif
|
|
|
|
%ifarch x86_64
|
|
|
|
%define archbuild amd64
|
|
|
|
%endif
|
2024-01-05 23:49:04 +01:00
|
|
|
|
|
|
|
Name: icedtea-web
|
2024-01-05 23:49:05 +01:00
|
|
|
Version: 1.8.8
|
2024-12-05 22:28:15 +01:00
|
|
|
Release: 5mamba
|
2024-01-05 23:49:04 +01:00
|
|
|
Summary: IcedTea Web Start implementation
|
|
|
|
Group: System/Libraries/Java
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-05 23:49:04 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-12-05 22:28:15 +01:00
|
|
|
URL: https://github.com/AdoptOpenJDK/IcedTea-Web
|
2024-01-05 23:49:04 +01:00
|
|
|
Source: https://github.com/AdoptOpenJDK/IcedTea-Web/archive/icedtea-web-%{version}.tar.gz
|
2024-12-05 22:28:15 +01:00
|
|
|
Patch0: icedtea-web-1.8.8-upstream-changes.patch
|
|
|
|
Patch1: icedtea-web-1.8.8-remove-dunce.patch
|
|
|
|
Patch2: icedtea-web-1.8.8-no-pack200.patch
|
|
|
|
Patch3: icedtea-web-1.8.8-bash-completion.patch
|
|
|
|
Patch4: icedtea-web-1.8.8-disable-pluginjar.patch
|
|
|
|
Patch5: icedtea-web-1.8.8-javadoc-param.patch
|
|
|
|
Patch6: icedtea-web-1.8.8-untranslated-man-pages.patch
|
2024-01-05 23:49:04 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 23:49:04 +01:00
|
|
|
BuildRequires: desktop-file-utils
|
2024-12-05 22:28:15 +01:00
|
|
|
BuildRequires: java-openjdk17
|
2024-01-05 23:49:05 +01:00
|
|
|
BuildRequires: java-junit
|
2024-01-05 23:49:04 +01:00
|
|
|
BuildRequires: java-hamcrest
|
|
|
|
BuildRequires: java-tagsoup
|
|
|
|
BuildRequires: objectweb-asm
|
2024-01-05 23:49:05 +01:00
|
|
|
BuildRequires: rustc
|
2024-12-05 22:28:15 +01:00
|
|
|
Requires: java-openjdk17-runtime
|
2024-01-05 23:49:05 +01:00
|
|
|
Obsoletes: icedtea-web-plugin <= 1.8.8-1mamba
|
2024-01-05 23:49:04 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The IcedTea-Web project provides a Free Software web browser plugin for running applets written in the Java programming language and an implementation of Java Web Start, originally based on the NetX project.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: IcedTea Web API Documentation
|
|
|
|
Group: Documentation
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
The IcedTea Web API documentation.
|
|
|
|
|
2024-01-05 23:49:05 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-05 23:49:04 +01:00
|
|
|
%prep
|
2024-01-05 23:49:04 +01:00
|
|
|
%setup -q -n IcedTea-Web-%{name}-%{version}
|
2024-12-05 22:28:15 +01:00
|
|
|
%patch 0 -p1 -b .upstream-changes
|
|
|
|
%patch 1 -p1 -b .remove-dunce
|
|
|
|
%patch 2 -p1 -b .no-pack200
|
|
|
|
%patch 3 -p1 -b .bash-completion
|
|
|
|
%patch 4 -p1 -b .disable-pluginjar
|
|
|
|
%patch 5 -p1 -b .javadoc-param
|
|
|
|
%patch 6 -p1 -b .untranslated-man-pages
|
|
|
|
|
|
|
|
# Remove applet support
|
|
|
|
rm -rf plugin netx/sun netx/net/sourceforge/jnlp/{NetxPanel,runtime/RhinoBasedPacEvaluator,util/WindowsDesktopEntry}.java
|
|
|
|
|
|
|
|
# Remove unused sources
|
|
|
|
rm -rf tests win-installer
|
|
|
|
|
2024-01-05 23:49:05 +01:00
|
|
|
./autogen.sh
|
2024-01-05 23:49:04 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
unset JAVA_HOME CLASSPATH
|
|
|
|
./configure \
|
2024-12-05 22:28:15 +01:00
|
|
|
--with-pkgversion=openmamba-%{release}-%{_arch} \
|
2024-01-05 23:49:05 +01:00
|
|
|
--prefix=%{_datadir}/icedtea-web \
|
2024-01-05 23:49:04 +01:00
|
|
|
--datadir=%{_datadir} \
|
2024-01-05 23:49:05 +01:00
|
|
|
--datarootdir=%{_datadir} \
|
2024-01-05 23:49:04 +01:00
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--docdir=%{_docdir}/icedtea-web \
|
|
|
|
--htmldir=%{_javadocdir}/icedtea-web \
|
2024-12-05 22:28:15 +01:00
|
|
|
--with-jdk-home=%{_jvmdir}/java-17 \
|
|
|
|
--with-jre-home=%{_jvmdir}/jre-17 \
|
|
|
|
--disable-native-plugin \
|
|
|
|
--disable-pluginjar \
|
|
|
|
--enable-shell-launchers \
|
2024-01-05 23:49:05 +01:00
|
|
|
--with-itw-libs=DISTRIBUTION
|
|
|
|
|
2024-01-05 23:49:04 +01:00
|
|
|
%make
|
2024-01-05 23:49:04 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
make -j1 DESTDIR=%{buildroot} install
|
|
|
|
|
|
|
|
install -d -m 755 %{buildroot}%{_libdir}/mozilla/plugins
|
|
|
|
|
|
|
|
install -D -m0644 javaws.desktop %{buildroot}%{_datadir}/applications/javaws.desktop
|
|
|
|
install -D -m0644 itweb-settings.desktop %{buildroot}%{_datadir}/applications/itweb-settings.desktop
|
2024-12-05 22:28:15 +01:00
|
|
|
install -D -m0644 itweb-settings.desktop %{buildroot}%{_datadir}/applications/policyeditor.desktop
|
2024-01-05 23:49:04 +01:00
|
|
|
install -D -m0644 javaws.png %{buildroot}%{_datadir}/pixmaps/javaws.png
|
|
|
|
|
2024-12-05 22:28:15 +01:00
|
|
|
# Install MetaInfo file for firefox
|
|
|
|
install -D -p -m 0644 metadata/%{name}.metainfo.xml $RPM_BUILD_ROOT%{_metainfodir}/%{name}.metainfo.xml
|
|
|
|
# Install MetaInfo file for javaws
|
|
|
|
install -D -p -m 0644 metadata/%{name}-javaws.appdata.xml $RPM_BUILD_ROOT%{_metainfodir}/%{name}-javaws.metainfo.xml
|
|
|
|
|
|
|
|
# FIXME: provided in bash-completion package
|
|
|
|
rm -f %{buildroot}%{_datadir}/bash-completion/completions/javaws
|
|
|
|
|
2024-01-05 23:49:04 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%pre
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
# legacy cleanups
|
2024-01-05 23:49:05 +01:00
|
|
|
/usr/sbin/update-alternatives --remove javaws %{_jvmdir}/java-8-openjdk-%{arch}/jre/bin/javaws 2>/dev/null
|
|
|
|
/usr/sbin/update-alternatives --remove itweb-settings %{_jvmdir}/java-8-openjdk-%{arch}/jre/bin/itweb-settings 2>/dev/null
|
|
|
|
/usr/sbin/update-alternatives --remove libjavaplugin.so %{_jvmdir}/jre-8-openjdk/lib/%{archbuild}/IcedTeaPlugin.so 2>/dev/null
|
2024-01-05 23:49:04 +01:00
|
|
|
fi
|
2024-01-05 23:49:05 +01:00
|
|
|
:
|
2024-01-05 23:49:04 +01:00
|
|
|
|
|
|
|
%post
|
2024-12-05 22:28:15 +01:00
|
|
|
if [ $1 -ge 1 ]; then
|
2024-01-05 23:49:04 +01:00
|
|
|
[ -L /usr/bin/javaws -a "`readlink /usr/bin/javaws`" != "/etc/alternatives/javaws" ] &&
|
|
|
|
rm -f /usr/bin/javaws 2>/dev/null
|
2024-01-05 23:49:05 +01:00
|
|
|
/usr/sbin/update-alternatives --install %{_bindir}/javaws javaws %{_datadir}/icedtea-web/bin/javaws 71
|
2024-01-05 23:49:04 +01:00
|
|
|
|
|
|
|
[ -L /usr/bin/itweb-settings -a "`readlink /usr/bin/itweb-settings`" != "/etc/alternatives/itweb-settings" ] &&
|
|
|
|
rm -f /usr/bin/itweb-settings 2>/dev/null
|
2024-01-05 23:49:05 +01:00
|
|
|
/usr/sbin/update-alternatives --install %{_bindir}/itweb-settings itweb-settings %{_datadir}/icedtea-web/bin/itweb-settings 71
|
2024-01-05 23:49:04 +01:00
|
|
|
|
2024-12-05 22:28:15 +01:00
|
|
|
/usr/sbin/update-alternatives --install %{_bindir}/policyeditor policyeditor %{_datadir}/icedtea-web/bin/policyeditor 71
|
|
|
|
fi
|
|
|
|
|
2024-01-05 23:49:04 +01:00
|
|
|
update-desktop-database %{_datadir}/applications &> /dev/null || :
|
|
|
|
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor
|
|
|
|
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
|
|
|
|
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
|
|
|
|
fi
|
2024-01-05 23:49:05 +01:00
|
|
|
:
|
2024-01-05 23:49:04 +01:00
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
[ -L /usr/bin/javaws -a "`readlink /usr/bin/javaws`" != "/etc/alternatives/javaws" ] &&
|
|
|
|
rm -f /usr/bin/javaws
|
2024-01-05 23:49:05 +01:00
|
|
|
/usr/sbin/update-alternatives --remove javaws %{_datadir}/icedtea-web/bin/javaws
|
2024-01-05 23:49:04 +01:00
|
|
|
|
|
|
|
[ -L /usr/bin/itweb-settings -a "`readlink /usr/bin/itweb-settings`" != "/etc/alternatives/itweb-settings" ] &&
|
|
|
|
rm -f /usr/bin/itweb-settings
|
2024-01-05 23:49:05 +01:00
|
|
|
/usr/sbin/update-alternatives --remove javaws %{_datadir}/icedtea-web/bin/itweb-settings
|
2024-01-05 23:49:04 +01:00
|
|
|
|
2024-12-05 22:28:15 +01:00
|
|
|
/usr/sbin/update-alternatives --remove policyeditor %{_datadir}/icedtea-web/bin/policyeditor
|
|
|
|
|
2024-01-05 23:49:04 +01:00
|
|
|
fi
|
2024-01-05 23:49:05 +01:00
|
|
|
:
|
2024-01-05 23:49:04 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
[ -L /usr/bin/javaws -a "`readlink /usr/bin/javaws`" != "/etc/alternatives/javaws" ] && rm -f /usr/bin/javaws
|
2024-01-05 23:49:05 +01:00
|
|
|
/usr/sbin/update-alternatives --remove javaws %{_datadir}/icedtea-web/bin/javaws
|
2024-01-05 23:49:04 +01:00
|
|
|
|
|
|
|
[ -L /usr/bin/itweb-settings -a "`readlink /usr/bin/itweb-settings`" != "/etc/alternatives/itweb-settings" ] &&
|
|
|
|
rm -f /usr/bin/itweb-settings
|
2024-01-05 23:49:05 +01:00
|
|
|
/usr/sbin/update-alternatives --remove javaws %{_datadir}/icedtea-web/bin/itweb-settings
|
2024-12-05 22:28:15 +01:00
|
|
|
/usr/sbin/update-alternatives --remove policyeditor %{_datadir}/icedtea-web/bin/policyeditor
|
2024-01-05 23:49:04 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
update-desktop-database %{_datadir}/applications &> /dev/null || :
|
|
|
|
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor
|
|
|
|
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
|
|
|
|
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
2024-01-05 23:49:05 +01:00
|
|
|
%posttrans
|
2024-01-05 23:49:04 +01:00
|
|
|
if [ $1 -ge 1 ]; then
|
2024-01-05 23:49:05 +01:00
|
|
|
/usr/sbin/update-alternatives --auto javaws
|
|
|
|
/usr/sbin/update-alternatives --auto itweb-settings
|
2024-12-05 22:28:15 +01:00
|
|
|
/usr/sbin/update-alternatives --auto policyeditor
|
2024-01-05 23:49:04 +01:00
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_datadir}/icedtea-web
|
|
|
|
%{_datadir}/icedtea-web/*
|
|
|
|
%{_datadir}/applications/itweb-settings.desktop
|
|
|
|
%{_datadir}/applications/javaws.desktop
|
2024-12-05 22:28:15 +01:00
|
|
|
%{_datadir}/applications/policyeditor.desktop
|
|
|
|
%{_metainfodir}/icedtea-web-javaws.metainfo.xml
|
|
|
|
%{_metainfodir}/icedtea-web.metainfo.xml
|
|
|
|
%{_datadir}/bash-completion/completions/*
|
2024-01-05 23:49:04 +01:00
|
|
|
%{_datadir}/pixmaps/javaws.png
|
2024-01-05 23:49:05 +01:00
|
|
|
%{_mandir}/man1/icedtea-web.1*
|
2024-01-05 23:49:04 +01:00
|
|
|
%{_mandir}/man1/itweb-settings.1*
|
2024-01-05 23:49:04 +01:00
|
|
|
%{_mandir}/man1/javaws.1*
|
2024-01-05 23:49:04 +01:00
|
|
|
%{_mandir}/man1/policyeditor.1*
|
2024-01-05 23:49:04 +01:00
|
|
|
%doc AUTHORS COPYING
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_javadocdir}/icedtea-web
|
|
|
|
|
|
|
|
%changelog
|
2024-12-05 22:28:15 +01:00
|
|
|
* Thu Dec 05 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.8-5mamba
|
|
|
|
- removed build requirement for eclipse-ecj, rebuilt with java 17 (patches from Fedora)
|
|
|
|
|
2024-01-05 23:49:05 +01:00
|
|
|
* Wed Oct 25 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.8-4mamba
|
|
|
|
- rebuild with only necessary builddeps and deps
|
|
|
|
|
2024-01-05 23:49:05 +01:00
|
|
|
* Thu Jun 09 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.8-3mamba
|
|
|
|
- more fixes and legacy cleanups to alternatives
|
|
|
|
|
|
|
|
* Wed Jun 08 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.8-2mamba
|
|
|
|
- fix alternatives for javaws and itweb-settings symlinks in bindir
|
|
|
|
|
|
|
|
* Tue Jun 07 2022 Automatic Build System <autodist@mambasoft.it> 1.8.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:49:05 +01:00
|
|
|
* Wed Jun 30 2021 Automatic Build System <autodist@mambasoft.it> 1.8.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:49:05 +01:00
|
|
|
* Tue Mar 02 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.6-1mamba
|
|
|
|
- update to 1.8.6
|
|
|
|
|
|
|
|
* Fri Feb 05 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.4-1mamba
|
|
|
|
- update to 1.8.4
|
|
|
|
|
2024-01-05 23:49:04 +01:00
|
|
|
* Sun Mar 15 2020 Automatic Build System <autodist@mambasoft.it> 1.8.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:49:04 +01:00
|
|
|
* Mon Jun 24 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.1-2mamba
|
|
|
|
- rebuilt passing --with-chromium
|
|
|
|
|
|
|
|
* Wed Jun 12 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.1-1mamba
|
|
|
|
- update to 1.8.1
|
|
|
|
|
2024-01-05 23:49:04 +01:00
|
|
|
* Wed Sep 19 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.1-1mamba
|
|
|
|
- update to 1.7.1
|
|
|
|
|
2024-01-05 23:49:04 +01:00
|
|
|
* Wed Feb 03 2016 Automatic Build System <autodist@mambasoft.it> 1.6.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:49:04 +01:00
|
|
|
* Mon Sep 14 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.1-1mamba
|
|
|
|
- update to 1.6.1
|
|
|
|
|
2024-01-05 23:49:04 +01:00
|
|
|
* Tue Jul 28 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6-3mamba
|
|
|
|
- fix java installation dir (add -%{_arch})
|
|
|
|
|
2024-01-05 23:49:04 +01:00
|
|
|
* Sun Jul 26 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6-2mamba
|
|
|
|
- plugin: remove requirement for java-openjdk-runtime = 7
|
|
|
|
|
|
|
|
* Tue May 19 2015 Automatic Build System <autodist@mambasoft.it> 1.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:49:04 +01:00
|
|
|
* Thu Nov 27 2014 Automatic Build System <autodist@mambasoft.it> 1.5.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:49:04 +01:00
|
|
|
* Sat Aug 16 2014 Automatic Build System <autodist@mambasoft.it> 1.5.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 23:49:04 +01:00
|
|
|
* Wed Jun 18 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5-3mamba
|
|
|
|
- don't require directory %{_libdir}/mozilla/plugins
|
|
|
|
|
2024-01-05 23:49:04 +01:00
|
|
|
* Wed Jun 11 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5-2mamba
|
|
|
|
- fix plugin symlink
|
|
|
|
|
2024-01-05 23:49:04 +01:00
|
|
|
* Wed Jun 04 2014 Automatic Build System <autodist@mambasoft.it> 1.5-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 23:49:04 +01:00
|
|
|
* Tue Oct 01 2013 Automatic Build System <autodist@mambasoft.it> 1.4.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Mar 14 2011 gil <puntogil@libero.it> 1.0.1-2mamba
|
|
|
|
- rebuilt with new java-openjdk
|
|
|
|
|
|
|
|
* Sat Mar 12 2011 gil <puntogil@libero.it> 1.0.1-1mamba
|
|
|
|
- package created by autospec
|