diff --git a/libtraceevent.spec b/libtraceevent.spec index b2c515630dd829cd9bf7dd4fee2f3838b70721ec..cf9744d6a4bddad76d06d0afeb750033064956dd 100644 --- a/libtraceevent.spec +++ b/libtraceevent.spec @@ -1,41 +1,41 @@ %global anolis_release 1 -Name: libtraceevent -Version: 1.7.1 -Release: %{anolis_release}%{?dist} -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 -BuildRequires: gcc -BuildRequires: xmlto -BuildRequires: asciidoc -BuildRequires: docbook-style-xsl +Name: libtraceevent +Version: 1.7.1 +Release: %{anolis_release}%{?dist} +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 -%global __provides_exclude_from ^%{_libdir}/traceevent/plugins +BuildRequires: gcc xmlto asciidoc docbook-style-xsl +%global __provides_exclude_from ^%{_libdir}/traceevent/plugins %description -libtraceevent is a library to parse raw trace event formats. +libtraceevent is a library that provides a set of functions for parsing and manipulating +trace events in the Linux kernel. It is used to extract information from trace events and +to create new trace events. + +The library is used by various tools that work with trace events in the Linux kernel, such as perf %package devel -Summary: Development headers of %{name} +Summary: Header files for %{name} Requires: %{name} = %{version}-%{release} %description devel -Development headers of %{name}-libs +The package provides header and other needed development files for the library %{name} %package doc -Summary: Documents for %{name} -BuildArch: noarch -Requires: %{name} = %{version}-%{release} +Summary: Documentation files for %{name} +Requires: %{name} = %{EVR} +BuildArch: noarch -%description doc -Doc pages for %{name}. +%description doc +The %{name}-doc package contains documentation files for %{name}. %prep -%setup -q +%autosetup -p1 %build %set_build_flags @@ -46,23 +46,32 @@ Doc pages for %{name}. %make_install prefix=%{_prefix} libdir=%{_libdir} install doc-install rm -rf %{buildroot}/%{_libdir}/libtraceevent.a +%generate_compatibility_deps + %files -%license LICENSES/LGPL-2.1 %license LICENSES/GPL-2.0 +%license LICENSES/LGPL-2.1 +%dir %{abidir} %{_libdir}/traceevent/ +%{abidir}/plugin*.dump %{_libdir}/libtraceevent.so.%{version} %{_libdir}/libtraceevent.so.1 +%{abidir}/libtraceevent.dump %{_mandir}/man3/* -%files doc -%doc %{_docdir}/%{name}-doc/* - %files devel %{_includedir}/traceevent/ %{_libdir}/libtraceevent.so %{_libdir}/pkgconfig/libtraceevent.pc +%files doc +%doc README +%doc %{_docdir}/%{name}-doc/* + %changelog +* Wed Apr 12 2023 yuanhui 1.7.1-2 +- Optimize the spec file + * Fri Jan 20 2023 Funda Wang - 1.7.1-1 - New version 1.7.1