File firescope.spec of Package firescope

# spec file for package firescope (Version 0.2)
# Copyright (c) 2009 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

Name:           firescope
License:        GPL v2 or later
Group:          System/Monitoring
AutoReqProv:    on
Version:        0.2
Release:        65
Summary:        Read linux kernel logs over firewire
Source1:        COPYING.GPLv2
Patch0:         firescope-fix-uninitialised
BuildRequires:  gcc libraw1394-devel
%ifarch x86_64
BuildRequires:  glibc-32bit glibc-devel-32bit libraw1394-devel-32bit
BuildRequires:  gcc-32bit
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Firescope allows to read remote kernel memory over a firewire
connection.  On x86-64 it is normally used to read the kernel log

    Andi Kleen <>

%patch0 -p1

# disable as-needed to fix build
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
make CFLAGS="$RPM_OPT_FLAGS" firescope
%ifarch x86_64
make CFLAGS="$RPM_OPT_FLAGS" firescope32
cp %{S:1} COPYING

mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -m 755 firescope $RPM_BUILD_ROOT/%{_bindir}
%ifarch x86_64
install -m 755 firescope32 $RPM_BUILD_ROOT/%{_bindir}
install -m 644 firescope.1 $RPM_BUILD_ROOT%{_mandir}/man1

[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%defattr(-, root, root)
%doc %{_mandir}/man1/%{name}.1.gz

openSUSE Build Service is sponsored by