forked from pool/libtracefs
Accepting request 858396 from home:jengelh:dev
OBS-URL: https://build.opensuse.org/request/show/858396 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtracefs?expand=0&rev=1
This commit is contained in:
commit
96b42b44e1
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
47
294319.patch
Normal file
47
294319.patch
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
From e1f6b50e194d0da8fec4510acfe3a08d37a3736b Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
|
||||||
|
Date: Wed, 23 Dec 2020 10:31:24 -0500
|
||||||
|
Subject: [PATCH] libtracefs: Do not show the full version in the library
|
||||||
|
SONAME
|
||||||
|
|
||||||
|
The SONAME of the library should point to the same object as the
|
||||||
|
libtracefs.so does. Since the soft link libtracefs.so points to
|
||||||
|
libtracefs.so.1, then so should the SONAME of the executable.
|
||||||
|
|
||||||
|
Reported-by: Jan Engelhardt <ej+bko@inai.de>
|
||||||
|
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=210875
|
||||||
|
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
|
||||||
|
---
|
||||||
|
scripts/utils.mk | 2 +-
|
||||||
|
src/Makefile | 2 +-
|
||||||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/scripts/utils.mk b/scripts/utils.mk
|
||||||
|
index 7742e19..32a9b3c 100644
|
||||||
|
--- a/scripts/utils.mk
|
||||||
|
+++ b/scripts/utils.mk
|
||||||
|
@@ -56,7 +56,7 @@ do_build_static_lib = \
|
||||||
|
|
||||||
|
do_compile_shared_library = \
|
||||||
|
($(print_shared_lib_compile) \
|
||||||
|
- $(CC) --shared $^ '-Wl,-soname,$(@F),-rpath=$$ORIGIN' -o $@ $(LIBS))
|
||||||
|
+ $(CC) --shared $^ '-Wl,-soname,$(1),-rpath=$$ORIGIN' -o $@ $(LIBS))
|
||||||
|
|
||||||
|
do_compile_plugin_obj = \
|
||||||
|
($(print_plugin_obj_compile) \
|
||||||
|
diff --git a/src/Makefile b/src/Makefile
|
||||||
|
index 52f17af..3f64905 100644
|
||||||
|
--- a/src/Makefile
|
||||||
|
+++ b/src/Makefile
|
||||||
|
@@ -17,7 +17,7 @@ $(LIBTRACEFS_STATIC): $(OBJS)
|
||||||
|
$(Q)$(call do_build_static_lib)
|
||||||
|
|
||||||
|
$(LIBTRACEFS_SHARED): $(OBJS)
|
||||||
|
- $(Q)$(call do_compile_shared_library)
|
||||||
|
+ $(Q)$(call do_compile_shared_library,$(notdir $(LIBTRACEFS_SHARED_VERSION)))
|
||||||
|
|
||||||
|
$(LIBTRACEFS_SHARED_VERSION): $(LIBTRACEFS_SHARED)
|
||||||
|
@ln -sf $(<F) $@
|
||||||
|
--
|
||||||
|
2.25.4
|
||||||
|
|
3
libtracefs-1.0.0.tar.gz
Normal file
3
libtracefs-1.0.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e733d419a5bd4c2da993094e81ba59df1f07a553ce7aa36143b55cbea75ed293
|
||||||
|
size 39495
|
5
libtracefs.changes
Normal file
5
libtracefs.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 22 19:28:57 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Initial package (version 1.0.0) for build.opensuse.org
|
||||||
|
- Add 294319.patch
|
77
libtracefs.spec
Normal file
77
libtracefs.spec
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
#
|
||||||
|
# spec file for package libtracefs
|
||||||
|
#
|
||||||
|
# Copyright (c) 2020 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: libtracefs
|
||||||
|
%define lname libtracefs1
|
||||||
|
Version: 1.0.0
|
||||||
|
Release: 0
|
||||||
|
Summary: Linux kernel trace file system library
|
||||||
|
License: LGPL-2.1-only
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
URL: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/
|
||||||
|
Source: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-%version.tar.gz
|
||||||
|
Patch1: 294319.patch
|
||||||
|
BuildRequires: pkgconfig(libtraceevent)
|
||||||
|
BuildRequires: pkg-config
|
||||||
|
BuildRequires: xz
|
||||||
|
|
||||||
|
%description
|
||||||
|
This library provides C APIs to access the kernel trace file system.
|
||||||
|
|
||||||
|
%package -n %lname
|
||||||
|
Summary: Linux kernel trace file system library
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n %lname
|
||||||
|
This library provides C APIs to access the kernel trace file system.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for libtracefs
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: %lname = %version
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This library provides C APIs to access the kernel trace file system.
|
||||||
|
|
||||||
|
This subpackage contains the header files.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%make_build prefix="%_prefix"
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install prefix="%_prefix"
|
||||||
|
# always the same issues
|
||||||
|
find "%buildroot/%_includedir" -type f -name "*.h" -exec chmod a-x {} +
|
||||||
|
rm -f "%buildroot/%_libdir"/*.a
|
||||||
|
|
||||||
|
%post -n %lname -p /sbin/ldconfig
|
||||||
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files -n %lname
|
||||||
|
%_libdir/libtracefs.so.1*
|
||||||
|
%license LICENSES/LGPL-2.1
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%_includedir/*
|
||||||
|
%_libdir/libtracefs.so
|
||||||
|
%_libdir/pkgconfig/*.pc
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user