# # spec file for package gammray # # Copyright (c) 2012 SUSE LINUX Products 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 tarname GammaRay Name: gammaray Version: 1.3.1 Release: 0 License: GPL-2+ Summary: Introspection/Debugging Tool for Qt Applications Url: http://www.kdab.com/gammaray Group: Development/Tools/Debugger Source: %{tarname}-%{version}.tar.gz # PATCH-FIX-UPSTREAM qvtk.diff -- Uses variable, instead of hardcoded QVTK Patch0: qvtk.diff BuildRequires: cmake BuildRequires: fdupes # include this so the icon folders don't need to be owned by the package BuildRequires: graphviz-devel BuildRequires: hicolor-icon-theme BuildRequires: libQtWebKit-devel BuildRequires: libxml2-devel BuildRequires: libkde4-devel BuildRequires: python-vtk BuildRequires: python-devel BuildRequires: vtk-devel BuildRequires: vtk-java BuildRequires: vtk-tcl BuildRequires: vtk-qt BuildRequires: update-desktop-files 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. %prep %setup -q -n %{tarname}-%{version} %if 0%{?suse_version} >= 1310 %patch0 -p1 %endif %build %if "%{_lib}" == "lib64" LIBSUFFIX="-DLIB_SUFFIX=64" %else LIBSUFFIX="" %endif cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_SKIP_INSTALL_RPATH=ON \ $LIBSUFFIX make %{?_smp_mflags} %install make DESTDIR=%{buildroot} install # Remove unneeded headers rm -r %{buildroot}%{_includedir}/%{name} install -d -m 755 %{buildroot}%{_docdir}/%{name} mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_docdir} %suse_update_desktop_file GammaRay Development Qt Debugger %fdupes %{buildroot} %files %defattr(-,root,root) %{_bindir}/gammaray %{_libdir}/gammaray_probe.so %{_libdir}/libgammaray_widget_export_actions.so %{_libdir}/qt4/plugins/gammaray/ %dir %{_libdir}/qt4/plugins/styles/ %{_docdir}/%{name}/ %{_libdir}/qt4/plugins/styles/gammaray_injector_style.so %{_mandir}/man1/gammaray.* %{_datadir}/applications/GammaRay.desktop %dir %{_datadir}/icons/hicolor/512x512/ %dir %{_datadir}/icons/hicolor/512x512/apps/ %{_datadir}/icons/hicolor/*/apps/GammaRay.png %changelog