Init with libtracecmd 1.1.0
Signed-off-by: Zamir SUN <sztsian@gmail.com>
This commit is contained in:
parent
4143264139
commit
98e9266293
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/trace-cmd-libtracecmd-1.1.0.tar.gz
|
69
libtracecmd.spec
Normal file
69
libtracecmd.spec
Normal file
@ -0,0 +1,69 @@
|
||||
Name: libtracecmd
|
||||
Version: 1.1.0
|
||||
Release: 1%{?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} --disable-rpath" 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.0.0
|
||||
%{_docdir}/libtracecmd-doc
|
||||
%{_mandir}/man3/libtracecmd*
|
||||
%{_mandir}/man3/tracecmd*
|
||||
|
||||
%files -n libtracecmd-devel
|
||||
%{_libdir}/pkgconfig/libtracecmd.pc
|
||||
%{_libdir}/libtracecmd.so
|
||||
%{_includedir}/trace-cmd
|
||||
|
||||
%changelog
|
||||
* Mon Apr 19 2021 Zamir SUN <sztsian@gmail.com> - 1.1.0-1
|
||||
- Initial libtracecmd 1.1.0
|
Loading…
Reference in New Issue
Block a user