gammaray/gammaray.spec
Luca Beltrame 706a8a152b Accepting request 438106 from home:alarrosa:branches:KDE:Extra
- Update to 2.6.0:
  * Reworked tool view handling, enabling deeper IDE integration of individual tools.
  * Merged model and selection model inspector.
  * Fixed crash when quickly changing selection in model inspector.
  * Add QMetaObject validation, identifying common problems with signal/slot declarations.
  * Support object navigation to and from the model and text document inspectors as well as the signal plotter.
  * Visualize model selections.
  * Allow to inspect model content also for disabled cells.
  * Show model cell flags in model inspector.
  * Fix sorting in object method view.
  * Fix handling of source model changes for proxy and selection models.
  * Add in-app picking for selection models and actions.
  * Extended the user manual with example problems diagnosed with GammaRay.
  * Allow to rescan the meta type database.
  * Add object navigation from the meta type view to the meta object browser.
  * Show registered comparison and stream operators in the meta type browser.
  * Add object navigation support to the action and timer inspectors.
  * Visualize enabled state in the action inspector too.
  * Support editing of nested properties of value types.
  * Fix various enum/flag display issues in the property view.
  * Fix AArch64 detection on ELF platforms.
  * Support ABI detection on systems without ldd.
  * Add Wayland compositor inspector.
  * Add advanced element picking mode for widget and Qt Quick inspectors.
  * Fix crash when encountering an empty translation context.
  * Extend user manual content.
  * Fix a number of memory leaks.
  * Fix crash when selecting a dangling top-level layout in the widget inspector.
  * Fix missing standard icon types in style inspector for some Qt versions.
  * Fix table layout in style inspector.

OBS-URL: https://build.opensuse.org/request/show/438106
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/gammaray?expand=0&rev=11
2016-11-01 08:38:55 +00:00

155 lines
4.9 KiB
RPMSpec

#
# spec file for package gammaray
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _vtkVersion %(LC_ALL="C" rpm --qf '%%{VERSION}' -q vtk-devel | grep -v 'not installed')
%define _pythonvtkused 0%(echo "%{_vtkVersion}" | grep -q '^6' && echo 1)
%define tarname GammaRay
Name: gammaray
Version: 2.6.0
Release: 0
Summary: Introspection/Debugging Tool for Qt Applications
License: GPL-2.0+
Group: Development/Tools/Debuggers
Url: http://www.kdab.com/gammaray
Source: https://github.com/KDAB/GammaRay/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: cmake >= 2.8.11
BuildRequires: fdupes
%if 0%{?suse_version} >= 1320
BuildRequires: kcoreaddons-devel
%endif
# include this so the icon folders don't need to be owned by the package
BuildRequires: doxygen
BuildRequires: graphviz-devel
BuildRequires: hicolor-icon-theme
BuildRequires: libxml2-devel
BuildRequires: python-devel
%if 0%{?_pythonvtkused}
BuildRequires: python-vtk
%else
BuildRequires: python3-vtk
%endif
BuildRequires: update-desktop-files
BuildRequires: vtk-devel
BuildRequires: vtk-java
BuildRequires: vtk-qt
BuildRequires: vtk-tcl
%if 0%{?suse_version} >= 1320
BuildRequires: pkgconfig(Qt5Bluetooth) >= 5.2.0
%endif
BuildRequires: pkgconfig(Qt5Concurrent) >= 5.2.0
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
BuildRequires: pkgconfig(Qt5Designer) >= 5.2.0
BuildRequires: pkgconfig(Qt5Gui) >= 5.2.0
BuildRequires: pkgconfig(Qt5Network) >= 5.2.0
BuildRequires: pkgconfig(Qt5PrintSupport) >= 5.2.0
BuildRequires: pkgconfig(Qt5Qml) >= 5.2.0
BuildRequires: pkgconfig(Qt5Quick) >= 5.2.0
BuildRequires: pkgconfig(Qt5Script) >= 5.2.0
BuildRequires: pkgconfig(Qt5ScriptTools) >= 5.2.0
BuildRequires: pkgconfig(Qt5Svg) >= 5.2.0
BuildRequires: pkgconfig(Qt5Test) >= 5.2.0
BuildRequires: pkgconfig(Qt5WebKitWidgets) >= 5.2.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
%if 0%{?suse_version} >= 1320
BuildRequires: libQt5Core-private-headers-devel >= 5.2.0
BuildRequires: libQt5Gui-private-headers-devel >= 5.2.0
BuildRequires: libQt5Network-private-headers-devel >= 5.2.0
BuildRequires: libqt5-qtdeclarative-private-headers-devel >= 5.2.0
%else
BuildRequires: libQt5Quick-private-headers-devel >= 5.2.0
BuildRequires: libqt5-qtbase-private-headers-devel >= 5.2.0
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Gamma Ray is a comprehensive collection of high level introspection
and debugging utilities specifically tailored for the various
frameworks in Qt.
%package devel
Summary: Introspection/Debugging Tool for Qt Applications
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
Gamma Ray is a comprehensive collection of high level introspection
and debugging utilities specifically tailored for the various
frameworks in Qt. Development files.
%prep
%setup -q -n %{name}-%{version}
%build
%if "%{_lib}" == "lib64"
LIBSUFFIX="-DLIB_SUFFIX=64"
%else
LIBSUFFIX=""
%endif
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_SKIP_INSTALL_RPATH=ON \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DECM_MKSPECS_INSTALL_DIR=%{_libdir}/qt5/mkspecs/modules \
-DQCH_INSTALL_DIR=%{_datadir}/gammaray/ \
$LIBSUFFIX
make VERBOSE=1 %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
install -d -m 755 %{buildroot}%{_docdir}/%{name}
mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_docdir}
%suse_update_desktop_file GammaRay Development Qt Debugger
%fdupes %{buildroot}
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-,root,root)
%doc CHANGES ReadMe.txt LICENSE.*
%dir %{_datadir}/icons/hicolor/512x512/
%dir %{_datadir}/icons/hicolor/512x512/apps/
%{_bindir}/gammaray
%{_datadir}/applications/GammaRay.desktop
%{_datadir}/icons/hicolor/*/apps/GammaRay.png
%{_docdir}/%{name}/
%{_libdir}/gammaray/
%{_libdir}/libgammaray_*-qt5*.so.*
%{_libdir}/libgammaray_client.so.*
%{_libdir}/libgammaray_launcher.so.*
%{_mandir}/man1/gammaray.*
%if 0%{?suse_version} <= 1320
%dir %{_datadir}/appdata
%endif
%{_datadir}/appdata/GammaRay.appdata.xml
%{_datadir}/gammaray
%files devel
%defattr(-,root,root)
%{_libdir}/libgammaray_*-qt5*.so
%{_libdir}/libgammaray_client.so
%{_libdir}/libgammaray_launcher.so
%{_libdir}/cmake/GammaRay/
%{_includedir}/%{name}
%{_libdir}/qt5/mkspecs/modules/qt_GammaRay*.pri
%changelog