|
@@ -8,7 +8,7 @@
|
|
|
|
|
|
# resolve circular dependency between sinjdoc and java-1.5.0-gcj.
|
|
# resolve circular dependency between sinjdoc and java-1.5.0-gcj.
|
|
# define to 1 if sinjdoc has not been built yet.
|
|
# define to 1 if sinjdoc has not been built yet.
|
|
-%define bootstrap 1
|
|
+%define bootstrap 0
|
|
|
|
|
|
# the plugin subpackage is disabled because libgcj's security
|
|
# the plugin subpackage is disabled because libgcj's security
|
|
# infrastructure isn't ready to run untrusted applets.
|
|
# infrastructure isn't ready to run untrusted applets.
|
|
@@ -17,7 +17,7 @@
|
|
# the naming suffix for the gcc rpms we require (e.g., gcc4, libgcj4)
|
|
# the naming suffix for the gcc rpms we require (e.g., gcc4, libgcj4)
|
|
%define gccsuffix %{nil}
|
|
%define gccsuffix %{nil}
|
|
# the version-release string for the gcj rpms we require
|
|
# the version-release string for the gcj rpms we require
|
|
-%define gccver 4.4.3-9
|
|
+%define gccver 4.8.2-1
|
|
# the version string for the java-gcj-compat release we require
|
|
# the version string for the java-gcj-compat release we require
|
|
%define jgcver 1.0.79
|
|
%define jgcver 1.0.79
|
|
|
|
|
|
@@ -56,7 +56,7 @@
|
|
Name: %{name}
|
|
Name: %{name}
|
|
Summary: JPackage runtime compatibility layer for GCJ
|
|
Summary: JPackage runtime compatibility layer for GCJ
|
|
Version: %{javaver}.%{buildver}
|
|
Version: %{javaver}.%{buildver}
|
|
-Release: 36%{?_dist_release}
|
|
+Release: 37%{?_dist_release}
|
|
Group: Development/Languages
|
|
Group: Development/Languages
|
|
# The LICENSE file has the classpath exception, but nothing in this package
|
|
# The LICENSE file has the classpath exception, but nothing in this package
|
|
# seems to use or even need it.
|
|
# seems to use or even need it.
|
|
@@ -81,7 +81,7 @@ BuildRequires: openssl-devel
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-devel
|
|
%if !%{bootstrap}
|
|
%if !%{bootstrap}
|
|
# required for javadoc
|
|
# required for javadoc
|
|
-BuildRequires: java-1.6.0-openjdk-devel
|
|
+BuildRequires: java-1.7.0-openjdk-devel
|
|
%endif
|
|
%endif
|
|
BuildRequires: unzip
|
|
BuildRequires: unzip
|
|
# required for abs2rel
|
|
# required for abs2rel
|
|
@@ -110,10 +110,10 @@ Requires(postun): alternatives
|
|
Requires(postun): libgcj%{gccsuffix}
|
|
Requires(postun): libgcj%{gccsuffix}
|
|
Requires(postun): findutils
|
|
Requires(postun): findutils
|
|
# triggerin requires alternatives to install tool alternatives
|
|
# triggerin requires alternatives to install tool alternatives
|
|
-Requires(triggerin): alternatives
|
|
+Requires: alternatives
|
|
-Requires(triggerin): libgcj%{gccsuffix}
|
|
+Requires: libgcj%{gccsuffix}
|
|
# triggerin requires jpackage-utils for abs2rel
|
|
# triggerin requires jpackage-utils for abs2rel
|
|
-Requires(triggerin): jpackage-utils >= 1.7.5-1
|
|
+Requires: jpackage-utils >= 1.7.5-1
|
|
|
|
|
|
# standard JPackage base provides
|
|
# standard JPackage base provides
|
|
Provides: jre-%{javaver}-%{origin} = %{version}-%{release}
|
|
Provides: jre-%{javaver}-%{origin} = %{version}-%{release}
|
|
@@ -151,7 +151,7 @@ links to simulate a JPackage-compatible runtime environment with GCJ.
|
|
|
|
|
|
%package devel
|
|
%package devel
|
|
Summary: JPackage development compatibility layer for GCJ
|
|
Summary: JPackage development compatibility layer for GCJ
|
|
-Group: Development/Tools
|
|
+Group: Development/Languages
|
|
|
|
|
|
# FIXME: require libgcj-src for tools.jar symlink
|
|
# FIXME: require libgcj-src for tools.jar symlink
|
|
Requires: libgcj%{gccsuffix}-src >= %{gccver}
|
|
Requires: libgcj%{gccsuffix}-src >= %{gccver}
|
|
@@ -170,11 +170,11 @@ Requires(post): gcc-java
|
|
# postun requires alternatives to uninstall tool alternatives
|
|
# postun requires alternatives to uninstall tool alternatives
|
|
Requires(postun): alternatives
|
|
Requires(postun): alternatives
|
|
# triggerin requires gij to retrieve gcc version
|
|
# triggerin requires gij to retrieve gcc version
|
|
-Requires(triggerin): libgcj%{gccsuffix}
|
|
+Requires: libgcj%{gccsuffix}
|
|
# triggerin requires gcj to retrieve gcj header file locations
|
|
# triggerin requires gcj to retrieve gcj header file locations
|
|
-Requires(triggerin): gcc-java
|
|
+Requires: gcc-java
|
|
# triggerin requires jpackage-utils for abs2rel
|
|
# triggerin requires jpackage-utils for abs2rel
|
|
-Requires(triggerin): jpackage-utils >= 1.7.5-1
|
|
+Requires: jpackage-utils >= 1.7.5-1
|
|
|
|
|
|
# standard JPackage devel provides
|
|
# standard JPackage devel provides
|
|
Provides: java-sdk-%{javaver}-%{origin} = %{version}
|
|
Provides: java-sdk-%{javaver}-%{origin} = %{version}
|
|
@@ -200,12 +200,12 @@ Summary: Source files for libgcj
|
|
Summary: libgcj のソースファイル
|
|
Summary: libgcj のソースファイル
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
|
|
|
|
-Requires: %{name} = %{version}-%{release}
|
|
+Requires: %{name} = %{version}-%{release}
|
|
-Requires: libgcj%{gccsuffix}-src >= %{gccver}
|
|
+Requires: libgcj%{gccsuffix}-src >= %{gccver}
|
|
Requires(post): libgcj%{gccsuffix}
|
|
Requires(post): libgcj%{gccsuffix}
|
|
-Requires(triggerin): libgcj%{gccsuffix}
|
|
+Requires: libgcj%{gccsuffix}
|
|
# triggerin requires jpackage-utils for abs2rel
|
|
# triggerin requires jpackage-utils for abs2rel
|
|
-Requires(triggerin): jpackage-utils >= 1.7.5-1
|
|
+Requires: jpackage-utils >= 1.7.5-1
|
|
|
|
|
|
# java-gcj-compat src provides
|
|
# java-gcj-compat src provides
|
|
Provides: java-1.4.2-gcj-compat-src > 1.4.2.0-40jpp.111
|
|
Provides: java-1.4.2-gcj-compat-src > 1.4.2.0-40jpp.111
|
|
@@ -286,15 +286,17 @@ plugin for applets.
|
|
%setup -q -n java-gcj-compat-%{jgcver}
|
|
%setup -q -n java-gcj-compat-%{jgcver}
|
|
|
|
|
|
# fix cert.pem path
|
|
# fix cert.pem path
|
|
-sed -i -e 's:/etc/pki/tls:/usr/share/ssl:g' generate-cacerts.pl
|
|
+#sed -i -e 's:/etc/pki/tls:/usr/share/ssl:g' generate-cacerts.pl
|
|
|
|
|
|
%build
|
|
%build
|
|
# Print kernel version in logs.
|
|
# Print kernel version in logs.
|
|
uname -a
|
|
uname -a
|
|
-%configure --disable-symlinks --with-arch-directory=%{_arch} \
|
|
+%configure \
|
|
- --with-os-directory=linux
|
|
+ --disable-symlinks \
|
|
|
|
+ --with-arch-directory=%{_arch} \
|
|
|
|
+ --with-os-directory=linux \
|
|
|
|
+ --with-security-directory=%{_sysconfdir}/java/security/security.d
|
|
make
|
|
make
|
|
-# --with-security-directory=%{_sysconfdir}/java/security/security.d
|
|
|
|
|
|
|
|
# the python compiler encodes the source file's timestamp in the .pyc
|
|
# the python compiler encodes the source file's timestamp in the .pyc
|
|
# and .pyo headers. since aotcompile.py is generated by configure,
|
|
# and .pyo headers. since aotcompile.py is generated by configure,
|
|
@@ -546,7 +548,7 @@ fi
|
|
} || :
|
|
} || :
|
|
|
|
|
|
%postun
|
|
%postun
|
|
-if [ $1 -eq 0 ]; then
|
|
+if ! [ -e "%{jrebindir}/java" ]; then
|
|
GIJ_VERSION=$(gij%{gccsuffix} --version | head -n 2 | tail -n 1 \
|
|
GIJ_VERSION=$(gij%{gccsuffix} --version | head -n 2 | tail -n 1 \
|
|
| awk '{ print $5 }')
|
|
| awk '{ print $5 }')
|
|
/sbin/update-alternatives --remove java %{jrebindir}/java
|
|
/sbin/update-alternatives --remove java %{jrebindir}/java
|
|
@@ -565,7 +567,7 @@ fi
|
|
| awk '{ print $5 }')
|
|
| awk '{ print $5 }')
|
|
|
|
|
|
# Rebuild the list of security providers in classpath.security
|
|
# Rebuild the list of security providers in classpath.security
|
|
- suffix=security/classpath.security-$GIJ_VERSION
|
|
+ suffix=security/classpath.security
|
|
secfiles="/usr/lib/$suffix /usr/lib64/$suffix"
|
|
secfiles="/usr/lib/$suffix /usr/lib64/$suffix"
|
|
|
|
|
|
for secfile in $secfiles
|
|
for secfile in $secfiles
|
|
@@ -651,14 +653,13 @@ fi
|
|
} || :
|
|
} || :
|
|
|
|
|
|
%postun devel
|
|
%postun devel
|
|
-if [ $1 -eq 0 ]
|
|
+if ! [ -e "%{sdkbindir}/javac" ]; then
|
|
-then
|
|
|
|
/sbin/update-alternatives --remove javac %{sdkbindir}/javac
|
|
/sbin/update-alternatives --remove javac %{sdkbindir}/javac
|
|
/sbin/update-alternatives --remove java_sdk_%{origin} %{_jvmdir}/%{sdklnk}
|
|
/sbin/update-alternatives --remove java_sdk_%{origin} %{_jvmdir}/%{sdklnk}
|
|
/sbin/update-alternatives --remove java_sdk_%{javaver} %{_jvmdir}/%{sdklnk}
|
|
/sbin/update-alternatives --remove java_sdk_%{javaver} %{_jvmdir}/%{sdklnk}
|
|
- /sbin/update-alternatives --auto javac
|
|
+# /sbin/update-alternatives --auto javac
|
|
- /sbin/update-alternatives --auto java_sdk_%{origin}
|
|
+# /sbin/update-alternatives --auto java_sdk_%{origin}
|
|
- /sbin/update-alternatives --auto java_sdk_%{javaver}
|
|
+# /sbin/update-alternatives --auto java_sdk_%{javaver}
|
|
fi
|
|
fi
|
|
|
|
|
|
%triggerin src -- libgcj%{gccsuffix}-src >= %{gccver}
|
|
%triggerin src -- libgcj%{gccsuffix}-src >= %{gccver}
|
|
@@ -672,23 +673,6 @@ fi
|
|
} || :
|
|
} || :
|
|
|
|
|
|
|
|
|
|
-%if !%{bootstrap}
|
|
|
|
-%post javadoc
|
|
|
|
-/sbin/update-alternatives \
|
|
|
|
- --install %{_javadocdir}/java javadocdir %{_javadocdir}/%{name} %{priority}
|
|
|
|
-
|
|
|
|
-# fix broken symlink if it's there
|
|
|
|
-if [ ! -f %{_javadocdir}/java ] ; then
|
|
|
|
- /sbin/update-alternatives --auto javadocdir
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
-%postun javadoc
|
|
|
|
-if [ $1 -eq 0 ]; then
|
|
|
|
- /sbin/update-alternatives --remove javadocdir %{_javadocdir}/%{name}
|
|
|
|
- /sbin/update-alternatives --auto javadocdir
|
|
|
|
-fi
|
|
|
|
-%endif
|
|
|
|
-
|
|
|
|
%if %{enable_plugin}
|
|
%if %{enable_plugin}
|
|
%triggerin plugin -- libgcj%{gccsuffix} >= %{gccver}
|
|
%triggerin plugin -- libgcj%{gccsuffix} >= %{gccver}
|
|
{
|
|
{
|
|
@@ -700,8 +684,7 @@ fi
|
|
} || :
|
|
} || :
|
|
|
|
|
|
%postun plugin
|
|
%postun plugin
|
|
-if [ $1 -eq 0 ]
|
|
+if [ $1 -eq 0 ]; then
|
|
-then
|
|
|
|
GIJ_VERSION=$(gij%{gccsuffix} --version | head -n 2 | tail -n 1 \
|
|
GIJ_VERSION=$(gij%{gccsuffix} --version | head -n 2 | tail -n 1 \
|
|
| awk '{ print $5 }')
|
|
| awk '{ print $5 }')
|
|
/sbin/update-alternatives --remove libjavaplugin.so \
|
|
/sbin/update-alternatives --remove libjavaplugin.so \
|
|
@@ -839,6 +822,9 @@ fi
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Nov 14 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.5.0.0-37
|
|
|
|
+- rebuilt on current VineSeed
|
|
|
|
+
|
|
* Sun Sep 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwka.com> - 1.5.0.0-36
|
|
* Sun Sep 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwka.com> - 1.5.0.0-36
|
|
- updated %%post, %%postun section to run update-alternatives --auto
|
|
- updated %%post, %%postun section to run update-alternatives --auto
|
|
- updated classpath.security handling
|
|
- updated classpath.security handling
|