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.1.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
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  binutils-devel
BuildRequires:  libftdi1-devel
BuildRequires:  libelf-devel
BuildRequires:  libusb-1_0-devel
BuildRequires:  ncurses-devel
BuildRequires:  cppzmq-devel
BuildRequires:  meson

%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

%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
mkdir -p %{buildroot}%{_udevrulesdir}
mv %{buildroot}/etc/udev/rules.d/60-orbcode.rules %{buildroot}%{_udevrulesdir}
rm -rf %{buildroot}/etc

%post -n orbuculum -p /sbin/ldconfig
%postun -n orbuculum -p /sbin/ldconfig

%files
%license COPYING
%doc CHANGES.md README.md
%doc Docs/*-Interface
%{_bindir}/*
%{_libdir}/liborb.so.0
%{_datadir}/*
%{_udevrulesdir}

%files devel
%license COPYING
%{_libdir}/liborb.so

%changelog
openSUSE Build Service is sponsored by