File firescope.spec of Package firescope

#
# spec file for package firescope (Version 0.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           firescope
License:        GPL v2 or later
Group:          System/Monitoring
AutoReqProv:    on
Version:        0.2
Release:        25
Summary:        Read linux kernel logs over firewire
Source:         http://ftp.suse.com/pub/people/ak/firescope/%{name}-%{version}.tar.bz2
Source1:        COPYING.GPLv2
Url:            ftp://firstfloor.org/pub/ak/firescope/
Patch0:         firescope-fix-uninitialised
BuildRequires:  gcc libraw1394-devel
%ifarch x86_64
BuildRequires:  glibc-32bit glibc-devel-32bit libraw1394-devel-32bit
BuildRequires:  gcc-32bit
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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



Authors:
--------
    Andi Kleen <andi@firstfloor.org>

%prep
%setup
%patch0 -p1

%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
%endif
cp %{S:1} COPYING

%install
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}
%endif
install -m 644 firescope.1 $RPM_BUILD_ROOT%{_mandir}/man1

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

%files
%defattr(-, root, root)
%doc %{_mandir}/man1/%{name}.1.gz
%doc QUICKSTART CHANGES
%doc COPYING
%{_bindir}/%{name}*

%changelog
* Mon Mar 17 2008 bwalle@suse.de
- added COPYING file (bnc#336222)
* Tue Oct 23 2007 bwalle@suse.de
- initial package
openSUSE Build Service is sponsored by