File libipt.spec of Package libipt

#
# spec file for package libipt
#
# Copyright (c) 2023 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/
#

%define sonumber 2

Name:           libipt
Version:        2.0.5
Release:        0
Summary:        Intel Processor Trace Decoder Library
License:        BSD-3-Clause
Group:          Development/Libraries/C and C++
URL:            https://github.com/intel/libipt
Source0:        https://github.com/intel/%{name}/archive/refs/tags/v%{version}.tar.gz
BuildRequires:  cmake >= 2.8.12
#Requires:

%description
The Intel Processor Trace (Intel PT) Decoder Library is Intel's reference
implementation for decoding Intel PT. It can be used as a standalone library or
it can be partially or fully integrated into your tool.

The library comes with a set of sample tools built on top of it and a test
system built on top of the sample tools. The samples demonstrate how to use the
library and may serve as a starting point for integrating the library into your
tool.

%package -n %{name}%{sonumber}
Summary:        Intel Processor Trace Decoder Library

%description -n %{name}%{sonumber}
This package contains shared library for Intel Processor Trace.

%package devel
Summary:        Development files for %{name}
Requires:       %{name} = %{version}

%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%prep
%setup -q

%build
%cmake
%cmake_build

%install
%cmake_install

%check
%ctest

%post -n %{name}%{sonumber} -p /sbin/ldconfig
%postun -n %{name}%{sonumber} -p /sbin/ldconfig

%files -n %{name}%{sonumber}
#%license add-license-file-here
#%doc add-main-docs-here
%{_libdir}/*.so.*

%files devel
#%doc add-devel-docs-here
%{_includedir}/*
%{_libdir}/*.so

%changelog