packages: ipmiview/ipmiview.spec (NEW) - initial

arekm arekm at pld-linux.org
Thu Dec 1 22:36:45 CET 2011


Author: arekm                        Date: Thu Dec  1 21:36:45 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial

---- Files affected:
packages/ipmiview:
   ipmiview.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/ipmiview/ipmiview.spec
diff -u /dev/null packages/ipmiview/ipmiview.spec:1.1
--- /dev/null	Thu Dec  1 22:36:45 2011
+++ packages/ipmiview/ipmiview.spec	Thu Dec  1 22:36:40 2011
@@ -0,0 +1,71 @@
+# $Revision$, $Date$
+Summary:	Remote Server Monitoring and Management and KVM-over-IP
+Name:		ipmiview
+Version:	2.9.2
+Release:	0.1
+License:	unknown
+Group:		Applications/System
+Source0:	ftp://ftp.supermicro.com/utility/IPMIView/Jar/IPMIView20-Class_v%{version}_Build111110.zip
+# Source0-md5:	561c4091e1062868ddf73e863ca051de
+URL:		http://www.supermicro.com/
+BuildRequires:	file
+Requires:	jre-X11
+ExclusiveArch:	%{ix86} %{x8664}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Remote Server Monitoring and Management and KVM-over-IP GUI.
+
+%prep
+%setup -q -c
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}}
+
+want=32-bit
+%ifarch %{x8664}
+want=64-bit
+%endif
+
+for f in *.so; do
+	file "$f" | grep -qi "${want}" && install -m755 "$f" $RPM_BUILD_ROOT%{_libdir}/%{name}
+done
+
+install *.jar *.jnilib $RPM_BUILD_ROOT%{_libdir}/%{name}
+
+echo "#!/bin/sh
+cd \${TMPDIR:-/tmp}
+exec java -Djava.library.path=%{_libdir}/%{name} -jar %{_libdir}/%{name}/IPMIView20.jar" \
+	> $RPM_BUILD_ROOT%{_bindir}/ipmiview
+
+echo "#!/bin/sh
+cd \${TMPDIR:-/tmp}
+exec java -Djava.library.path=%{_libdir}/%{name} -jar %{_libdir}/%{name}/TrapView.jar" \
+	> $RPM_BUILD_ROOT%{_bindir}/trapview
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc *.txt *.pdf
+%attr(755,root,root) %{_bindir}/ipmiview
+%attr(755,root,root) %{_bindir}/trapview
+%dir %{_libdir}/%{name}
+%{_libdir}/%{name}/*.jar
+%{_libdir}/%{name}/*.jnilib
+%attr(755,root,root) %{_libdir}/%{name}/*.so
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/12/01 21:36:40  arekm
+- initial
+
================================================================


More information about the pld-cvs-commit mailing list