File libpinktrace.spec of Package libpinktrace
#
# spec file for package libpinktrace
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2010 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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 sover 9
%define api 0.9
%define lname _0_9-%{sover}
Name: libpinktrace
Version: 0.9.6
Release: 0
Summary: Ptrace Wrapper Library
License: BSD-3-Clause
Group: System/Libraries
URL: https://dev.exherbo.org/~alip/pinktrace/
Source: https://dev.exherbo.org/~alip/pinktrace/release/pinktrace-%{version}.tar.bz2
BuildRequires: check-devel >= 0.9.4
BuildRequires: pkgconfig
BuildRoot: %{_tmppath}/build-%{name}-%{version}
# ppc archs excluded on recommendation of the author
%if 0%{?suse_version} > 1110
ExcludeArch: aarch64 ppc ppc64 ppc64le
%else
ExcludeArch: aarch64 ppc ppc64 ppc64le %ix86
%endif
%description
PinkTrace is a lightweight C99 library that eases the writing of tracing
applications.
It consists of the following parts:
* Wrappers around different ptrace() requests.
* An API for decoding arguments (strings, socket addresses, ...)
* An experimental API for encoding arguments.
%package -n libpinktrace%{lname}
Summary: Ptrace Wrapper Library
Group: System/Libraries
%description -n libpinktrace%{lname}
PinkTrace is a lightweight C99 library that eases the writing of tracing
applications.
It consists of the following parts:
* Wrappers around different ptrace() requests.
* An API for decoding arguments (strings, socket addresses, ...)
* An experimental API for encoding arguments.
%package -n libpinktrace-devel
Summary: Ptrace Wrapper Library
Group: Development/Libraries/C and C++
Requires: libpinktrace%{lname} = %{version}
%description -n libpinktrace-devel
PinkTrace is a lightweight C99 library that eases the writing of tracing
applications.
It consists of the following parts:
* Wrappers around different ptrace() requests.
* An API for decoding arguments (strings, socket addresses, ...)
* An experimental API for encoding arguments.
%prep
%setup -q -n "pinktrace-%{version}"
%build
%configure \
--disable-silent-rules \
--disable-static \
--docdir="%{_docdir}/%{name}-devel"
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%check
make %{?_smp_mflags} check
%post -n libpinktrace%{lname} -p /sbin/ldconfig
%postun -n libpinktrace%{lname} -p /sbin/ldconfig
%files -n libpinktrace%{lname}
%defattr(-,root,root)
%{_libdir}/libpinktrace_%{api}.so.%{sover}
%{_libdir}/libpinktrace_%{api}.so.%{sover}.*
%files -n libpinktrace-devel
%defattr(-,root,root)
%doc COPYRIGHT README.markdown
%{_includedir}/pinktrace-%{api}
%{_libdir}/libpinktrace_%{api}.so
%{_libdir}/pkgconfig/pinktrace.pc
%changelog