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

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2