This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: SystemTapGui v1.0-0 is available
- From: anithra <anithra at linux dot vnet dot ibm dot com>
- To: William Cohen <wcohen at redhat dot com>
- Cc: systemtap <systemtap at sources dot redhat dot com>
- Date: Fri, 31 Oct 2008 21:22:12 +0530
- Subject: Re: SystemTapGui v1.0-0 is available
- References: <4900543B.1020302@linux.vnet.ibm.com> <4909DE8C.7070404@redhat.com>
William Cohen wrote:
anithra wrote:
A new version of SystemTapGui is available.
http://sourceforge.net/project/showfiles.php?group_id=169234&package_id=193079
Details regarding the SystemTapGui project can be found at
http://stapgui.sourceforge.net/
Hi Anithra,
I have had some experience packaging RPMs for Fedora. I would like to
take a look at the source RPM. If you could make the source RPM
available, I could take a review it this weekend.
-Will
Hi Will,
As per our discussion, I'm attaching the spec file that was used to
build the rpms.
I've uploaded the SystemTapGui-1.0-0.src.rpm to Sourceforge -
https://sourceforge.net/project/showfiles.php?group_id=169234&package_id=193079&release_id=635299
The source tar ball is also available on Sourceforge.
I will be out of office from Nov 2nd - 16th and will not have access to
email. If there are any problems/queries i will reply as soon as i get back.
Thanks for taking a look,
Regards,
Anithra.
# -*- RPM-SPEC -*-
Summary: Stap gui
Name: SystemTapGui
Version: 1.0
Release: 0
License: EPL
Group: Development/Tools
URL: http://www.systemtap.org
Requires: java
# Note that following the Eclipse Releng process we do not distribute a
# real .tar.gz file. Instead, you must build it by hand. The way to do
# this is to check out org.eclipse.cdt.releng. Edit maps/changelog.map
# to refer to the# tag appropriate to the release. Then run the "fetch"
# target to fetch everything. Package this up, such that the tar
# file unpacks a new "org.eclipse.changelog.releng" directory with all the
# contents. See the java command to see how to invoke
# things in the releng build.xml.
Source0: SystemTapGui-1.0.tar.bz2
BuildRequires: java >= 0:1.5
BuildRoot: %{_tmppath}/%{name}-%{version}
BuildArch: x86_64
AutoReqProv: no
%description
Systemtap GUI is a tool being developed to assist in writing SystemTap
scripts and viewing kernel performance. It is both an Integrated
Development Environment for the SystemTap scripting language, as well as
a data visualization and analysis tool.
%prep
%setup -q
%build
export JAVA_HOME=%{java_home}
export PATH=%{java_bin}:/usr/bin:$PATH
%install
rm -rf ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
mkdir -p ${RPM_BUILD_ROOT}/%{_bindir}
mkdir -p ${RPM_BUILD_ROOT}/%{_docdir}/%{name}
mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/%{name}/server
mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/%{name}/client
#mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/icons
#mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/applications
cp -a stapguiclient/stapgui-client ${RPM_BUILD_ROOT}/%{_datadir}/%{name}/client/
cp -a stapguiclient/stapgui-client.ini ${RPM_BUILD_ROOT}/%{_datadir}/%{name}/client/
cp -a README ${RPM_BUILD_ROOT}/%{_docdir}/%{name}/
#cp -a StapGui.png ${RPM_BUILD_ROOT}/%{_datadir}/icons/
for i in stapguiclient/configuration stapguiclient/plugins; do
cp -a $i $RPM_BUILD_ROOT/%{_datadir}/%{name}/client/
done
chmod -R 777 $RPM_BUILD_ROOT/%{_datadir}/%{name}/client/
cd stapguiserver
for i in *; do
cp -a $i $RPM_BUILD_ROOT/%{_datadir}/%{name}/server/
done
cd ..
install -m0755 stapguiclient/stapgui-client.sh ${RPM_BUILD_ROOT}/%{_bindir}/stapgui-client
install -m0744 stapguiserver/stapgui-server ${RPM_BUILD_ROOT}/%{_bindir}/stapgui-server
#desktop-file-install \
#--dir ${RPM_BUILD_ROOT}/%{_datadir}/applications \
#--add-category Application \
#stapgui-client.desktop
%debug_package %{nil}
%clean
rm -rf ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
rm -rf ${RPM_BUILD_ROOT}/%{_bindir}/stapgui-client
rm -rf ${RPM_BUILD_ROOT}/%{_bindir}/stapgui-server
rm -rf ${RPM_BUILD_ROOT}/%{_docdir}/%{name}
%files
%defattr(-,root,root)
%{_bindir}/*
%{_datadir}/*
%{_docdir}/*
%changelog