forked from pool/opa-fmgui
Accepting request 436356 from SUSE:SLE-12-SP2:GA
OBS-URL: https://build.opensuse.org/request/show/436356 OBS-URL: https://build.opensuse.org/package/show/science:HPC/opa-fmgui?expand=0&rev=1
This commit is contained in:
commit
d65a50ecad
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
BIN
antlr-2.7.7.jar
(Stored with Git LFS)
Normal file
BIN
antlr-2.7.7.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
dom4j-1.6.1.jar
(Stored with Git LFS)
Normal file
BIN
dom4j-1.6.1.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
15
gradle-use_local_repo.patch
Normal file
15
gradle-use_local_repo.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git a/build.gradle b/build.gradle
|
||||
index 78d2c13..a50b106 100644
|
||||
--- a/build.gradle
|
||||
+++ b/build.gradle
|
||||
@@ -7,7 +7,9 @@ allprojects {
|
||||
sourceCompatibility = 1.7
|
||||
|
||||
repositories {
|
||||
- mavenCentral()
|
||||
+ flatDir {
|
||||
+ dirs System.env.GRADLE_LIB_DIR
|
||||
+ }
|
||||
}
|
||||
|
||||
configurations{
|
3
gritty.jar
Normal file
3
gritty.jar
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9666e064624860454ee95aa7997ad805920969a6b4bae3aaea140adea92eac21
|
||||
size 80030
|
BIN
hibernate-commons-annotations-4.0.4.Final.jar
(Stored with Git LFS)
Normal file
BIN
hibernate-commons-annotations-4.0.4.Final.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
hibernate-core-4.3.5.Final.jar
(Stored with Git LFS)
Normal file
BIN
hibernate-core-4.3.5.Final.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
hibernate-entitymanager-4.3.5.Final.jar
(Stored with Git LFS)
Normal file
BIN
hibernate-entitymanager-4.3.5.Final.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
hibernate-jpa-2.1-api-1.0.0.Final.jar
(Stored with Git LFS)
Normal file
BIN
hibernate-jpa-2.1-api-1.0.0.Final.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
hsqldb-2.3.2.jar
(Stored with Git LFS)
Normal file
BIN
hsqldb-2.3.2.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
jandex-1.1.0.Final.jar
(Stored with Git LFS)
Normal file
BIN
jandex-1.1.0.Final.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
javahelp-2.0.05.jar
(Stored with Git LFS)
Normal file
BIN
javahelp-2.0.05.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
javassist-3.18.1-GA.jar
(Stored with Git LFS)
Normal file
BIN
javassist-3.18.1-GA.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
javax.mail-1.5.2.jar
(Stored with Git LFS)
Normal file
BIN
javax.mail-1.5.2.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
jboss-logging-3.1.3.GA.jar
(Stored with Git LFS)
Normal file
BIN
jboss-logging-3.1.3.GA.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
jboss-logging-annotations-1.2.0.Beta1.jar
(Stored with Git LFS)
Normal file
BIN
jboss-logging-annotations-1.2.0.Beta1.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
jboss-transaction-api_1.2_spec-1.0.0.Final.jar
(Stored with Git LFS)
Normal file
BIN
jboss-transaction-api_1.2_spec-1.0.0.Final.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
jcommon-1.0.21.jar
(Stored with Git LFS)
Normal file
BIN
jcommon-1.0.21.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
jfreechart-1.0.17.jar
(Stored with Git LFS)
Normal file
BIN
jfreechart-1.0.17.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
3
jgraphx-3.3.1.1.jar
Normal file
3
jgraphx-3.3.1.1.jar
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:de821194dbf6abbc27911cb0c91bad8977d0d700169afe3618b0e71f2b2384a6
|
||||
size 625182
|
3
jsch-0.1.51.jar
Normal file
3
jsch-0.1.51.jar
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:900d813ce39a20c1a75aa9ca9b0a468f93039a6993a7a9db4a16289dbaeb0596
|
||||
size 263829
|
3
log4j-1.2.14.jar
Normal file
3
log4j-1.2.14.jar
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e3bff9ab64a09b1ac2800f3b5fb1e3d99728064acb6dd3924938507638a404fb
|
||||
size 367444
|
BIN
log4j-over-slf4j-1.7.7.jar
(Stored with Git LFS)
Normal file
BIN
log4j-over-slf4j-1.7.7.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
logback-classic-1.1.2.jar
(Stored with Git LFS)
Normal file
BIN
logback-classic-1.1.2.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
logback-core-1.1.2.jar
(Stored with Git LFS)
Normal file
BIN
logback-core-1.1.2.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
3
mbassador-1.1.9.jar
Normal file
3
mbassador-1.1.9.jar
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7fb6887ca3a2febaee7e4d4a940d4a899bba148145ba1733902779abab18ecdb
|
||||
size 78366
|
16
opa-fmgui-desktopfile-without-binary.patch
Normal file
16
opa-fmgui-desktopfile-without-binary.patch
Normal file
@ -0,0 +1,16 @@
|
||||
diff --git a/install/fmgui.desktop b/install/fmgui.desktop
|
||||
index b871a44..743b635 100644
|
||||
--- a/install/fmgui.desktop
|
||||
+++ b/install/fmgui.desktop
|
||||
@@ -2,8 +2,8 @@
|
||||
Encoding=UTF-8
|
||||
GenericName=Fabric Manager GUI
|
||||
Name=Fabric Manager GUI
|
||||
-Exec=/usr/local/bin/fmgui
|
||||
+Exec=fmgui
|
||||
Icon=fmgui
|
||||
Terminal=false
|
||||
Type=Application
|
||||
-Categories=Application;Fabric;System;
|
||||
\ No newline at end of file
|
||||
+Categories=Application;Fabric;System;
|
13
opa-fmgui-fix-detection-of-OpenJDK.patch
Normal file
13
opa-fmgui-fix-detection-of-OpenJDK.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff -urN opa-fmgui-orig/install/fmgui.sh opa-fmgui/install/fmgui.sh
|
||||
--- opa-fmgui-orig/install/fmgui.sh 2016-09-12 08:01:52.027654361 -0400
|
||||
+++ opa-fmgui/install/fmgui.sh 2016-09-12 08:04:05.636122357 -0400
|
||||
@@ -7,7 +7,7 @@
|
||||
if [ $DEBUG -eq 1 ]; then
|
||||
echo Checking JVM $2
|
||||
fi
|
||||
-JVER=`$2 -version 2>&1 | grep "java version" | awk '{print substr($3, 2, 3);}' | sed -e 's;\.;0;g'`
|
||||
+JVER=`$2 -version 2>&1 | grep "version" | awk '{print substr($3, 2, 3);}' | sed -e 's;\.;0;g'`
|
||||
if [ $JVER ]; then
|
||||
if [ $JVER -ge $JAVA_REQ ]; then
|
||||
if [ $DEBUG -eq 1 ]; then
|
||||
|
2720
opa-fmgui-intel-manifest-license.patch
Normal file
2720
opa-fmgui-intel-manifest-license.patch
Normal file
File diff suppressed because it is too large
Load Diff
66
opa-fmgui.changes
Normal file
66
opa-fmgui.changes
Normal file
@ -0,0 +1,66 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 4 18:35:02 CEST 2016 - ndas@suse.de
|
||||
|
||||
- Applied patch from Intel to search for 'version' instead of 'java version'
|
||||
so the openJDK can be detected at runtime(bsc#989769).
|
||||
[+ opa-fmgui-fix-detection-of-OpenJDK.patch]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 27 12:39:49 CEST 2016 - ndas@suse.de
|
||||
|
||||
- Applied patch from Intel and modified the spec file as required(bsc#989769).
|
||||
[+opa-fmgui-intel-manifest-license.patch]
|
||||
|
||||
* opa-fmgui/opa-fmgui.spec
|
||||
--------------------------
|
||||
- Updated Version/Release numbers to match opa-fmgui
|
||||
- Changed app folder and name to match installed application name "opa-fmgui"
|
||||
- Removed references to /usr/local/bin; only using /usr/bin
|
||||
- Installed jar files in lib/ folder with correct permissions for all users, not just root
|
||||
- Added reference to patch file to make corrections
|
||||
|
||||
* opa-fmgui/install/fmgui.sh
|
||||
----------------------------
|
||||
- Updated to reference the new folder /usr/share/java/opa-fmgui where the fmgui.jar is stored
|
||||
|
||||
* opa-fmgui/src/META-INF/MANIFEST.MF
|
||||
------------------------------------
|
||||
- Updated to correct reference to Gritty library (gritty.jar not gritty-0.02.jar)
|
||||
|
||||
* opa-fmgui/util/postsetup.sh
|
||||
-----------------------------
|
||||
- Fabric.directory was copied from /usr/local/share/desktop-directories, which doesn't exist. Now copying from /usr/share/desktop-directories
|
||||
|
||||
* License Files
|
||||
---------------
|
||||
- Added all 3rd party license files since their jar files are being packaged as required by Intel Legal
|
||||
gritty_license.txt
|
||||
hibernate_license.txt
|
||||
hsqldb_license.txt
|
||||
javahelp_license.html
|
||||
javamail_license.txt
|
||||
jfreechart_license.txt
|
||||
jgraphx_license.txt
|
||||
jsch_license.txt
|
||||
logback_license.txt
|
||||
mbassador_license.txt
|
||||
slf4j_license.txt
|
||||
swingx_license.txt
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 21 13:50:53 CEST 2016 - ndas@suse.de
|
||||
|
||||
- Corrected the version in spec file(bsc#989769).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 1 15:42:13 CEST 2016 - ndas@suse.de
|
||||
|
||||
- Added mlocate and jre as depended package(bsc#982579).
|
||||
- Fixed desktopfile-without-binary rpm warning.
|
||||
[+opa-fmgui-desktopfile-without-binary.patch]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 12 15:17:02 UTC 2016 - nirmoy.das@suse.com
|
||||
|
||||
- Initial package version 10_0_0_0_2) for fate#319231
|
||||
|
165
opa-fmgui.spec
Normal file
165
opa-fmgui.spec
Normal file
@ -0,0 +1,165 @@
|
||||
#
|
||||
# spec file for package opa-fmgui
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 Intel Corporation
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define name opa-fmgui
|
||||
%define appdir .
|
||||
%define appfolder opa-fmgui
|
||||
%define appjar fmgui.jar
|
||||
%define _binary_payload w9.gzdio
|
||||
|
||||
Name: opa-fmgui
|
||||
Version: 10.0.0.0
|
||||
Release: 0
|
||||
Summary: Fabric Manager Graphical User Interface
|
||||
License: BSD-3-Clause
|
||||
Group: Applications/System
|
||||
Url: http://www.intel.com/
|
||||
Source0: opa-fmgui.tar.gz
|
||||
Source1: antlr-2.7.7.jar
|
||||
Source2: dom4j-1.6.1.jar
|
||||
Source3: gritty.jar
|
||||
Source4: hibernate-commons-annotations-4.0.4.Final.jar
|
||||
Source5: hibernate-core-4.3.5.Final.jar
|
||||
Source6: hibernate-entitymanager-4.3.5.Final.jar
|
||||
Source7: hibernate-jpa-2.1-api-1.0.0.Final.jar
|
||||
Source8: hsqldb-2.3.2.jar
|
||||
Source9: jandex-1.1.0.Final.jar
|
||||
Source10: javahelp-2.0.05.jar
|
||||
Source11: javassist-3.18.1-GA.jar
|
||||
Source12: javax.mail-1.5.2.jar
|
||||
Source13: jboss-logging-3.1.3.GA.jar
|
||||
Source14: jboss-logging-annotations-1.2.0.Beta1.jar
|
||||
Source15: jboss-transaction-api_1.2_spec-1.0.0.Final.jar
|
||||
Source16: jcommon-1.0.21.jar
|
||||
Source17: jfreechart-1.0.17.jar
|
||||
Source18: jgraphx-3.3.1.1.jar
|
||||
Source19: jsch-0.1.51.jar
|
||||
Source20: log4j-1.2.14.jar
|
||||
Source21: log4j-over-slf4j-1.7.7.jar
|
||||
Source22: logback-classic-1.1.2.jar
|
||||
Source23: logback-core-1.1.2.jar
|
||||
Source24: mbassador-1.1.9.jar
|
||||
Source25: slf4j-api-1.7.7.jar
|
||||
Source26: swingx-all-1.6.4.jar
|
||||
|
||||
Patch1: gradle-use_local_repo.patch
|
||||
Patch2: opa-fmgui-desktopfile-without-binary.patch
|
||||
Patch3: opa-fmgui-intel-manifest-license.patch
|
||||
Patch4: opa-fmgui-fix-detection-of-OpenJDK.patch
|
||||
|
||||
BuildRequires: ant
|
||||
BuildRequires: gradle
|
||||
BuildRequires: jre >= 1.7
|
||||
Requires: jre >= 1.7
|
||||
Requires: mlocate
|
||||
BuildRequires: libgnome
|
||||
BuildRequires: openssl
|
||||
BuildRequires: update-desktop-files
|
||||
BuildRequires: wget
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
FMGUI is the Fabric Manager Graphical User Interface. It can be run by invoking the Bash
|
||||
script fmgui.
|
||||
|
||||
%prep
|
||||
%setup -q -n opa-fmgui
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
|
||||
%build
|
||||
GRADLE_LIB_DIR=$RPM_SOURCE_DIR
|
||||
export GRADLE_LIB_DIR
|
||||
gradle copyDeps build --info
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_javadir}/%{appfolder}
|
||||
mkdir -p %{buildroot}%{_javadir}/%{appfolder}/lib
|
||||
mkdir -p %{buildroot}%{_javadir}/%{appfolder}/help
|
||||
mkdir -p %{buildroot}%{_javadir}/%{appfolder}/util
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/xdg/menus/applications-merged
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
||||
mkdir -p %{buildroot}/%{_datadir}/doc/%{name}/
|
||||
mkdir -p %{buildroot}/%{_datadir}/doc/%{name}/licenses
|
||||
mkdir -p %{buildroot}/%{_datadir}/icons/hicolor
|
||||
mkdir -p %{buildroot}/%{_datadir}/applications
|
||||
mkdir -p %{buildroot}%{_datadir}/desktop-directories
|
||||
|
||||
install -m 755 %{appdir}/%{appjar} %{buildroot}%{_javadir}/%{appfolder}
|
||||
|
||||
cp %{appdir}/LICENSE %{buildroot}/%{_datadir}/doc/%{name}/
|
||||
cp %{appdir}/THIRD-PARTY-README %{buildroot}/%{_datadir}/doc/%{name}/
|
||||
cp %{appdir}/Pre-Release_Notice_v.2.pdf %{buildroot}/%{_datadir}/doc/%{name}/
|
||||
cp %{appdir}/Third_Party_Copyright_Notices_and_Licenses.docx %{buildroot}/%{_datadir}/doc/%{name}/
|
||||
cp -r %{appdir}/licenses %{buildroot}/%{_datadir}/doc/%{name}/
|
||||
|
||||
install -m 644 -pDt %{buildroot}/%{_javadir}/%{appfolder}/lib %{appdir}/lib/*
|
||||
cp -a %{appdir}/target/help/* %{buildroot}%{_javadir}/%{appfolder}/help
|
||||
cp %{appdir}/help/*.html %{buildroot}%{_javadir}/%{appfolder}/help
|
||||
#cp %{appdir}/help/LICENSE %{buildroot}%{_javadir}/%{appfolder}/help
|
||||
install -m 755 %{appdir}/util/fmguiclear.sh %{buildroot}%{_javadir}/%{appfolder}/util
|
||||
install -m 755 %{appdir}/util/postsetup.sh %{buildroot}%{_javadir}/%{appfolder}/util
|
||||
cp -a %{appdir}/util/ClearFMGUICache.desktop %{buildroot}%{_javadir}/%{appfolder}/util
|
||||
|
||||
install -m 755 %{appdir}/install/fmgui.sh %{buildroot}%{_bindir}/opa-fmgui
|
||||
|
||||
#for fmgui.desktop
|
||||
cp -a %{appdir}/install/fmguivars.sh %{buildroot}/%{_sysconfdir}/profile.d
|
||||
cp -a %{appdir}/install/fmgui.desktop %{buildroot}
|
||||
cp -a %{appdir}/install/Fabric.directory %{buildroot}%{_datadir}/desktop-directories
|
||||
cp -a %{appdir}/install/images/* %{buildroot}/%{_datadir}/icons/hicolor
|
||||
cp -a %{appdir}/install/Fabric.menu %{buildroot}/%{_sysconfdir}/xdg/menus/applications-merged
|
||||
|
||||
%suse_update_desktop_file -i fmgui Utility Filesystem
|
||||
|
||||
rm %{buildroot}/fmgui.desktop
|
||||
|
||||
%post
|
||||
%desktop_database_post
|
||||
%icon_theme_cache_post
|
||||
|
||||
%postun
|
||||
%desktop_database_postun
|
||||
%icon_theme_cache_postun
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_sysconfdir}/xdg/menus
|
||||
%dir %{_datadir}/desktop-directories
|
||||
%dir %{_datadir}/doc/opa-fmgui
|
||||
%dir %{_sysconfdir}/xdg/menus/applications-merged
|
||||
|
||||
%{_javadir}/%{appfolder}
|
||||
%{_bindir}/opa-fmgui
|
||||
%{_datadir}/applications/*.desktop
|
||||
%{_datadir}/doc/%{name}/*
|
||||
%{_datadir}/desktop-directories/Fabric.directory
|
||||
%{_datadir}/icons/hicolor
|
||||
|
||||
%license %{_datadir}/doc/opa-fmgui/LICENSE
|
||||
%license %{_datadir}/doc/opa-fmgui/licenses/*
|
||||
|
||||
%config %{_sysconfdir}/xdg/menus/applications-merged/Fabric.menu
|
||||
%config %{_sysconfdir}/profile.d/fmguivars.sh
|
||||
|
||||
%changelog
|
3
opa-fmgui.tar.gz
Normal file
3
opa-fmgui.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:74c27d9b44ca9140a90617872729608be9a887420dac7df0098f07baaadaecc7
|
||||
size 68269331
|
BIN
slf4j-api-1.7.7.jar
(Stored with Git LFS)
Normal file
BIN
slf4j-api-1.7.7.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
3
swingx-all-1.6.4.jar
Normal file
3
swingx-all-1.6.4.jar
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5bc8bb080fdf3ef968485ae90f7877fbcfc05b2cfe4753824acb5a36a1ee2036
|
||||
size 1487304
|
Loading…
Reference in New Issue
Block a user