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:
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
|
Reference in New Issue
Block a user