2009-05-20 14:42:39 +02:00
|
|
|
#
|
2011-02-18 01:53:03 +01:00
|
|
|
# spec file for package systemtap-docs
|
2009-05-20 14:42:39 +02:00
|
|
|
#
|
2011-02-18 01:53:03 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-05-20 14:42:39 +02:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
BuildRequires: fop
|
|
|
|
BuildRequires: latex2html
|
|
|
|
%define use_snapshot 0
|
2010-02-19 16:14:51 +01:00
|
|
|
License: GPLv2+
|
2011-02-18 01:53:03 +01:00
|
|
|
Version: 1.4
|
2011-05-03 09:25:47 +02:00
|
|
|
Release: 3
|
2009-07-23 16:26:04 +02:00
|
|
|
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
|
2011-02-18 01:53:03 +01:00
|
|
|
Source2: README-BEFORE-ADDING-PATCHES
|
2010-07-21 15:53:52 +02:00
|
|
|
Patch1: systemtap-docdir-fix.diff
|
2010-02-19 16:14:51 +01:00
|
|
|
Patch2: systemtap-xmlto-fop.diff
|
2011-05-19 10:30:27 +02:00
|
|
|
# PATCH-FIX-UPSTREAM systemtap-1.4-gcc46.patch idoenmez@suse.de -- Fix compilation with gcc 4.6
|
|
|
|
Patch3: systemtap-1.4-gcc46.patch
|
2009-05-20 14:42:39 +02:00
|
|
|
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
|
2010-07-21 15:53:52 +02:00
|
|
|
%patch1 -p1
|
2010-02-19 16:14:51 +01:00
|
|
|
%patch2 -p1
|
2011-05-19 10:30:27 +02:00
|
|
|
%patch3 -p1
|
2009-05-20 14:42:39 +02:00
|
|
|
|
|
|
|
%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
|
2009-05-28 02:18:25 +02:00
|
|
|
%makeinstall doc
|
2010-07-21 15:53:52 +02:00
|
|
|
# COPYING packaged by main spec
|
|
|
|
cp README AUTHORS NEWS $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
|
2010-09-04 00:57:05 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT%{_mandir}/man[178]
|
2009-05-20 14:42:39 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_docdir}/systemtap
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|