File mingw32-cross-breakpad-tools.spec of Package mingw32-cross-breakpad-tools

# spec file for package mingw32-cross-breakpad-tools
# Copyright (c) 2014 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

%define _branch_name pecoff-dwarf-2
%define _source_dir google-breakpad-%{_branch_name}
%define _mingw32_target i686-w64-mingw32
Name:           mingw32-cross-breakpad-tools
Version:        20140827
Release:        0
Summary:        An open-source multi-platform crash reporting system
License:        BSD-3-Clause
Group:          Development/Libraries
# wget -O google-breakpad-`date +%Y%m%d`.tar.gz
Source0:        google-breakpad-%{version}.tar.gz
Patch0:         0001-Add-cmake-script-to-build-host-tool.patch
Patch1:         make-canonical-path.patch
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

An open-source multi-platform crash reporting system. The client library is not included
this package only provides the tools.

%setup -q -n %{_source_dir}
%patch0 -p1
%patch1 -p1


make %{?_smp_mflags}

mkdir -p %{buildroot}%{_prefix}/%{_mingw32_target}/bin
mkdir -p %{buildroot}%{_bindir}

install -m 0755 build/dump_syms %{buildroot}%{_prefix}/%{_mingw32_target}/bin/dump_syms
install -m 0755 %{SOURCE1} %{buildroot}%{_prefix}/%{_mingw32_target}/bin/gen_sym_files

# create symlinks
for i in dump_syms gen_sym_files; do
	ln -s -v %{_prefix}/%{_mingw32_target}/bin/$i %{buildroot}%{_bindir}/%{_mingw32_target}-$i;

%dir %{_prefix}/%{_mingw32_target}
%dir %{_prefix}/%{_mingw32_target}/bin/