2021-04-24 04:48:29 +00:00
|
|
|
Name: libtracecmd
|
2022-04-15 06:49:41 +00:00
|
|
|
Version: 1.1.3
|
2022-04-15 07:27:17 +00:00
|
|
|
Release: 2%{?dist}
|
2021-04-24 04:48:29 +00:00
|
|
|
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
|
2022-04-15 06:49:41 +00:00
|
|
|
|
|
|
|
ExcludeArch: %{ix86} %{arm}
|
|
|
|
|
2021-04-24 04:48:29 +00:00
|
|
|
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
|
2022-04-15 07:27:17 +00:00
|
|
|
BuildRequires: libtraceevent-devel >= 1.5.3
|
|
|
|
BuildRequires: libtracefs-devel >= 1.3.1
|
2021-04-24 04:48:29 +00:00
|
|
|
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`
|
2022-04-15 06:49:41 +00:00
|
|
|
CFLAGS="%{optflags} -D_GNU_SOURCE" LDFLAGS="%{build_ldflags}" BUILD_TYPE=Release \
|
2021-04-24 04:48:29 +00:00
|
|
|
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
|
2022-04-15 06:49:41 +00:00
|
|
|
%{_libdir}/libtracecmd.so.1.1.3
|
2021-04-24 04:48:29 +00:00
|
|
|
%{_docdir}/libtracecmd-doc
|
|
|
|
%{_mandir}/man3/libtracecmd*
|
|
|
|
%{_mandir}/man3/tracecmd*
|
|
|
|
|
|
|
|
%files -n libtracecmd-devel
|
|
|
|
%{_libdir}/pkgconfig/libtracecmd.pc
|
|
|
|
%{_libdir}/libtracecmd.so
|
|
|
|
%{_includedir}/trace-cmd
|
|
|
|
|
|
|
|
%changelog
|
2022-04-15 07:27:17 +00:00
|
|
|
* Fri Apr 15 2022 Zamir SUN <sztsian@gmail.com> - 1.1.3-2
|
|
|
|
- Rebuild with newer libtraceevent
|
|
|
|
|
2022-04-15 06:49:41 +00:00
|
|
|
* Wed Apr 13 2022 Zamir SUN <sztsian@gmail.com> - 1.1.3-1
|
|
|
|
- Update to 1.1.3
|
|
|
|
|
2022-01-20 17:26:35 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-22 12:34:21 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-04-24 04:48:29 +00:00
|
|
|
* Mon Apr 19 2021 Zamir SUN <sztsian@gmail.com> - 1.1.0-1
|
|
|
|
- Initial libtracecmd 1.1.0
|