SHA256
1
0
forked from pool/lttng-ust
lttng-ust/lttng-ust.spec
Alexei Sorokin e4016d0844 Accepting request 567669 from openSUSE:Factory:Staging:O
- Format with spec-cleaner
- Drop tex/asciidoc/xmlto dependencies as the manpages are already
  generated in the tarball so we produce the same result and this
  way we are not pulling in python2

OBS-URL: https://build.opensuse.org/request/show/567669
OBS-URL: https://build.opensuse.org/package/show/devel:tools:lttng/lttng-ust?expand=0&rev=27
2018-01-19 12:15:37 +00:00

142 lines
4.7 KiB
RPMSpec

#
# spec file for package lttng-ust
#
# Copyright (c) 2018 SUSE LINUX 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/
#
%define sover 0
%define sover_ctl 4
Name: lttng-ust
Version: 2.10.1
Release: 0
Summary: Linux Trace Toolkit Userspace Tracer library
License: GPL-2.0
Group: Development/Languages/C and C++
Url: https://lttng.org/
Source: https://lttng.org/files/lttng-ust/lttng-ust-%{version}.tar.bz2
Source1: https://lttng.org/files/lttng-ust/lttng-ust-%{version}.tar.bz2.asc
Source2: %{name}.keyring
# PATCH-FIX-OPENSUSE lttng-ust-copying.patch
Patch0: lttng-ust-copying.patch
BuildRequires: gcc-c++
BuildRequires: liburcu-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(uuid)
ExclusiveArch: %{ix86} x86_64 aarch64 ppc64 ppc64le
%description
This library may be used by user space applications to generate
tracepoints within the kernel LTT subsystem.
%package -n liblttng-ust%{sover}
Summary: Linux Trace Toolkit Userspace Tracer library
Group: System/Libraries
%description -n liblttng-ust%{sover}
This library may be used by user space applications to generate
tracepoints within the kernel LTT subsystem.
%package -n liblttng-ust-ctl%{sover_ctl}
Summary: Linux Trace Toolkit Userspace Tracer library
Group: System/Libraries
%description -n liblttng-ust-ctl%{sover_ctl}
This library may be used by user space applications to generate
tracepoints within the kernel LTT subsystem.
%package -n %{name}-devel
Summary: Linux Trace Toolkit Userspace Tracer library
Group: Development/Languages/C and C++
Requires: liblttng-ust%{sover} = %{version}
Requires: liblttng-ust-ctl%{sover_ctl} = %{version}
# lttng-ust was last used in openSUSE Leap 42.3.
Provides: %{name} = %{version}
Obsoletes: %{name} < %{version}
%description -n %{name}-devel
This library provides support for developing programs using LTTng
userspace tracing.
%package -n %{name}-doc
Summary: Linux Trace Toolkit Userspace Tracer Documentation
Group: Documentation/Other
Requires: liblttng-ust%{sover} = %{version}
Requires: liblttng-ust-ctl%{sover_ctl} = %{version}
# lttng-ust-docs was last used in openSUSE Leap 42.3.
Provides: %{name}-docs = %{version}
Obsoletes: %{name}-docs < %{version}
%description -n %{name}-doc
This package includes documentation and examples for developing
applications using LTTng userspace tracing.
%prep
%setup -q
%patch0 -p1
# Fix env shebang
sed -i -e "1s|^#!.*$|#!%{_bindir}/python3|" tools/lttng-gen-tp
%build
%configure \
--disable-silent-rules \
--docdir=%{_docdir}/%{name} \
--disable-static \
--disable-maintainer-mode
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
rm -rf %{buildroot}/tmp/lttng-ust-divert
%post -n liblttng-ust%{sover} -p /sbin/ldconfig
%postun -nliblttng-ust%{sover} -p /sbin/ldconfig
%post -n liblttng-ust-ctl%{sover_ctl} -p /sbin/ldconfig
%postun -nliblttng-ust-ctl%{sover_ctl} -p /sbin/ldconfig
%files -n liblttng-ust%{sover}
%{_libdir}/liblttng-ust.so.%{sover}*
%{_libdir}/liblttng-ust-cyg-profile*.so.%{sover}*
%{_libdir}/liblttng-ust-dl.so.%{sover}*
%{_libdir}/liblttng-ust-fd.so.%{sover}*
%{_libdir}/liblttng-ust-fork.so.%{sover}*
%{_libdir}/liblttng-ust-libc-wrapper.so.%{sover}*
%{_libdir}/liblttng-ust-pthread-wrapper.so.%{sover}*
%{_libdir}/liblttng-ust-tracepoint.so.%{sover}*
%files -n liblttng-ust-ctl%{sover_ctl}
%{_libdir}/liblttng-ust-ctl.so.%{sover_ctl}*
%files -n %{name}-devel
%{_includedir}/lttng/
%{_bindir}/lttng-gen-tp
%{_mandir}/man1/lttng-gen-tp.1%{?ext_man}
%{_libdir}/liblttng-ust*.so
%{_libdir}/pkgconfig/lttng-ust*.pc
%files -n %{name}-doc
%doc %{_docdir}/%{name}/
%{_mandir}/man3/lttng-ust.3%{?ext_man}
%{_mandir}/man3/lttng-ust-cyg-profile.3%{?ext_man}
%{_mandir}/man3/lttng-ust-dl.3%{?ext_man}
%{_mandir}/man3/do_tracepoint.3%{?ext_man}
%{_mandir}/man3/tracef.3%{?ext_man}
%{_mandir}/man3/tracelog.3%{?ext_man}
%{_mandir}/man3/tracepoint.3%{?ext_man}
%{_mandir}/man3/tracepoint_enabled.3%{?ext_man}
%changelog