Name: libtracecmd Version: 1.1.3 Release: 3%{?dist} License: LGPLv2 Summary: A library for reading tracing instances stored in a trace file URL: https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/ Source0: https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/trace-cmd-libtracecmd-%{version}.tar.gz BuildRequires: make BuildRequires: gcc BuildRequires: xmlto BuildRequires: asciidoc BuildRequires: mlocate BuildRequires: graphviz doxygen BuildRequires: libxml2-devel BuildRequires: gcc-c++ BuildRequires: freeglut-devel BuildRequires: json-c-devel BuildRequires: libtraceevent-devel BuildRequires: libtracefs-devel BuildRequires: chrpath %description A library containing functions for getting information and reading tracing instances stored in a trace file that can be used without the trace-cmd application. %package -n libtracecmd-devel Summary: Development files for libtracecmd Requires: libtracecmd%{_isa} = %{version}-%{release} %description -n libtracecmd-devel Development files of the libtracecmd library %prep %autosetup -n trace-cmd-libtracecmd-%{version} %build # MANPAGE_DOCBOOK_XSL define is hack to avoid using locate MANPAGE_DOCBOOK_XSL=`rpm -ql docbook-style-xsl | grep manpages/docbook.xsl` CFLAGS="%{optflags} -D_GNU_SOURCE" LDFLAGS="%{build_ldflags}" BUILD_TYPE=Release \ make V=9999999999 MANPAGE_DOCBOOK_XSL=$MANPAGE_DOCBOOK_XSL \ prefix=%{_prefix} libdir=%{_libdir} %{?_smp_mflags}\ PYTHON_VERS=python3 libs doc %install make libdir=%{_libdir} prefix=%{_prefix} V=1 DESTDIR=%{buildroot}/ CFLAGS="%{optflags} -D_GNU_SOURCE" LDFLAGS="%{build_ldflags} -z muldefs " BUILD_TYPE=Release install_libs install_doc # Remove trace-cmd man pages and docs, leaving only the libtracecmd ones, as there are no separate makefile target for libtracecmd documents find %{buildroot}%{_mandir} -iname trace-cmd\* -exec rm -rf {} \; rm -rf %{buildroot}/%{_docdir}/trace-cmd chrpath --delete %{buildroot}/%{_libdir}/libtracecmd.so* %files %license COPYING COPYING.LIB %doc README %{_libdir}/libtracecmd.so.1 %{_libdir}/libtracecmd.so.1.1.3 %{_docdir}/libtracecmd-doc %{_mandir}/man3/libtracecmd* %{_mandir}/man3/tracecmd* %files -n libtracecmd-devel %{_libdir}/pkgconfig/libtracecmd.pc %{_libdir}/libtracecmd.so %{_includedir}/trace-cmd %changelog * Wed Apr 13 2022 Zamir SUN - 1.1.3-1 - Update to 1.1.3 * Thu Jan 20 2022 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Apr 19 2021 Zamir SUN - 1.1.0-1 - Initial libtracecmd 1.1.0