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
|
|
|
#
|
2015-02-17 22:16:31 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX 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
|
2015-03-27 17:48:03 +01:00
|
|
|
Version: 2.7
|
2015-02-17 22:16:31 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Documents and examples for systemtap
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Development/Tools/Debuggers
|
|
|
|
Url: http://sourceware.org/systemtap/
|
|
|
|
Source0: http://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz
|
|
|
|
Source1: http://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz.asc
|
|
|
|
Source2: systemtap.keyring
|
|
|
|
Source3: README-BEFORE-ADDING-PATCHES
|
|
|
|
Patch1: systemtap-docdir-fix.diff
|
|
|
|
Patch2: systemtap-xmlto-fop.diff
|
2011-12-21 12:21:19 +01:00
|
|
|
BuildRequires: autoconf
|
2012-01-29 07:34:38 +01:00
|
|
|
BuildRequires: automake
|
2009-05-20 14:42:39 +02:00
|
|
|
# for documents
|
|
|
|
BuildRequires: fop
|
2015-02-17 22:16:31 +01:00
|
|
|
BuildRequires: gcc-c++
|
2009-05-20 14:42:39 +02:00
|
|
|
BuildRequires: latex2html
|
2015-02-17 22:16:31 +01:00
|
|
|
BuildRequires: libebl-devel
|
|
|
|
BuildRequires: pkg-config
|
2013-12-19 23:20:56 +01:00
|
|
|
BuildRequires: texlive-amsfonts
|
|
|
|
BuildRequires: texlive-babel-english
|
|
|
|
BuildRequires: texlive-collection-fontsrecommended
|
|
|
|
BuildRequires: texlive-metafont-bin
|
2012-06-14 22:58:07 +02:00
|
|
|
BuildRequires: xmlto
|
2013-12-19 23:20:56 +01:00
|
|
|
BuildRequires: tex(charter.sty)
|
|
|
|
BuildRequires: tex(fancybox.sty)
|
|
|
|
BuildRequires: tex(fancyhdr.sty)
|
|
|
|
BuildRequires: tex(fancyvrb.sty)
|
|
|
|
BuildRequires: tex(float.sty)
|
|
|
|
BuildRequires: tex(fullpage.sty)
|
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
|
2015-02-17 22:16:31 +01:00
|
|
|
%setup -q -n systemtap-%{version}
|
2010-07-21 15:53:52 +02:00
|
|
|
%patch1 -p1
|
2010-02-19 16:14:51 +01:00
|
|
|
%patch2 -p1
|
2009-05-20 14:42:39 +02:00
|
|
|
|
|
|
|
%build
|
2011-06-07 20:19:23 +02:00
|
|
|
# fix interpreter
|
2015-02-17 22:16:31 +01:00
|
|
|
find testsuite examples -name "*.stp" | xargs -n1 sed -i -e 's, /bin/env, %{_bindir}/env,'
|
2011-06-07 20:19:23 +02:00
|
|
|
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
|
2015-02-17 22:16:31 +01:00
|
|
|
make %{?_smp_mflags}
|
2009-05-20 14:42:39 +02:00
|
|
|
|
|
|
|
%install
|
2015-02-17 22:16:31 +01:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags} doc
|
2010-07-21 15:53:52 +02:00
|
|
|
# COPYING packaged by main spec
|
2015-02-17 22:16:31 +01:00
|
|
|
cp README AUTHORS NEWS %{buildroot}%{_docdir}/systemtap/
|
2009-05-28 02:18:25 +02:00
|
|
|
# remove binaries and runtime stuff
|
2015-02-17 22:16:31 +01:00
|
|
|
rm -rf %{buildroot}%{_bindir}
|
|
|
|
rm -rf %{buildroot}%{_libexecdir}
|
|
|
|
rm -rf %{buildroot}%{_datadir}/systemtap
|
|
|
|
rm -rf %{buildroot}%{_includedir}
|
2009-05-28 02:18:25 +02:00
|
|
|
# these man pages are in each sub package
|
2015-02-17 22:16:31 +01:00
|
|
|
rm -rf %{buildroot}%{_mandir}/man[178]
|
2009-05-20 14:42:39 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_docdir}/systemtap
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|