This commit is contained in:
parent
64f4b1df22
commit
6389676aac
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 4 10:10:46 UTC 2017 - sor.alexei@meowr.ru
|
||||
|
||||
- Build for aarch64.
|
||||
- Spec cleanup.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 7 23:43:33 UTC 2017 - jengelh@inai.de
|
||||
|
||||
|
@ -16,45 +16,42 @@
|
||||
#
|
||||
|
||||
|
||||
%define majorversion 2.10.0
|
||||
%define ctllib_sover 0
|
||||
%define ctllib liblttng-ctl%{ctllib_sover}
|
||||
|
||||
%define _version 2.10.0
|
||||
%define soname_ctl liblttng-ctl
|
||||
%define sover_ctl 0
|
||||
Name: lttng-tools
|
||||
Version: 2.10.1
|
||||
Release: 0
|
||||
Source: http://lttng.org/files/%{name}/%{name}-%{version}.tar.bz2
|
||||
Summary: Linux Trace Toolkit Next Generation 2.0 userspace tools
|
||||
License: GPL-2.0 and LGPL-2.1
|
||||
Summary: Linux Trace Toolkit Next Generation userspace tools
|
||||
License: GPL-2.0 AND LGPL-2.1
|
||||
Group: Development/Tools/Other
|
||||
Url: http://lttng.org/lttng2.0
|
||||
URL: https://lttng.org/
|
||||
Source: https://lttng.org/files/%{name}/%{name}-%{version}.tar.bz2
|
||||
BuildRequires: liburcu-devel
|
||||
BuildRequires: libuuid-devel
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: lttng-ust-devel >= %{majorversion}
|
||||
BuildRequires: lttng-ust-devel >= %{_version}
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: popt-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
ExclusiveArch: %ix86 x86_64 ppc64 ppc64le
|
||||
Requires: babeltrace
|
||||
Recommends: lttng-modules-kmp
|
||||
ExclusiveArch: %ix86 x86_64 aarch64 ppc64 ppc64le
|
||||
|
||||
%description
|
||||
This package provides the userspace tools for controlling the LTTng subsystem
|
||||
from userspace.
|
||||
|
||||
%package -n %{ctllib}
|
||||
%package -n %{soname_ctl}%{sover_ctl}
|
||||
Summary: Linux Trace Toolkit Next Generation 2.0 control and utility library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{ctllib}
|
||||
%description -n %{soname_ctl}%{sover_ctl}
|
||||
This package provides a userspace library for controlling the LTTng subsystem. It is primarily intended for use by the lttng-tools package.
|
||||
|
||||
%package -n %{name}-devel
|
||||
|
||||
Summary: Linux Trace Toolkit Next Generation 2.0 userspace tools
|
||||
Group: Development/Languages/C and C++
|
||||
Requires: %{ctllib} >= %{majorversion}
|
||||
Requires: %{soname_ctl}%{sover_ctl} >= %{_version}
|
||||
|
||||
%description -n %{name}-devel
|
||||
This package provides the userspace tools for controlling the LTTng subsystem
|
||||
@ -64,43 +61,38 @@ from userspace.
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure --docdir=%{_docdir}/%{name}
|
||||
make
|
||||
%configure \
|
||||
--docdir=%{_docdir}/%{name} \
|
||||
--disable-static
|
||||
make %{?_smp_mflags} V=1
|
||||
|
||||
%install
|
||||
%make_install
|
||||
rm -f %buildroot%{_libdir}/*.la
|
||||
rm -f %buildroot%{_libdir}/*.a
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
|
||||
%post -n %{ctllib} -p /sbin/ldconfig
|
||||
%postun -n %{ctllib} -p /sbin/ldconfig
|
||||
%post -n %{soname_ctl}%{sover_ctl} -p /sbin/ldconfig
|
||||
|
||||
%postun -n %{soname_ctl}%{sover_ctl} -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%dir %{_libdir}/lttng
|
||||
%dir %{_libdir}/lttng/libexec
|
||||
%doc %{_docdir}/%{name}/
|
||||
%{_bindir}/lttng
|
||||
%{_bindir}/lttng-crash
|
||||
%{_bindir}/lttng-relayd
|
||||
%{_libdir}/lttng/libexec/lttng-consumerd
|
||||
%{_bindir}/lttng-sessiond
|
||||
%{_mandir}/man1/*.1.gz
|
||||
%{_mandir}/man3/*.3.gz
|
||||
%{_mandir}/man8/*.8.gz
|
||||
%dir %{_docdir}/%{name}
|
||||
%{_docdir}/%{name}/ChangeLog
|
||||
%{_docdir}/%{name}/LICENSE
|
||||
%{_docdir}/%{name}/README.md
|
||||
%{_docdir}/%{name}/*.txt
|
||||
%dir %{_datadir}/xml/lttng
|
||||
%{_mandir}/man1/*.1%{?ext_man}
|
||||
%{_mandir}/man3/*.3%{?ext_man}
|
||||
%{_mandir}/man8/*.8%{?ext_man}
|
||||
%dir %{_libdir}/lttng/
|
||||
%dir %{_libdir}/lttng/libexec/
|
||||
%dir %{_datadir}/xml/lttng/
|
||||
%{_datadir}/xml/lttng/session.xsd
|
||||
|
||||
%files -n %{ctllib}
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/*.so.*
|
||||
%files -n %{soname_ctl}%{sover_ctl}
|
||||
%{_libdir}/%{soname_ctl}.so.%{sover_ctl}*
|
||||
|
||||
%files -n %{name}-devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/lttng/*
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/lttng-ctl.pc
|
||||
|
Loading…
x
Reference in New Issue
Block a user