From de63818dae172a203b61347505412b75974c772b Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sun, 14 Jul 2024 11:33:54 +0000 Subject: automatic import of libtraceevent --- .gitignore | 1 + 0001-fix-missing-fstack-protector-strong.patch | 26 ++++++++++ libtraceevent.spec | 67 ++++++++++++++++++++++++++ sources | 1 + 4 files changed, 95 insertions(+) create mode 100644 0001-fix-missing-fstack-protector-strong.patch create mode 100644 libtraceevent.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..e4d6dce 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libtraceevent-1.2.1.tar.gz diff --git a/0001-fix-missing-fstack-protector-strong.patch b/0001-fix-missing-fstack-protector-strong.patch new file mode 100644 index 0000000..37bf0fc --- /dev/null +++ b/0001-fix-missing-fstack-protector-strong.patch @@ -0,0 +1,26 @@ +diff --git a/Makefile b/Makefile +index 089b621..3665e0f 100644 +--- a/Makefile ++++ b/Makefile +@@ -113,7 +113,7 @@ INCLUDES = -I. -I $(srctree)/include $(CONFIG_INCLUDES) + ifdef EXTRA_CFLAGS + CFLAGS := $(EXTRA_CFLAGS) + else +- CFLAGS := -g -Wall ++ CFLAGS := -g -Wall -fstack-protector-strong + endif + + LIBS = -ldl +diff --git a/plugins/Makefile b/plugins/Makefile +index b60352d..d5744a9 100644 +--- a/plugins/Makefile ++++ b/plugins/Makefile +@@ -75,7 +75,7 @@ INCLUDES = -I. -I.. -I../src -I $(srctree)/include $(CONFIG_INCLUDES) + ifdef EXTRA_CFLAGS + CFLAGS := $(EXTRA_CFLAGS) + else +- CFLAGS := -g -Wall ++ CFLAGS := -g -Wall -fstack-protector-strong + endif + + # Append required CFLAGS diff --git a/libtraceevent.spec b/libtraceevent.spec new file mode 100644 index 0000000..fe82f87 --- /dev/null +++ b/libtraceevent.spec @@ -0,0 +1,67 @@ +Name: libtraceevent +Version: 1.2.1 +Release: 4 +License: LGPLv2+ and GPLv2+ +Summary: Library to parse raw trace event formats + +URL: https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/ +Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/libtraceevent-%{version}.tar.gz + +Patch0000: 0001-fix-missing-fstack-protector-strong.patch + +BuildRequires: gcc +BuildRequires: xmlto +BuildRequires: asciidoc + +%global __provides_exclude_from ^%{_libdir}/traceevent/plugins + +%description +libtraceevent is a library to parse raw trace event formats. + +%package devel +Summary: Development headers of %{name} +Requires: %{name}%{_isa} = %{version}-%{release} + +%description devel +Development headers of %{name}-libs + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +MANPAGE_DOCBOOK_XSL=`rpm -ql docbook-style-xsl | grep manpages/docbook.xsl` +%set_build_flags +%make_build prefix=%{_prefix} libdir=%{_libdir} MANPAGE_XSL=%{MANPAGE_DOCBOOK_XSL} all doc + +%install +%make_install prefix=%{_prefix} libdir=%{_libdir} install doc-install +rm -rf %{buildroot}/%{_libdir}/libtraceevent.a + +%files +%license LICENSES/LGPL-2.1 +%license LICENSES/GPL-2.0 +%{_libdir}/traceevent/ +%{_libdir}/libtraceevent.so.%{version} +%{_libdir}/libtraceevent.so.1 +%{_mandir}/man3/tep_*.3.* +%{_mandir}/man3/libtraceevent.3.* +%{_mandir}/man3/trace_seq*.3.* +%{_docdir}/%{name}-doc + +%files devel +%{_includedir}/traceevent/ +%{_libdir}/libtraceevent.so +%{_libdir}/pkgconfig/libtraceevent.pc + +%changelog +* Thu Jul 13 2023 liyanan - 1.2.1-4 +- Delete confilt with perf when the kernel is greater than 6.2 + +* Thu Jan 19 2023 yaoxin - 1.2.1-3 +- Add conflict with perf + +* Mon Dec 05 2022 xu_ping - 1.2.1-2 +- Add -fstack-protector-strong compile options + +* Fri Jan 14 2022 houyingchao - 1.2.1-1 +- Init package diff --git a/sources b/sources new file mode 100644 index 0000000..ccd8bbf --- /dev/null +++ b/sources @@ -0,0 +1 @@ +b63b534c3aa765856299ea18c358ab34 libtraceevent-1.2.1.tar.gz -- cgit v1.2.3