2009-05-20 14:42:39 +02:00
|
|
|
#
|
2009-06-20 01:28:16 +02:00
|
|
|
# spec file for package systemtap-docs (Version 0.9.8)
|
2009-05-20 14:42:39 +02:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
|
|
|
|
Name: systemtap-docs
|
|
|
|
BuildRequires: gcc-c++ libebl-devel pkg-config
|
|
|
|
# for documents
|
|
|
|
BuildRequires: xmlto
|
|
|
|
%if %suse_version > 1030
|
|
|
|
BuildRequires: fop
|
|
|
|
BuildRequires: latex2html
|
|
|
|
%endif
|
|
|
|
%define use_snapshot 0
|
|
|
|
License: GPL v2 or later
|
2009-06-20 01:28:16 +02:00
|
|
|
Version: 0.9.8
|
2009-07-23 16:26:04 +02:00
|
|
|
Release: 2
|
|
|
|
Summary: Documents and examples for systemtap
|
2009-05-20 14:42:39 +02:00
|
|
|
Group: Development/Tools/Debuggers
|
|
|
|
Url: http://sourceware.org/systemtap/
|
|
|
|
%if %use_snapshot
|
|
|
|
%define package_version 20090214
|
|
|
|
%else
|
|
|
|
%define package_version %{version}
|
|
|
|
%endif
|
|
|
|
Source: ftp://sources.redhat.com/pub/systemtap/snapshots/systemtap-%{package_version}.tar.bz2
|
|
|
|
Patch: systemtap-docdir-fix.diff
|
|
|
|
# Patch2: systemtap-ioblock-suse-kernel-fix.diff
|
|
|
|
Patch3: systemtap-xmlto-fop.diff
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-06-20 01:28:16 +02:00
|
|
|
BuildArch: noarch
|
2009-05-20 14:42:39 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
SystemTap is an instrumentation system for systems running Linux 2.6.
|
2009-07-23 16:26:04 +02:00
|
|
|
This package contains the documents and examples for systemtap.
|
2009-05-20 14:42:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Frank Ch. Eigler <fche@redhat.com>
|
|
|
|
Graydon Hoare <graydon@redhat.com>
|
|
|
|
Martin Hunt <hunt@redhat.com>
|
|
|
|
Tom Zanussi <zanussi@us.ibm.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%if %use_snapshot
|
|
|
|
%setup -n src -q
|
|
|
|
%else
|
|
|
|
%setup -n systemtap-%{package_version} -q
|
|
|
|
%endif
|
|
|
|
%patch -p1
|
|
|
|
# %patch2
|
|
|
|
%if %suse_version > 1030
|
|
|
|
%patch3 -p1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
|
|
|
%configure
|
2009-05-28 02:18:25 +02:00
|
|
|
make %{?jobs:-j %jobs}
|
2009-05-20 14:42:39 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%if %suse_version < 1030
|
|
|
|
# workaround for old autoconf
|
|
|
|
export MKDIR_P="mkdir -p"
|
|
|
|
%endif
|
2009-05-28 02:18:25 +02:00
|
|
|
%makeinstall doc
|
2009-05-20 14:42:39 +02:00
|
|
|
cp README AUTHORS NEWS COPYING $RPM_BUILD_ROOT%{_docdir}/systemtap/
|
2009-05-28 02:18:25 +02:00
|
|
|
# remove binaries and runtime stuff
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_bindir}
|
2009-07-23 16:26:04 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT%{_libexecdir}
|
2009-05-28 02:18:25 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/systemtap
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_includedir}
|
|
|
|
# these man pages are in each sub package
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_mandir}/man1
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_mandir}/man8
|
2009-05-20 14:42:39 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_docdir}/systemtap
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|