gammaray/gammaray.spec
Luca Beltrame 36666b6354 Accepting request 680358 from home:wolfi323:branches:KDE:Extra
- Update to 2.10.0:
  * Increase CMake requirement to version 3.1 on all platforms.
  * Add object navigation to the paint analyzer.
  * Reduce network load by moving more property model features to
    the client side.
  * Port object hierarchy visualizer plugin to Qt 5.
  * Add new system information plugin, which supersedes the
    standard paths plugin.
  * Use application palette rather than style palette in the style
    inspector.
  * Improve gdb injector performance.
  * Reduce performance impact of the widget paint analyzer in
    Windows debug builds.
  * Improve Qt Quick item picking in case of zero-sized parent
    elements.
  * Provide access to QAbstractItemModel role name mapping.
  * Add QtPositioning plugin allowing to monitor and simulate geo
    localization.
  * Add NMEA geo localization playback.
  * Add support for generic functor property accessors.
  * Add property access for mime data and clipboard types.
  * Add infrastructure to override generic property access, such as
    Qt Quick anchor properties.
  * Add custom property access for Qt Quick anchors properties to
    no longer trigger their on-demand creation.
  * Add generic problem reporter infrastructure, and port some
    existing checks to it.
- Drop patches merged upstream:
  * fix-build-qt-5.12.patch
  * fix-build-qt-5.12-again.patch

OBS-URL: https://build.opensuse.org/request/show/680358
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/gammaray?expand=0&rev=41
2019-03-01 07:30:59 +00:00

172 lines
5.6 KiB
RPMSpec

#
# spec file for package gammaray
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%define tarname GammaRay
Name: gammaray
Version: 2.10.0
Release: 0
Summary: Introspection/Debugging Tool for Qt Applications
License: GPL-2.0-or-later
Group: Development/Tools/Debuggers
URL: http://www.kdab.com/gammaray
Source: https://github.com/KDAB/GammaRay/releases/download/v%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM Fix_icons_installation.patch -- Don't try to install multiple copies in exotic subdirs
Patch0: Fix_icons_installation.patch
BuildRequires: binutils-devel
BuildRequires: cmake >= 3.1
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: graphviz-devel
BuildRequires: graphviz-gnome
# include this so the icon folders don't need to be owned by the package
BuildRequires: hicolor-icon-theme
BuildRequires: kdstatemachineeditor-devel
BuildRequires: libQt5Core-private-headers-devel >= 5.3.0
BuildRequires: libQt5Gui-private-headers-devel >= 5.3.0
BuildRequires: libQt5Network-private-headers-devel >= 5.3.0
BuildRequires: libdw-devel
BuildRequires: libqt5-qt3d-devel >= 5.3.0
BuildRequires: libqt5-qtbase-doc >= 5.3.0
BuildRequires: libqt5-qtdeclarative-private-headers-devel >= 5.3.0
BuildRequires: libqt5-qttools >= 5.3.0
BuildRequires: update-desktop-files
BuildRequires: vtk-devel
BuildRequires: vtk-java
BuildRequires: vtk-qt
BuildRequires: vtk-tcl
BuildRequires: wayland-devel
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(Qt5Bluetooth) >= 5.3.0
BuildRequires: cmake(Qt5Concurrent) >= 5.3.0
BuildRequires: cmake(Qt5Core) >= 5.3.0
BuildRequires: cmake(Qt5Designer) >= 5.3.0
BuildRequires: cmake(Qt5Gui) >= 5.3.0
BuildRequires: cmake(Qt5Network) >= 5.3.0
BuildRequires: cmake(Qt5Positioning) >= 5.3.0
BuildRequires: cmake(Qt5PrintSupport) >= 5.3.0
BuildRequires: cmake(Qt5Qml) >= 5.3.0
BuildRequires: cmake(Qt5Quick) >= 5.3.0
BuildRequires: cmake(Qt5Script) >= 5.3.0
BuildRequires: cmake(Qt5ScriptTools) >= 5.3.0
BuildRequires: cmake(Qt5Svg) >= 5.3.0
BuildRequires: cmake(Qt5Test) >= 5.3.0
BuildRequires: cmake(Qt5WebEngineWidgets) >= 5.3.0
BuildRequires: cmake(Qt5Widgets) >= 5.3.0
%if 0%{?suse_version} > 1315
# Needed to build the user manual
BuildRequires: libqt5-qtdoc-devel
#
BuildRequires: cmake(Qt5WaylandCompositor) >= 5.3.0
%else
# libqt5-qtdoc-devel doesn't exist in leap 42.3
BuildRequires: libqt5-qtdoc
%endif
%if 0%{?suse_version} > 1320 || 0%{?leap_version} >= 420200
BuildRequires: glslang-devel
%endif
%if 0%{?suse_version} > 1320
BuildRequires: libqt5-qtscxml-private-headers-devel >= 5.8.0
%endif
%if 0%{?suse_version} > 1320
BuildRequires: cmake(KF5SyntaxHighlighting) >= 5.28.0
%endif
%if 0%{?suse_version} > 1320
BuildRequires: cmake(Qt5Scxml) >= 5.8.0
%endif
%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
%autopatch -p1
%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/ \
-DQDOC_EXECUTABLE=%{_libqt5_bindir}/qdoc \
-DQHELPGEN_EXECUTABLE=%{_libqt5_bindir}/qhelpgenerator \
$LIBSUFFIX
make VERBOSE=1 %{?_smp_mflags}
%install
%make_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 -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license LICENSE.*
%doc CHANGES ReadMe.txt
%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_kuserfeedback.so.*
%{_libdir}/libgammaray_launcher.so.*
%{_libdir}/libgammaray_launcher_ui.so.*
%{_mandir}/man1/gammaray.*
%if 0%{?suse_version} <= 1320
%dir %{_datadir}/appdata
%endif
%{_datadir}/appdata/GammaRay.appdata.xml
%{_datadir}/gammaray
%files devel
%license LICENSE.*
%{_includedir}/%{name}
%{_libdir}/cmake/GammaRay/
%{_libdir}/libgammaray_*-qt5*.so
%{_libdir}/libgammaray_client.so
%{_libdir}/libgammaray_kuserfeedback.so
%{_libdir}/libgammaray_launcher.so
%{_libdir}/libgammaray_launcher_ui.so
%{_libdir}/qt5/mkspecs/modules/qt_GammaRay*.pri
%changelog