File edb-debugger.spec of Package edb-debugger

#
# spec file for package edb-debugger
#
# Copyright (c) 2017, Martin Hauke <mardnh@gmx.de>
#
# 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/
#

Name:           edb-debugger
Version:        1.3.0
Release:        0
Summary:        edb is a cross platform x86/x86-64 debugger
License:        GPL-2.0
Group:          Development/Tools/Debuggers
URL:            https://github.com/eteran/edb-debugger
Source:         %{name}-%{version}.tar.xz
Patch0:         0001-Gcc-12-includes-fix-815.patch
BuildRequires:  boost-devel
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  git-core
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Core) >= 5.9
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  pkgconfig(Qt5XmlPatterns)
BuildRequires:  pkgconfig(capstone) >= 3.0
BuildRequires:  pkgconfig(libgvc)
ExclusiveArch:  %ix86 x86_64

%description
edb is a cross platform x86/x86-64 debugger. It was inspired by Ollydbg,
but aims to function on x86 and x86-64 as well as multiple OS's.

%prep
%setup -q
%patch0 -p1
# Fix usage of __DATE__ macro to prevent build in excess
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/DialogAbout.cpp

%build
%cmake \
  -DCMAKE_SHARED_LINKER_FLAGS=""
%make_jobs

%install
%cmake_install

%files
%doc CHANGELOG COPYING README.md
%{_bindir}/edb
%{_libdir}/edb
%{_datadir}/applications/edb.desktop
%{_datadir}/pixmaps/edb.png
%{_mandir}/man1/edb.1%{ext_man}

%changelog
openSUSE Build Service is sponsored by