3
0
forked from pool/systemtap
systemtap/systemtap-docs.spec
Jiri Slaby 16a8978084 Accepting request 125044 from home:dimstar:branches:devel:tools
- Add systemtap-automake112.patch: Fix build with automake 1.12:
  + Support for automatic de-ANSI-fication has been removed.
  + Patch taken from upstream, git commit id 5b2bc70.

Using the upstream patch now.
Note: the patch is >99% useless: Patching configure => it's autogenerated by autoreconf call anyway.

Most projects for this reason don't even carry the generated configure script in their git tree.

OBS-URL: https://build.opensuse.org/request/show/125044
OBS-URL: https://build.opensuse.org/package/show/devel:tools/systemtap?expand=0&rev=49
2012-06-14 20:58:07 +00:00

84 lines
2.5 KiB
RPMSpec

#
# spec file for package systemtap-docs
#
# Copyright (c) 2012 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/
#
Name: systemtap-docs
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libebl-devel
BuildRequires: pkg-config
# for documents
BuildRequires: fop
BuildRequires: latex2html
BuildRequires: xmlto
Version: 1.7
Release: 0
Summary: Documents and examples for systemtap
License: GPL-2.0+
Group: Development/Tools/Debuggers
Url: http://sourceware.org/systemtap/
Source: systemtap-%{version}.tar.bz2
Source2: README-BEFORE-ADDING-PATCHES
Patch1: systemtap-docdir-fix.diff
Patch2: systemtap-xmlto-fop.diff
Patch3: systemtap-docs-autoconf-version.diff
Patch4: systemtap-automake112.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
SystemTap is an instrumentation system for systems running Linux.
This package contains the documents and examples for systemtap.
%prep
%setup -n systemtap-%{version} -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
# 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
autoreconf -fi
%configure --docdir=%{_docdir}/systemtap --disable-nls
make %{?jobs:-j %jobs}
%install
%makeinstall doc
# COPYING packaged by main spec
cp README AUTHORS NEWS $RPM_BUILD_ROOT%{_docdir}/systemtap/
# remove binaries and runtime stuff
rm -rf $RPM_BUILD_ROOT%{_bindir}
rm -rf $RPM_BUILD_ROOT%{_libexecdir}
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}/man[178]
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root)
%doc %{_docdir}/systemtap
%{_mandir}/man3/*
%changelog