Group :: Desenvolvimento/C++
RPM: liblttng-ust
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: liblttng-ust
Version: 2.12.2
Release: alt2
Summary: Linux Trace Toolkit Userspace Tracer library
License: GPLv2
Group: Development/C++
Url: http://lttng.org
# Source-url: http://lttng.org/files/lttng-ust/lttng-ust-%version.tar.bz2
Source: %name-%version.tar
Patch100: lttng-gen-tp-shebang.patch
BuildRequires(pre): rpm-build-python3
BuildRequires: gcc-c++
BuildRequires: libuserspace-rcu-devel
BuildRequires: libuuid-devel
BuildRequires: libnuma-devel
# for man pages
BuildRequires: asciidoc xmlto
%description
This library may be used by user space applications to generate tracepoints within the kernel LTT subsystem.
%package devel
Summary: Linux Trace Toolkit Userspace Tracer library
Group: Development/C++
Requires: %name = %version-%release
Requires: libuserspace-rcu-devel
%description devel
This library provides support for developing programs using LTTng userspace tracing.
%package docs
Summary: Linux Trace Toolkit Userspace Tracer Documentation
Group: Development/C++
Requires: %name = %version-%release
%description docs
This package includes documentation and examples for developing programs using LTTng userspace tracing.
%prep
%setup
%patch100 -p1
%ifarch %e2k
# this is wrong code, but GCC allows it
sed -i '/asm volatile/s|)\[0\])|)[0][0])|' liblttng-ust/lttng-context-procname.c
%endif
%build
# to fix rpath
%autoreconf
%configure --docdir=%_docdir/%name --disable-static --disable-maintainer-mode
%make_build
%install
%makeinstall_std
rm -vf %buildroot%_libdir/*.la
rm -rf %buildroot/tmp/lttng-ust-divert
%files
%_libdir/*.so.*
%files devel
%_bindir/lttng-gen-tp
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/lttng-ust*.pc
%files docs
%dir %_docdir/%name/
%_docdir/%name/ChangeLog
%_docdir/%name/README.md
%_docdir/%name/COPYING
%_docdir/%name/LICENSE
%dir %_docdir/%name/examples
%_docdir/%name/examples/*
%_docdir/%name/java-agent.txt
%_man1dir/lttng-gen-tp.1.*
%_man3dir/lttng-ust.3.*
%_man3dir/lttng-ust-cyg-profile.3.*
%_man3dir/lttng-ust-dl.3.*
%_man3dir/do_tracepoint.3.*
%_man3dir/tracef.3.*
%_man3dir/tracelog.3.*
%_man3dir/tracepoint.3.*
%_man3dir/tracepoint_enabled.3.*
%changelog
…
Todas as alterações você pod ver aqui
Version: 2.12.2
Release: alt2
Summary: Linux Trace Toolkit Userspace Tracer library
License: GPLv2
Group: Development/C++
Url: http://lttng.org
# Source-url: http://lttng.org/files/lttng-ust/lttng-ust-%version.tar.bz2
Source: %name-%version.tar
Patch100: lttng-gen-tp-shebang.patch
BuildRequires(pre): rpm-build-python3
BuildRequires: gcc-c++
BuildRequires: libuserspace-rcu-devel
BuildRequires: libuuid-devel
BuildRequires: libnuma-devel
# for man pages
BuildRequires: asciidoc xmlto
%description
This library may be used by user space applications to generate tracepoints within the kernel LTT subsystem.
%package devel
Summary: Linux Trace Toolkit Userspace Tracer library
Group: Development/C++
Requires: %name = %version-%release
Requires: libuserspace-rcu-devel
%description devel
This library provides support for developing programs using LTTng userspace tracing.
%package docs
Summary: Linux Trace Toolkit Userspace Tracer Documentation
Group: Development/C++
Requires: %name = %version-%release
%description docs
This package includes documentation and examples for developing programs using LTTng userspace tracing.
%prep
%setup
%patch100 -p1
%ifarch %e2k
# this is wrong code, but GCC allows it
sed -i '/asm volatile/s|)\[0\])|)[0][0])|' liblttng-ust/lttng-context-procname.c
%endif
%build
# to fix rpath
%autoreconf
%configure --docdir=%_docdir/%name --disable-static --disable-maintainer-mode
%make_build
%install
%makeinstall_std
rm -vf %buildroot%_libdir/*.la
rm -rf %buildroot/tmp/lttng-ust-divert
%files
%_libdir/*.so.*
%files devel
%_bindir/lttng-gen-tp
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/lttng-ust*.pc
%files docs
%dir %_docdir/%name/
%_docdir/%name/ChangeLog
%_docdir/%name/README.md
%_docdir/%name/COPYING
%_docdir/%name/LICENSE
%dir %_docdir/%name/examples
%_docdir/%name/examples/*
%_docdir/%name/java-agent.txt
%_man1dir/lttng-gen-tp.1.*
%_man3dir/lttng-ust.3.*
%_man3dir/lttng-ust-cyg-profile.3.*
%_man3dir/lttng-ust-dl.3.*
%_man3dir/do_tracepoint.3.*
%_man3dir/tracef.3.*
%_man3dir/tracelog.3.*
%_man3dir/tracepoint.3.*
%_man3dir/tracepoint_enabled.3.*
%changelog
…
Todas as alterações você pod ver aqui