summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--libtracefs.spec57
-rw-r--r--sources1
3 files changed, 59 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7b49ba0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libtracefs-1.8.1.tar.gz
diff --git a/libtracefs.spec b/libtracefs.spec
new file mode 100644
index 0000000..e7fdbdb
--- /dev/null
+++ b/libtracefs.spec
@@ -0,0 +1,57 @@
+Name: libtracefs
+Version: 1.8.1
+Release: 1
+License: LGPL-2.1-or-later AND GPL-2.0-or-later AND GPL-2.0-only
+Summary: Library for access kernel tracefs
+
+URL: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/
+Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-%{version}.tar.gz
+BuildRequires: gcc
+BuildRequires: meson >= 0.50.0
+BuildRequires: xmlto
+BuildRequires: asciidoc
+BuildRequires: pkgconfig(libtraceevent) >= 1.8.1
+# The libtracefs is meant to be used by perf, trace-cmd etc. in the future, before it's ready in perf, let's add a conflict
+Conflicts: trace-cmd < 2.9.1-6
+
+%description
+libtracefs is a library for accessing kernel tracefs
+
+%package devel
+Summary: Development headers of %{name}
+Requires: %{name}%{_isa} = %{version}-%{release}
+
+%description devel
+Development headers of %{name}
+
+%prep
+%autosetup -p1
+
+%build
+%meson
+%meson_build
+
+%install
+%meson_install
+
+%files
+%license LICENSES/LGPL-2.1
+%license LICENSES/GPL-2.0
+%{_libdir}/%{name}.so.1
+%{_libdir}/%{name}.so.%{version}
+%{_docdir}/libtracefs-doc
+%{_mandir}/man1/*
+%{_mandir}/man3/*
+
+%files devel
+%dir %{_includedir}/tracefs
+%{_includedir}/tracefs/tracefs.h
+%{_libdir}/pkgconfig/%{name}.pc
+%{_libdir}/%{name}.so
+
+%changelog
+* Tue Jan 07 2025 Funda Wang <fundawang@yeah.net> - 1.8.1-1
+- update to 1.8.1
+
+* Sun Jun 30 2024 shafeipaozi <sunbo.oerv@isrc.iscas.ac.cn> - 1.8.0-1
+- init
diff --git a/sources b/sources
new file mode 100644
index 0000000..375adcd
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+ebaad0eddfcdc7934f7f39cb4f36e81c libtracefs-1.8.1.tar.gz