rpms/CodeAnalyst-gui/F-10 CodeAnalyst-gui.desktop, NONE, 1.1 CodeAnalyst-gui.spec, NONE, 1.1 DiffAnalyst-gui.desktop, NONE, 1.1 ca-destdir.patch, NONE, 1.1 ca-disable-dwarf.patch, NONE, 1.1 ca-use-oprofile-default-buffersize.patch, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Suravee Suthikulpanit
suravee at fedoraproject.org
Mon Mar 16 16:38:50 UTC 2009
Author: suravee
Update of /cvs/pkgs/rpms/CodeAnalyst-gui/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv15887/F-10
Modified Files:
.cvsignore sources
Added Files:
CodeAnalyst-gui.desktop CodeAnalyst-gui.spec
DiffAnalyst-gui.desktop ca-destdir.patch
ca-disable-dwarf.patch
ca-use-oprofile-default-buffersize.patch import.log
Log Message:
- Initial revision
--- NEW FILE CodeAnalyst-gui.desktop ---
[Desktop Entry]
Name=CodeAnalyst
GenericName=Profiler
Comment=Open .caw files
Exec=CodeAnalyst
Icon=/usr/share/codeanalyst/CodeAnalyst-gui.xpm
Terminal=false
Type=Application
Categories=Development;Profiling
--- NEW FILE CodeAnalyst-gui.spec ---
Summary: CodeAnalyst is a Performance Analysis Suite for AMD-based System
Name: CodeAnalyst-gui
Version: 2.8.38
Release: 9%{?dist}
License: GPLv2
Group: Development/System
URL: http://developer.amd.com/cpu/CodeAnalyst/codeanalystlinux
Source0: http://ftp-developer.amd.com/user/ssuthiku/CALinuxSnapshots/%{name}-%{version}.tar.gz
Source1: CodeAnalyst-gui.desktop
Source2: DiffAnalyst-gui.desktop
# Use oprofile default cpu/watershed/event-buffer size
# since using stock oprofile daemon/driver
Patch0: ca-use-oprofile-default-buffersize.patch
# This patch allows us to use the DESTDIR variable in install section.
Patch1: ca-destdir.patch
# This patch allows to succesfully build with --disable-dwarf
Patch2: ca-disable-dwarf.patch
Requires: popt
Requires: binutils
Requires: elfutils-libelf
Requires: qt3
Requires: oprofile >= 0.9.4
Requires(pre): shadow-utils
Requires(post): chkconfig
Requires(preun): chkconfig
# This is for /sbin/service
Requires(preun): initscripts
Requires(postun): initscripts
BuildRequires: automake
BuildRequires: libtool
BuildRequires: popt-devel
BuildRequires: binutils-devel
BuildRequires: elfutils-libelf-devel
BuildRequires: qt3-devel >= 3.3
BuildRequires: qt3-designer >= 3.3
BuildRequires: oprofile >= 0.9.4
BuildRequires: desktop-file-utils
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
# Unsupported architecture list due to non-AMD based system.
ExcludeArch: ppc ppc64 s390 s390x alpha alphaev6 sparcv9 sparc64
%description
CodeAnalyst is a performance analysis suite. It provids graphical
utilitys for running Oprofile, and analyzing result on AMD-based systems.
CodeAnalyst includes several features to aid profile analysis such as
inline-function analysis, code-block analysis, and a utility for
profile comparison, DiffAnalayst.
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .ca-use-oprofile-default-buffersize
%patch1 -p0 -b .ca-destdir
%patch2 -p0 -b .ca-disable-dwarf
%build
./autogen.sh
%configure \
--with-oprofile=%{_prefix} \
--disable-oprofile-lib \
--disable-dwarf \
--disable-static
make %{?_smp_mflags} all \
CFLAGS="${RPM_OPT_FLAGS}" \
CXXFLAGS="${RPM_OPT_FLAGS}"
%install
rm -rf ${RPM_BUILD_ROOT}
make -C src/ca/libs install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
make -C src/ca/gui install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
make -C src/ca/diffgui install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
make -C src/ca/utils install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
make -C src/ca/scripts install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
# These are help documents and images which
# the GUIs is using for the "Help" on toolbar.
# GUI will not run correctly if these are not available
make -C doc install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
install -pD -m 755 src/ca/scripts/codeanalyst ${RPM_BUILD_ROOT}%{_initrddir}/codeanalyst
install -pD -m 755 careport.sh ${RPM_BUILD_ROOT}%{_bindir}/careport.sh
# Remove these unnecessary files from the installation
rm -rf ${RPM_BUILD_ROOT}%{_libdir}/lib*.{la,so}
# Install CodeAnalyst-gui.desktop file
desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE1}
# Install DiffAnalyst-gui.desktop file
desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE2}
%clean
rm -rf ${RPM_BUILD_ROOT}
%pre
# Adding "amdca" user group
getent group amdca >/dev/null || /usr/sbin/groupadd -r amdca
exit 0
%post
/sbin/ldconfig
# Install init script
/sbin/chkconfig --add codeanalyst
%preun
# Deinit
if [ $1 = 0 ] ; then
/sbin/service codeanalyst stop >/dev/null 2>&1
/sbin/chkconfig --del codeanalyst
fi
exit 0
%postun
/sbin/ldconfig
if [ "$1" -ge "1" ] ; then
/sbin/service codeanalyst condrestart >/dev/null 2>&1 || :
fi
%files
%defattr(-,root,root,-)
%doc README COPYING INSTALLATION samples
%{_bindir}/CodeAnalyst
%{_bindir}/DiffAnalyst
%{_bindir}/careport.sh
%{_bindir}/capackage.sh
%{_sbindir}/ca_user_manager
%{_sbindir}/ca_oprofile_controller
%{_libdir}/lib*.so.*
%dir %{_datadir}/codeanalyst
%{_datadir}/codeanalyst/*
%{_datadir}/applications/CodeAnalyst-gui.desktop
%{_datadir}/applications/DiffAnalyst-gui.desktop
%{_initrddir}/codeanalyst
%changelog
* Thu Mar 12 2009 - Suravee Suthikulpanit <suravee.suthikulpanit at amd.com>
- 2.8.38-9
- Disable dwarf
- Add patch2
* Wed Mar 11 2009 - Suravee Suthikulpanit <suravee.suthikulpanit at amd.com>
- 2.8.38-8
- Add "INSTALL=install -p" in install section
* Tue Mar 10 2009 - Suravee Suthikulpanit <suravee.suthikulpanit at amd.com>
- 2.8.38-7
- Update Source0 download location.
- Add sample application.
* Mon Mar 9 2009 - Suravee Suthikulpanit <suravee.suthikulpanit at amd.com>
- 2.8.38-6
- Update Source0 download location.
* Thu Mar 2 2009 - Suravee Suthikulpanit <suravee.suthikulpanit at amd.com>
- 2.8.38-5
- Usign "install -p"
- Using /sbin/service in preun and postun
* Thu Mar 2 2009 - Suravee Suthikulpanit <suravee.suthikulpanit at amd.com>
- 2.8.38-4
- Use "configure" macro instead of ./configure
- Add patch1:ca-destdir.patch and make use of DESTDIR variable.
* Thu Mar 2 2009 - Suravee Suthikulpanit <suravee.suthikulpanit at amd.com>
- 2.8.38-3
- Clean up and reorganize the spec file.
- Update "install -D -m 755"
- Explicitely declare /usr/share/codeanalyst directory in files section.
- Remove the echo in install section.
* Thu Feb 18 2009 - Suravee Suthikulpanit <suravee.suthikulpanit at amd.com>
- 2.8.38-2
- Use upstream URL for source
* Thu Feb 12 2009 - Suravee Suthikulpanit <suravee.suthikulpanit at amd.com>
- 2.8.38-1
- Using new buildroot string
- Remove #### partitioning lines
- Fixed the build flag (using $RPM_OPT_FLAGS)
- Change service name from codeanalyst_init to codeanalyst
- Add /var/lock/subsys/codeanalyst lock file for service start/stop
- Add version number to shared libraries (.so files)
* Thu Feb 05 2009 - Suravee Suthikulpanit <suravee.suthikulpanit at amd.com>
- 2.8.38-0
- Add patch0: ca-use-oprofile-default-buffersize.patch
- Clean up to meet Fedora Packaging Guideline
- Bump the version due to changes in the CodeAnalyst.
* Tue Jan 27 2009 - Suravee Suthikulpanit <suravee.suthikulpanit at amd.com>
- 2.8.37-1
- Initial revision
--- NEW FILE DiffAnalyst-gui.desktop ---
[Desktop Entry]
Name=DiffAnalyst
GenericName=Profile Diff Tool
Comment=Open .daw files
Exec=DiffAnalyst
Icon=/usr/share/codeanalyst/DiffAnalyst-gui.xpm
Terminal=false
Type=Application
Categories=Development;Profiling
ca-destdir.patch:
--- NEW FILE ca-destdir.patch ---
--- src/ca/Makefile.am
+++ src/ca/Makefile.am
@@ -8,11 +8,11 @@
install-exec-hook:
@if test -e "scripts/Setup.sh"; then \
- scripts/Setup.sh $(prefix); \
+ scripts/Setup.sh $(DESTDIR)$(prefix); \
fi
uninstall-hook:
@if test -e "scripts/Uninstall.sh"; then \
- scripts/Uninstall.sh $(prefix);\
+ scripts/Uninstall.sh $(DESTDIR)$(prefix);\
fi
--- src/ca/gui/Makefile.am
+++ src/ca/gui/Makefile.am
@@ -226,11 +226,11 @@
$(UIC) -o $@ -impl $*.h $*.ui
install-exec-hook:
- mkdir -p $(prefix)/share/codeanalyst/Configs/DCConfig
- cp -r ../Configs/DCConfig $(prefix)/share/codeanalyst/Configs/
- mkdir -p $(prefix)/share/codeanalyst/Configs/ViewConfig
- cp -r ../Configs/ViewConfig $(prefix)/share/codeanalyst/Configs/
- rm -rf `find $(prefix)/share/codeanalyst/Configs -name .svn`
+ mkdir -p $(DESTDIR)$(prefix)/share/codeanalyst/Configs/DCConfig
+ cp -r ../Configs/DCConfig $(DESTDIR)$(prefix)/share/codeanalyst/Configs/
+ mkdir -p $(DESTDIR)$(prefix)/share/codeanalyst/Configs/ViewConfig
+ cp -r ../Configs/ViewConfig $(DESTDIR)$(prefix)/share/codeanalyst/Configs/
+ rm -rf `find $(DESTDIR)$(prefix)/share/codeanalyst/Configs -name .svn`
uninstall-hook:
- rm -rf $(prefix)/share/codeanalyst/Configs
+ rm -rf $(DESTDIR)$(prefix)/share/codeanalyst/Configs
ca-disable-dwarf.patch:
--- NEW FILE ca-disable-dwarf.patch ---
Index: src/ca/gui/Makefile.am
===================================================================
--- src/ca/gui/Makefile.am (revision 16348)
+++ src/ca/gui/Makefile.am (working copy)
@@ -170,6 +170,7 @@
# ${OPDIR}/libutil/libutil.a \
# ${OPDIR}/libdb/libodb.a
+if enable_dwarf
CodeAnalyst_LDADD= \
${top_srcdir}/${CADIR}/libs/libcabba/libCAbba.la \
${top_srcdir}/${CADIR}/libs/libca/libCA.la \
@@ -181,6 +182,18 @@
-lm -L/usr/X11R6/lib \
-lpopt -liberty -lpthread \
-ldl
+else
+CodeAnalyst_LDADD= \
+ ${top_srcdir}/${CADIR}/libs/libcabba/libCAbba.la \
+ ${top_srcdir}/${CADIR}/libs/libca/libCA.la \
+ ${top_srcdir}/${CADIR}/libs/libopdata/libopdata.la \
+ ${top_srcdir}/${CADIR}/libs/liboutput/lib_tbp_output.la \
+ ${op_libs} \
+ @QT_LIB@ \
+ -lm -L/usr/X11R6/lib \
+ -lpopt -liberty -lpthread \
+ -ldl
+endif
CodeAnalyst_LDFLAGS= -Wl -fPIC --no-undefined @QT_LDFLAGS@
Index: src/ca/libs/libcabba/Makefile.am
===================================================================
--- src/ca/libs/libcabba/Makefile.am (revision 16348)
+++ src/ca/libs/libcabba/Makefile.am (working copy)
@@ -14,8 +14,13 @@
-pipe -Wno-unused -Wno-parentheses ${CA_CXXFLAGS}
libCAbba_la_LDFLAGS = -Wl -fPIC --no-undefined -version-number ${libVersion}
-libCAbba_la_LIBADD = ../libdwarf-20070223/lib/${build_cpu}/libdwarf.a
+if enable_dwarf
+libCAbba_la_LIBADD = ../libdwarf-20070223/lib/${build_cpu}/libdwarf.a
+else
+libCAbba_la_LIBADD =
+endif
+
libCAbba_la_SOURCES = \
disassembler.cpp \
smafile.cpp \
Index: src/ca/diffgui/Makefile.am
===================================================================
--- src/ca/diffgui/Makefile.am (revision 16348)
+++ src/ca/diffgui/Makefile.am (working copy)
@@ -64,6 +64,7 @@
icondir=$(prefix)/share/codeanalyst
icon_DATA=DiffAnalyst-gui.xpm
+if enable_dwarf
DiffAnalyst_LDADD= \
${top_srcdir}/${CADIR}/libs/libca/libCA.la \
${top_srcdir}/${CADIR}/libs/libcabba/libCAbba.la \
@@ -74,7 +75,19 @@
-lm -L/usr/X11R6/lib \
-lpthread \
-ldl
+else
+DiffAnalyst_LDADD= \
+ ${top_srcdir}/${CADIR}/libs/libca/libCA.la \
+ ${top_srcdir}/${CADIR}/libs/libcabba/libCAbba.la \
+ ${top_srcdir}/${CADIR}/libs/liboutput/lib_tbp_output.la \
+ ${op_libs} \
+ @QT_LIB@ \
+ -lm -L/usr/X11R6/lib \
+ -lpthread \
+ -ldl
+endif
+
DiffAnalyst_LDFLAGS= -Wl -fPIC --no-undefined @QT_LDFLAGS@
AM_CPPFLAGS= $(FLAG64) -pipe -DQT_SHARED -DQT_THREAD_SUPPORT \
ca-use-oprofile-default-buffersize.patch:
--- NEW FILE ca-use-oprofile-default-buffersize.patch ---
diff -paurN CodeAnalyst-gui-2.8.38.org/src/ca/gui/atuneoptions.h CodeAnalyst-gui-2.8.38/src/ca/gui/atuneoptions.h
--- CodeAnalyst-gui-2.8.38.org/src/ca/gui/atuneoptions.h 2009-02-02 12:42:55.000000000 -0600
+++ CodeAnalyst-gui-2.8.38/src/ca/gui/atuneoptions.h 2009-02-03 11:41:56.000000000 -0600
@@ -114,9 +114,9 @@ enum ChartDensityShownType
enum BuffDefaultSizeType
{
- OP_DEFAULT_BUFFER_SIZE = 4194304,
- OP_DEFAULT_WATERSHED_SIZE = 131072,
- OP_DEFAULT_CPU_BUFFER_SIZE = 32768
+ OP_DEFAULT_BUFFER_SIZE = 131072,
+ OP_DEFAULT_WATERSHED_SIZE = 32768,
+ OP_DEFAULT_CPU_BUFFER_SIZE = 8192
};
#define OPT_IMPORT_TYPE "/CodeAnalyst/Key/ImportType"
--- NEW FILE import.log ---
CodeAnalyst-gui-2_8_38-9_fc11:F-10:CodeAnalyst-gui-2.8.38-9.fc11.src.rpm:1237221306
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/CodeAnalyst-gui/F-10/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 16 Mar 2009 02:19:48 -0000 1.1
+++ .cvsignore 16 Mar 2009 16:38:20 -0000 1.2
@@ -0,0 +1 @@
+CodeAnalyst-gui-2.8.38.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/CodeAnalyst-gui/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 16 Mar 2009 02:19:48 -0000 1.1
+++ sources 16 Mar 2009 16:38:20 -0000 1.2
@@ -0,0 +1 @@
+2fb7944b3db827360d4d0e4b9355854c CodeAnalyst-gui-2.8.38.tar.gz
More information about the fedora-extras-commits
mailing list