forked from KDAB/GammaRay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gammaray.spec
197 lines (176 loc) · 6.6 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
Name: gammaray
Version: 2.4.0
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) <[email protected]>
BuildRequires: cmake kdstatemachineeditor-devel graphviz-devel
%if %{defined suse_version}
BuildRequires: libqt5-qtdeclarative-private-headers-devel libQt5Concurrent-devel libqt5-qttools-devel libqt5-qtsvg-devel libQt5PrintSupport-devel libqt5-qtscript-devel libQt5WebKitWidgets-devel
%if 0%{?suse_version} > 1320
BuildRequires: libqt5-qtconnectivity-devel
%endif
# TODO: this seems only to be in the update repo?
BuildRequires: kcoreaddons-devel
%endif
%if %{defined fedora}
BuildRequires: qt5-qtdeclarative-devel qt5-qtconnectivity-devel qt5-qttools-devel qt5-qtsvg-devel qt5-qtscript-devel qt5-qtwebkit-devel
%if 0%{?fedora} >= 21
BuildRequires: kf5-kcoreaddons-devel
%endif
%endif
%if %{defined suse_version}
BuildRequires: update-desktop-files
%endif
%if %{defined fedora}
BuildRequires: desktop-file-utils
%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 <[email protected]>
%package kf5-plugins
Summary: GammaRay plug-ins to introspect KF5 applications
Group: Development/Tools
Requires: %{name} = %{version}
%description kf5-plugins
Plug-ins for the GammaRay introspection tool to debug KF5 applications,
such as a KJob tracker.
%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 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
%else
%if "%{_lib}"=="lib64"
cmake . -DLIB_SUFFIX=64 -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
%else
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
%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
%{_libdir}/gammaray/libexec/gammaray-client
%{_libdir}/gammaray/libexec/gammaray-launcher
%{_libdir}/libgammaray_common-*.so.*
%{_libdir}/libgammaray_core-*.so.*
%{_libdir}/libgammaray_ui-*.so.*
%{_libdir}/libgammaray_client.so.*
%{_libdir}/libgammaray_kitemmodels*
%{_libdir}/libgammaray_launcher*
%dir %{_libdir}/gammaray/
%dir %{_libdir}/gammaray/*/
%dir %{_libdir}/gammaray/*/*/
%{_libdir}/gammaray/*/*/libgammaray_widget_export_actions.so
%{_libdir}/gammaray/*/*/gammaray_probe.so
%{_libdir}/gammaray/*/*/gammaray_inprocessui.so
%{_libdir}/gammaray/*/*/gammaray_actioninspector*
%{_libdir}/gammaray/*/*/gammaray_bluetooth.so
%{_libdir}/gammaray/*/*/gammaray_codecbrowser*
%{_libdir}/gammaray/*/*/gammaray_fontbrowser*
%{_libdir}/gammaray/*/*/gammaray_selectionmodelinspector*
%{_libdir}/gammaray/*/*/gammaray_signalmonitor*
%{_libdir}/gammaray/*/*/gammaray_statemachineviewer*
%{_libdir}/gammaray/*/*/gammaray_timertop*
%{_libdir}/gammaray/*/*/gammaray_widgetinspector*
%{_libdir}/gammaray/*/*/gammaray_sceneinspector*
%{_libdir}/gammaray/*/*/gammaray_styleinspector*
%{_libdir}/gammaray/*/*/gammaray_scriptenginedebugger*
%{_libdir}/gammaray/*/*/gammaray_webinspector*
%{_libdir}/gammaray/*/*/gammaray_qmlsupport*
%{_libdir}/gammaray/*/*/gammaray_quickinspector*
%{_libdir}/gammaray/*/*/gammaray_translatorinspector*
%{_libdir}/gammaray/*/*/styles/
%files kf5-plugins
%defattr(-,root,root)
%{_libdir}/gammaray/*/*/gammaray_kjobtracker*
%files devel
%defattr(-,root,root)
%{_includedir}/gammaray
%{_libdir}/libgammaray_common-*.so
%{_libdir}/libgammaray_core-*.so
%{_libdir}/libgammaray_ui-*.so
%{_libdir}/libgammaray_client.so
%{_libdir}/cmake/GammaRay/
%{_libdir}/qt5/mkspecs/modules/*
%changelog
* Tue Dec 22 2015 Allen Winter <[email protected]> 2.4.0
2.4.0 final
* Sun Dec 20 2015 Allen Winter <[email protected]> 2.3.99
2.4.0 release candidate 1
* Tue Jan 27 2015 Allen Winter <[email protected]> 2.2.1
2.2.1 final
* Fri Oct 31 2014 Allen Winter <[email protected]> 2.2.0
2.2.0 final
* Thu Oct 23 2014 Allen Winter <[email protected]> 2.1.2
2.1.2 final
* Sat Aug 30 2014 Allen Winter <[email protected]> 2.1.1
2.1.1 final
* Fri Jun 27 2014 Allen Winter <[email protected]> 2.1.0
2.1.0 final
* Thu Jun 26 2014 Allen Winter <[email protected]> 2.0.98
2.1.0 release candidate 1
* Fri Apr 18 2014 Allen Winter <[email protected]> 2.0.2
2.0.2 final
* Fri Feb 28 2014 Allen Winter <[email protected]> 2.0.1
2.0.1 final
* Fri Jan 17 2014 Allen Winter <[email protected]> 2.0.0
2.0.0 final
* Sat Jan 11 2014 Allen Winter <[email protected]> 1.9.96
Second 2.0 beta release
* Fri Dec 20 2013 Allen Winter <[email protected]> 1.9.95
First 2.0 beta release
* Thu Oct 03 2013 Allen Winter <[email protected]> 1.3.2
Second 1.3 bugfix release
* Tue Apr 30 2013 Allen Winter <[email protected]> 1.3.1
First 1.3 bugfix release
* Sun Jan 27 2013 Allen Winter <[email protected]> 1.3.0
Update to latest release
* Wed Jun 27 2012 Allen Winter <[email protected]> 1.1.98
- Rename version to use all integers
* Tue Jun 26 2012 Allen Winter <[email protected]> 1.2beta
- Update to beta release
* Wed Jun 20 2012 Allen Winter <[email protected]> 1.2prebeta
- Update to prebeta release
* Tue Jan 10 2012 Kevin Ottens <[email protected]> 1.1.0
- Update to latest release
* Sun Jan 8 2012 Kevin Ottens <[email protected]> 1.0.98.20120108
- Grabbing a new snapshot
* Wed Dec 21 2011 Kevin Ottens <[email protected]> 1.0.1
- First packaging