From 0ccb6d06e966d1d4970d46ad28a7e3ad524e4c9f Mon Sep 17 00:00:00 2001 From: Omair Majid Date: Thu, 27 Mar 2014 17:09:04 -0400 Subject: [PATCH] Include version information in desktop files Move desktop files from tarball to top level source --- generate_tarballs.sh | 4 ++-- java-1.8.0-openjdk.spec | 24 +++++++++++++++++------- jconsole.desktop.in | 10 ++++++++++ policytool.desktop.in | 10 ++++++++++ 4 files changed, 39 insertions(+), 9 deletions(-) create mode 100644 jconsole.desktop.in create mode 100644 policytool.desktop.in diff --git a/generate_tarballs.sh b/generate_tarballs.sh index 1a7229b..577e98b 100755 --- a/generate_tarballs.sh +++ b/generate_tarballs.sh @@ -9,8 +9,8 @@ rm -f icedtea7.tar.gz pushd icedtea7-${VERSION} # desktop files -tar cvzf desktop-files.tar.gz jconsole.desktop policytool.desktop -mv desktop-files.tar.gz ../ +mv jconsole.desktop ../jconsole.desktop.in +mv policytool.desktop ../policytool.desktop.in # tapsets mv tapset/hotspot{,-1.8.0}.stp.in || exit 1 diff --git a/java-1.8.0-openjdk.spec b/java-1.8.0-openjdk.spec index 569fe62..e2ded41 100644 --- a/java-1.8.0-openjdk.spec +++ b/java-1.8.0-openjdk.spec @@ -130,7 +130,7 @@ Name: java-%{javaver}-%{origin} Version: %{javaver}.%{updatever} -Release: 1.0.%{buildver}%{?dist} +Release: 2.%{buildver}%{?dist} # java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons, # and this change was brought into RHEL-4. java-1.5.0-ibm packages # also included the epoch in their virtual provides. This created a @@ -163,11 +163,13 @@ Source3: java-abrt-launcher.in # Systemtap tapsets. Zipped up to keep it small. Source8: systemtap-tapset.tar.gz -# .desktop files. Zipped up to keep it small. -Source9: desktop-files.tar.gz + +# Desktop files. Adapated from IcedTea. +Source9: jconsole.desktop.in +Source10: policytool.desktop.in # nss configuration file -Source10: nss.cfg +Source11: nss.cfg # Removed libraries that we link instead Source12: remove-intree-libraries.sh @@ -460,8 +462,12 @@ done %endif -# Extract desktop files -tar xzf %{SOURCE9} +# Prepare desktop files +for file in %{SOURCE9} %{SOURCE10} ; do + OUTPUT_FILE=`basename $file | sed -e s:\.in$::g` + sed -e s:@JAVA_HOME@:%{_jvmdir}/%{sdkdir}:g $file > $OUTPUT_FILE + sed -i -e s:@VERSION@:%{version}-%{release}.%{_arch}:g $OUTPUT_FILE +done %build # How many cpu's do we have? @@ -651,7 +657,7 @@ popd # Install nss.cfg -install -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}/lib/security/ +install -m 644 %{SOURCE11} $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}/lib/security/ # Install Javadoc documentation. @@ -1091,6 +1097,10 @@ exit 0 %{_jvmdir}/%{jredir}/lib/accessibility.properties %changelog +* Fri Mar 28 2014 Omair Majid - 1:1.8.0.0-2.b132 +- Include version information in desktop files +- Move desktop files from tarball to top level source + * Tue Mar 25 2014 Omair Majid - 1:1.8.0.0-1.0.b132 - Switch from java8- style provides to java- style - Bump priority to reflect java version diff --git a/jconsole.desktop.in b/jconsole.desktop.in new file mode 100644 index 0000000..2a3bbdb --- /dev/null +++ b/jconsole.desktop.in @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=OpenJDK 8 Monitoring & Management Console +Comment=Monitor and manage OpenJDK applications for @VERSION@ +Exec=@JAVA_HOME@/bin/jconsole +Icon=java +Terminal=false +Type=Application +StartupWMClass=sun-tools-jconsole-JConsole +Categories=Development;Monitor;Java; +Version=1.0 diff --git a/policytool.desktop.in b/policytool.desktop.in new file mode 100644 index 0000000..0c2f454 --- /dev/null +++ b/policytool.desktop.in @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=OpenJDK 8 Policy Tool +Comment=Manage OpenJDK policy files (@VERSION@) +Exec=@JAVA_HOME@/bin/policytool +Icon=java +Terminal=false +Type=Application +StartupWMClass=sun-security-tools-PolicyTool +Categories=Development;Java; +Version=1.0