/[pkgs]/devel/CodeAnalyst-gui/CodeAnalyst-gui.spec
ViewVC logotype

Contents of /devel/CodeAnalyst-gui/CodeAnalyst-gui.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Mon Aug 10 13:41:16 2009 UTC (3 months, 2 weeks ago) by scop
Branch: MAIN
CVS Tags: F-12-split, CodeAnalyst-gui-2_8_54-19_fc12
Changes since 1.11: +5 -2 lines
* Mon Aug 10 2009 Ville Skyttä <ville.skytta@iki.fi> - 2.8.54-19
- Use bzipped upstream tarball.

https://www.redhat.com/archives/fedora-devel-list/2009-August/msg00563.html
1 Summary: CodeAnalyst is a Performance Analysis Suite for AMD-based System
2 Name: CodeAnalyst-gui
3 Version: 2.8.54
4 Release: 19%{?dist}
5 License: GPLv2
6 Group: Development/System
7 URL: http://developer.amd.com/cpu/CodeAnalyst/codeanalystlinux
8
9 Source0: http://ftp-developer.amd.com/user/ssuthiku/Releases/%{name}-%{version}.tar.bz2
10 Source1: CodeAnalyst-gui.desktop
11 Source2: DiffAnalyst-gui.desktop
12
13 # Use oprofile default cpu/watershed/event-buffer size
14 # since using stock oprofile daemon/driver
15 Patch0: ca-use-oprofile-default-buffersize.patch
16
17 # Fix OProfile-0.9.5 IBS feature check
18 Patch1: ca-fix-oprofile-ibs-check.patch
19
20 # Fix basename
21 Patch2: ca-fix-basename.patch
22
23 # Force using lbfd
24 Patch3: ca-use-lbfd.patch
25
26 Requires: popt
27 Requires: binutils
28 Requires: elfutils-libelf
29 Requires: qt3
30 Requires: oprofile >= 0.9.4
31 Requires(pre): shadow-utils
32 Requires(post): chkconfig
33 Requires(preun): chkconfig
34 # This is for /sbin/service
35 Requires(preun): initscripts
36 Requires(postun): initscripts
37
38 BuildRequires: automake
39 BuildRequires: libtool
40 BuildRequires: popt-devel
41 BuildRequires: binutils-devel
42 BuildRequires: elfutils-libelf-devel
43 BuildRequires: qt3-devel >= 3.3
44 BuildRequires: qt3-designer >= 3.3
45 BuildRequires: oprofile >= 0.9.4
46 BuildRequires: desktop-file-utils
47 BuildRequires: libdwarf-devel
48
49 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
50
51 # Unsupported architecture list due to non-AMD based system.
52 ExcludeArch: ppc ppc64 s390 s390x alpha alphaev6 sparcv9 sparc64
53
54
55 %description
56 CodeAnalyst is a performance analysis suite. It provids graphical
57 utilitys for running Oprofile, and analyzing result on AMD-based systems.
58 CodeAnalyst includes several features to aid profile analysis such as
59 inline-function analysis, code-block analysis, and a utility for
60 profile comparison, DiffAnalayst.
61
62
63 %prep
64 %setup -q -n %{name}-%{version}
65 %patch0 -p1 -b .ca-use-oprofile-default-buffersize
66 %patch1 -p0 -b .ca-fix-oprofile-ibs-check
67 %patch2 -p1 -b .ca-fix-basename
68 %patch3 -p0 -b .ca-use-lbfd
69
70
71 %build
72 ./autogen.sh
73 %configure \
74 --with-oprofile=%{_prefix} \
75 --disable-oprofile-lib \
76 --disable-static \
77 --with-libdwarf-includes=%{_includedir}/libdwarf \
78 --with-libdwarf-libraries=%{_libdir}
79
80 make %{?_smp_mflags} all \
81 CFLAGS="${RPM_OPT_FLAGS}" \
82 CXXFLAGS="${RPM_OPT_FLAGS}"
83
84
85 %install
86 rm -rf ${RPM_BUILD_ROOT}
87
88 make -C src/ca/libs install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
89 make -C src/ca/gui install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
90 make -C src/ca/diffgui install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
91 make -C src/ca/utils install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
92 make -C src/ca/scripts install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
93
94 # These are help documents and images which
95 # the GUIs is using for the "Help" on toolbar.
96 # GUI will not run correctly if these are not available
97 make -C doc install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
98
99 install -pD -m 755 src/ca/scripts/codeanalyst ${RPM_BUILD_ROOT}%{_initrddir}/codeanalyst
100
101 install -pD -m 755 careport.sh ${RPM_BUILD_ROOT}%{_bindir}/careport.sh
102
103 # Remove these unnecessary files from the installation
104 rm -rf ${RPM_BUILD_ROOT}%{_libdir}/lib*.{la,so}
105
106 # Install CodeAnalyst-gui.desktop file
107 desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE1}
108
109 # Install DiffAnalyst-gui.desktop file
110 desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE2}
111
112
113 %clean
114 rm -rf ${RPM_BUILD_ROOT}
115
116
117 %pre
118 # Adding "amdca" user group
119 getent group amdca >/dev/null || /usr/sbin/groupadd -r amdca
120 exit 0
121
122
123 %post
124 /sbin/ldconfig
125
126 # Install init script
127 /sbin/chkconfig --add codeanalyst
128
129
130 %preun
131 # Deinit
132 if [ $1 = 0 ] ; then
133 /sbin/service codeanalyst stop >/dev/null 2>&1
134 /sbin/chkconfig --del codeanalyst
135 fi
136 exit 0
137
138
139 %postun
140 /sbin/ldconfig
141 if [ "$1" -ge "1" ] ; then
142 /sbin/service codeanalyst condrestart >/dev/null 2>&1 || :
143 fi
144
145
146 %files
147 %defattr(-,root,root,-)
148 %doc README COPYING INSTALLATION samples
149 %{_bindir}/CodeAnalyst
150 %{_bindir}/DiffAnalyst
151 %{_bindir}/careport.sh
152 %{_bindir}/capackage.sh
153 %{_sbindir}/ca_user_manager
154 %{_sbindir}/ca_oprofile_controller
155 %{_libdir}/lib*.so.*
156 %dir %{_datadir}/codeanalyst
157 %{_datadir}/codeanalyst/*
158 %{_datadir}/applications/CodeAnalyst-gui.desktop
159 %{_datadir}/applications/DiffAnalyst-gui.desktop
160 %{_initrddir}/codeanalyst
161
162
163 %changelog
164 * Mon Aug 10 2009 Ville Skyttä <ville.skytta@iki.fi> - 2.8.54-19
165 - Use bzipped upstream tarball.
166
167 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.54-18
168 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
169
170 * Mon Jul 20 2009 - Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
171 - 2.8.54-17
172 - Add Patch1 (ca-fix-oprofile-ibs-check.patch)
173 - Add Patch2 (ca-fix-basename.patch)
174 - Add Patch3 (ca-use-lbfd.patch)
175
176 * Mon Jul 20 2009 - Parag Nemade <panemade@gmail.com>
177 - 2.8.54-16
178 - Rebuild against new libbfd-2.19.51.0.11-24.fc12.so
179
180 * Mon Jul 13 2009 - Parag Nemade <panemade@gmail.com>
181 - 2.8.54-15
182 - Rebuild against new libbfd-2.19.51.0.11-23.fc12.so
183
184 * Wed Jul 8 2009 - Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
185 - 2.8.54-14
186 - Update new release
187 - Update source
188 - Update patch0
189 - Remove patches1-4
190
191 * Tue Jul 7 2009 - Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
192 - 2.8.38-13
193 - Rebuild against new libbfd-2.19.51.0.2-20.fc12.so
194
195 * Thu Jun 18 2009 - Parag Nemade <panemade@gmail.com>
196 - 2.8.38-12
197 - Rebuild against new binutils package to fix rawhide dependency error.
198
199 * Mon Apr 6 2009 - Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
200 - 2.8.38-11
201 - Remove --disable-dwarf from configuration
202 - Add patch ca-configure-libdwarf.patch
203 - Add patch ca-fix-splash.patch
204 - configure to build with libdwarf package
205
206 * Tue Mar 31 2009 - Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
207 - 2.8.38-10
208 - Rebuild with new libbfd-2.19.51.0.2-16.fc11.so
209
210 * Thu Mar 12 2009 - Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
211 - 2.8.38-9
212 - Disable dwarf
213 - Add patch2
214
215 * Wed Mar 11 2009 - Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
216 - 2.8.38-8
217 - Add "INSTALL=install -p" in install section
218
219 * Tue Mar 10 2009 - Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
220 - 2.8.38-7
221 - Update Source0 download location.
222 - Add sample application.
223
224 * Mon Mar 9 2009 - Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
225 - 2.8.38-6
226 - Update Source0 download location.
227
228 * Thu Mar 2 2009 - Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
229 - 2.8.38-5
230 - Usign "install -p"
231 - Using /sbin/service in preun and postun
232
233 * Thu Mar 2 2009 - Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
234 - 2.8.38-4
235 - Use "configure" macro instead of ./configure
236 - Add patch1:ca-destdir.patch and make use of DESTDIR variable.
237
238 * Thu Mar 2 2009 - Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
239 - 2.8.38-3
240 - Clean up and reorganize the spec file.
241 - Update "install -D -m 755"
242 - Explicitely declare /usr/share/codeanalyst directory in files section.
243 - Remove the echo in install section.
244
245 * Thu Feb 18 2009 - Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
246 - 2.8.38-2
247 - Use upstream URL for source
248
249 * Thu Feb 12 2009 - Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
250 - 2.8.38-1
251 - Using new buildroot string
252 - Remove #### partitioning lines
253 - Fixed the build flag (using $RPM_OPT_FLAGS)
254 - Change service name from codeanalyst_init to codeanalyst
255 - Add /var/lock/subsys/codeanalyst lock file for service start/stop
256 - Add version number to shared libraries (.so files)
257
258 * Thu Feb 05 2009 - Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
259 - 2.8.38-0
260 - Add patch0: ca-use-oprofile-default-buffersize.patch
261 - Clean up to meet Fedora Packaging Guideline
262 - Bump the version due to changes in the CodeAnalyst.
263
264 * Tue Jan 27 2009 - Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
265 - 2.8.37-1
266 - Initial revision

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2