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
|
|
|
#
|
2013-01-12 06:43:52 +01:00
|
|
|
# Copyright (c) 2013 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: systemtap-docs
|
2011-12-21 12:21:19 +01:00
|
|
|
BuildRequires: autoconf
|
2012-01-29 07:34:38 +01:00
|
|
|
BuildRequires: automake
|
2011-12-21 12:21:19 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libebl-devel
|
|
|
|
BuildRequires: pkg-config
|
2009-05-20 14:42:39 +02:00
|
|
|
# for documents
|
|
|
|
BuildRequires: fop
|
|
|
|
BuildRequires: latex2html
|
2012-06-14 22:58:07 +02:00
|
|
|
BuildRequires: xmlto
|
2013-01-12 06:43:52 +01:00
|
|
|
Version: 2.0
|
2011-12-21 12:21:19 +01:00
|
|
|
Release: 0
|
2009-07-23 16:26:04 +02:00
|
|
|
Summary: Documents and examples for systemtap
|
2011-12-21 12:21:19 +01:00
|
|
|
License: GPL-2.0+
|
2009-05-20 14:42:39 +02:00
|
|
|
Group: Development/Tools/Debuggers
|
|
|
|
Url: http://sourceware.org/systemtap/
|
2012-06-19 22:38:49 +02:00
|
|
|
Source: http://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz
|
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
|
2012-02-29 00:33:45 +01:00
|
|
|
Patch3: systemtap-docs-autoconf-version.diff
|
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
|
2011-11-02 20:17:40 +01:00
|
|
|
SystemTap is an instrumentation system for systems running Linux.
|
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
|
|
|
|
|
|
|
%prep
|
2011-11-02 20:17:40 +01:00
|
|
|
%setup -n systemtap-%{version} -q
|
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
|
2011-06-07 20:19:23 +02:00
|
|
|
# fix interpreter
|
|
|
|
find testsuite examples -name "*.stp" | xargs -n1 sed -i -e 's, /bin/env, /usr/bin/env,'
|
|
|
|
find testsuite examples -type f | xargs chmod 644
|
2009-05-20 14:42:39 +02:00
|
|
|
autoreconf -fi
|
2011-11-02 20:17:40 +01:00
|
|
|
%configure --docdir=%{_docdir}/systemtap --disable-nls
|
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
|