File orbuculum.spec of Package orbuculum
#
# spec file for package orbuculum
#
# 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: orbuculum
Version: 2.2.0
Release: 0
Summary: ARM Debug Trace analysis tools
License: BSD-3-Clause
URL: https://github.com/orbcode/orbuculum
Source: https://github.com/orbcode/orbuculum/archive/refs/tags/V%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: https://www.prevanders.net/libdwarf-0.7.0.tar.xz
BuildRequires: pkgconfig
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(capstone)
BuildRequires: pkgconfig(libzstd)
BuildRequires: binutils-devel
BuildRequires: libftdi1-devel
BuildRequires: libelf-devel
BuildRequires: libusb-1_0-devel
BuildRequires: ncurses-devel
BuildRequires: cppzmq-devel
BuildRequires: meson
BuildRequires: gcc-c++
%description
Orbuculum is a set of tools for decoding and presenting output flows from
the Debug pins of a CORTEX-M CPU.
%package devel
Summary: Developemnt files for %{name}
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
Development files for %{name}.
%prep
%setup -q
mkdir -p subprojects/packagecache/
cp %SOURCE1 subprojects/packagecache/
%build
%if 0%{?sle_version} < 150500
sed -i "s|dependency('ncurses', 'ncursesw')|dependency('ncurses'), dependency('ncursesw')|g" meson.build
%endif
%meson
%meson_build
%install
%meson_install
rm -rf %{buildroot}%{_mandir}
%check
%post -n orbuculum -p /sbin/ldconfig
%postun -n orbuculum -p /sbin/ldconfig
%files
%license LICENSE
%doc CHANGES.md README.md
%doc Docs/*-Interface
%{_bindir}/*
%{_libdir}/liborb.so.*
%{_libdir}/libdwarf.so.*
%{_datadir}/orbcode*
%{_datadir}/dwarfdump*
%{_udevrulesdir}
%files devel
%license LICENSE
%{_libdir}/liborb.so
%{_libdir}/libdwarf.so
%{_libdir}/pkgconfig/libdwarf.pc
%{_includedir}/*
%changelog