forked from KDAB/GammaRay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgammaray.spec
253 lines (230 loc) · 9.36 KB
/
gammaray.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
Name: gammaray
Version: 2.2.1
Release: 1
Summary: An introspection tool for Qt applications
Source: %{name}-%{version}.tar.gz
Url: http://github.com/KDAB/GammaRay
Group: Development/Tools
License: GPL-2.0+
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Vendor: Klaralvdalens Datakonsult AB (KDAB)
Packager: Klaralvdalens Datakonsult AB (KDAB) <info@kdab.com>
%define rel 2.2
%define sover 2.2.1
%define qtver qt4.8
%define this_arch %(uname -p)
%if %{this_arch} == "athlon"
%define this_arch i686
%endif
%define abi %{qtver}-%{this_arch}
%if %{defined suse_version}
BuildRequires: libqt4-devel libQtWebKit-devel cmake graphviz-devel update-desktop-files libkde4-devel
%if 0%{?suse_version} >= 1220
BuildRequires: vtk-devel libxml2-devel
%endif
# missing dependency for VTK in openSUSE Factory
%if 0%{?suse_version} > 1230
BuildRequires: python-devel
%endif
%if 0%{?suse_version} > 1310
# dependency ambiguity for vtk-java needed by vtk-devel in openSUSE > 13.1
#!BuildIgnore: java-1_7_0-openjdk-bootstrap-headless
#!BuildIgnore: java-1_7_0-openjdk-headless
%endif
Requires: graphviz
%endif
%if %{defined fedora}
BuildRequires: gcc-c++ qt-devel qtwebkit-devel cmake desktop-file-utils graphviz-devel kdelibs-devel
%if 0%{?fedora} >= 17
BuildRequires: vtk-devel
%endif
# dependency ambiguity for vtk-java needed by vtk-devel in Fedora >= 19
%if 0%{?fedora} >= 19
BuildRequires: java-1.8.0-openjdk
%endif
# for pod2man
%if 0%{?fedora} >= 19
BuildRequires: perl-podlators
%endif
%if 0%{?fedora} >= 20
BuildRequires: hdf5-devel libxml2-devel
%endif
Requires: graphviz
%endif
%description
GammaRay is a tool for examining the internals of a Qt application
and to some extent also manipulate it. GammaRay uses injection
methods to hook into an application at runtime and provide access to
a wide variety of interesting information. It provides easy ways of
navigating through the complex internal structures you find in some
Qt frameworks, such as QGraphicsView, model/view, QTextDocument,
state machines and more.
Authors:
--------
The GammaRay Team <gammaray-interest@kdab.com>
%package kde4-plugins
Summary: GammaRay plug-ins to introspect KDE4 applications
Group: Development/Tools
Requires: %{name} = %{version}
%description kde4-plugins
Plug-ins for the GammaRay introspection tool to debug KDE4 applications,
such as a KJob tracker.
%if 0%{?suse_version} >= 1220 || 0%{?fedora} >= 17
%package vtk-plugins
Summary: GammaRay visualization plug-ins using VTK
Group: Development/Tools
Requires: %{name} = %{version}
%description vtk-plugins
Visualization plug-ins for the GammaRay introspection tool that depend on VTK.
%endif
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}
%description devel
The %{name}-devel package contains libraries and header files for
developing GammaRay plug-ins.
%prep
%setup -q
%build
%if %{defined fedora}
%cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
%else
%if "%{_lib}"=="lib64"
cmake . -DLIB_SUFFIX=64 -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
%else
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
%endif
%endif
%__make %{?_smp_mflags}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%install
%make_install
%if %{defined suse_version}
%suse_update_desktop_file GammaRay Development Qt Debugger
%endif
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_prefix}/share/applications/GammaRay.desktop
%dir %{_prefix}/share/appdata/
%{_prefix}/share/appdata/GammaRay.appdata.xml
%{_prefix}/share/icons/hicolor
%{_prefix}/share/doc/gammaray
%{_mandir}/man1/gammaray.1.gz
%{_bindir}/gammaray
%dir %{_libdir}/gammaray/libexec/
%{_libdir}/gammaray/libexec/gammaray-client
%{_libdir}/gammaray/libexec/gammaray-launcher
%{_libdir}/libgammaray_common-%{abi}.so.%{sover}
%{_libdir}/libgammaray_core-%{abi}.so.%{sover}
%{_libdir}/libgammaray_ui-%{abi}.so.%{sover}
%dir %{_libdir}/gammaray/
%dir %{_libdir}/gammaray/%{rel}/
%dir %{_libdir}/gammaray/%{rel}/%{abi}/
%{_libdir}/gammaray/%{rel}/%{abi}/libgammaray_widget_export_actions.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_probe.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_inprocessui.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_codecbrowser_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_codecbrowser.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_codecbrowser_ui_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_codecbrowser_ui.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_fontbrowser_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_fontbrowser.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_fontbrowser_ui_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_fontbrowser_ui.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_selectionmodelinspector_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_selectionmodelinspector.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_selectionmodelinspector_ui_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_selectionmodelinspector_ui.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_signalmonitor.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_signalmonitor.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_signalmonitor_ui.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_signalmonitor_ui.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_statemachineviewer_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_statemachineviewer.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_statemachineviewer_ui_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_statemachineviewer_ui.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_timertop_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_timertop.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_timertop_ui_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_timertop_ui.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_actioninspector_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_actioninspector.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_widgetinspector_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_widgetinspector.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_sceneinspector_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_sceneinspector.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_styleinspector_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_styleinspector.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_scriptenginedebugger_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_scriptenginedebugger.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_webinspector_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_webinspector.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_webinspector_ui_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_webinspector_ui.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/styles/
%files kde4-plugins
%defattr(-,root,root)
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_kjobtracker_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_kjobtracker.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_kjobtracker_ui_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_kjobtracker_ui.desktop
%if 0%{?suse_version} >= 1220 || 0%{?fedora} >= 17
%files vtk-plugins
%defattr(-,root,root)
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_objectvisualizer_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_objectvisualizer.desktop
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_objectvisualizer_ui_plugin.so
%{_libdir}/gammaray/%{rel}/%{abi}/gammaray_objectvisualizer_ui.desktop
%endif
%files devel
%defattr(-,root,root)
%{_includedir}/gammaray
%{_libdir}/libgammaray_common-%{abi}.so
%{_libdir}/libgammaray_core-%{abi}.so
%{_libdir}/libgammaray_ui-%{abi}.so
%{_libdir}/cmake/GammaRay/
%changelog
* Tue Jan 27 2015 Allen Winter <allen.winter@kdab.com> 2.2.1
2.2.1 final
* Fri Oct 31 2014 Allen Winter <allen.winter@kdab.com> 2.2.0
2.2.0 final
* Thu Oct 23 2014 Allen Winter <allen.winter@kdab.com> 2.1.2
2.1.2 final
* Sat Aug 30 2014 Allen Winter <allen.winter@kdab.com> 2.1.1
2.1.1 final
* Fri Jun 27 2014 Allen Winter <allen.winter@kdab.com> 2.1.0
2.1.0 final
* Thu Jun 26 2014 Allen Winter <allen.winter@kdab.com> 2.0.98
2.1.0 release candidate 1
* Fri Apr 18 2014 Allen Winter <allen.winter@kdab.com> 2.0.2
2.0.2 final
* Fri Feb 28 2014 Allen Winter <allen.winter@kdab.com> 2.0.1
2.0.1 final
* Fri Jan 17 2014 Allen Winter <allen.winter@kdab.com> 2.0.0
2.0.0 final
* Sat Jan 11 2014 Allen Winter <allen.winter@kdab.com> 1.9.96
Second 2.0 beta release
* Fri Dec 20 2013 Allen Winter <allen.winter@kdab.com> 1.9.95
First 2.0 beta release
* Thu Oct 03 2013 Allen Winter <allen.winter@kdab.com> 1.3.2
Second 1.3 bugfix release
* Tue Apr 30 2013 Allen Winter <allen.winter@kdab.com> 1.3.1
First 1.3 bugfix release
* Sun Jan 27 2013 Allen Winter <allen.winter@kdab.com> 1.3.0
Update to latest release
* Wed Jun 27 2012 Allen Winter <allen.winter@kdab.com> 1.1.98
- Rename version to use all integers
* Tue Jun 26 2012 Allen Winter <allen.winter@kdab.com> 1.2beta
- Update to beta release
* Wed Jun 20 2012 Allen Winter <allen.winter@kdab.com> 1.2prebeta
- Update to prebeta release
* Tue Jan 10 2012 Kevin Ottens <kevin.ottens@kdab.com> 1.1.0
- Update to latest release
* Sun Jan 8 2012 Kevin Ottens <kevin.ottens@kdab.com> 1.0.98.20120108
- Grabbing a new snapshot
* Wed Dec 21 2011 Kevin Ottens <kevin.ottens@kdab.com> 1.0.1
- First packaging