Files
OpenCSD/OpenCSD.spec
T
pluskalm cda40b0ef1 Accepting request 849449 from home:Guillaume_G:branches:devel:tools
- Update to 0.14.4:
  * __Update__: makefile: Add DESTDIR to install targets. 
    (github issue #30)
  * __Update__: tests: add script to run single test only.
  * __Update__: docs: update to location of ARM coresight driver 
    backports directory.
  * __Bugfix__: ETMv3: Fix missing comma in string list.
    (github issue #31)
  * __Bugfix__: makefile: tests: Fix build race problem
    (github issue #32)
  * __Bugfix__: tests: fix ignore tpiu command line options
    (github issue #28)
  Changes from 0.14.3:
  * __Update__: Fix makefile to be compliant with RPM base distros.
    (github issue #26, submitted by jlinton)
  * __Update__: Add section to autofdo document.
  * __Bugfix__: STM: fix bug that was missing ASYNC packets.
    (github issue #27, reported by subhasish Karmakar)

OBS-URL: https://build.opensuse.org/request/show/849449
OBS-URL: https://build.opensuse.org/package/show/devel:tools/OpenCSD?expand=0&rev=6
2020-11-20 07:15:29 +00:00

113 lines
3.2 KiB
RPMSpec

#
# spec file for package OpenCSD
#
# 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/
#
# Disable doc as graphviz does not include PNG support
%bcond_with build_html_doc
%define libnum 0
Name: OpenCSD
Version: 0.14.4
Release: 0
Summary: CoreSight Trace Decode library
License: BSD-3-Clause
Group: Development/Libraries/C and C++
URL: https://github.com/Linaro/OpenCSD
Source0: https://github.com/Linaro/OpenCSD/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: graphviz
%description
OpenCSD is an Arm CoreSight Trace Decode library.
%package -n libopencsd%{libnum}
Summary: C++ API for the CoreSight Trace Decode library
Group: System/Libraries
%description -n libopencsd%{libnum}
C++ API for the OpenCSD library.
%package -n libopencsd_c_api%{libnum}
Summary: C API for the CoreSight Trace Decode library
Group: System/Libraries
%description -n libopencsd_c_api%{libnum}
C API for the OpenCSD library.
%package devel
Summary: Headers for OpenCSD, a CoreSight Trace Decode library
Group: Development/Libraries/C and C++
Requires: libopencsd%{libnum} = %{version}
Requires: libopencsd_c_api%{libnum} = %{version}
%description devel
Header files and libraries for C and C++ development with OpenCSD.
%package doc
Summary: Documentation for the OpenCSD API
Group: Documentation/Other
BuildArch: noarch
%description doc
OpenCSD is an Arm CoreSight Trace Decode library.
%prep
%autosetup
%build
# Workaround - https://github.com/Linaro/OpenCSD/issues/33
sed -i -e 's/-static//' decoder/tests/build/linux/trc_pkt_lister/makefile
%make_build -C decoder/build/linux DISABLE_STATIC=1 \
%if %{with build_html_doc}
docs
%endif
%install
%make_install -C decoder/build/linux DISABLE_STATIC=1 LIB_PATH=%{_lib}
%post -n libopencsd%{libnum} -p /sbin/ldconfig
%postun -n libopencsd%{libnum} -p /sbin/ldconfig
%post -n libopencsd_c_api%{libnum} -p /sbin/ldconfig
%postun -n libopencsd_c_api%{libnum} -p /sbin/ldconfig
%files
%{_bindir}/trc_pkt_lister
%files -n libopencsd%{libnum}
%license LICENSE
%{_libdir}/libopencsd.so.%{version}
%{_libdir}/libopencsd.so.%{libnum}
%files -n libopencsd_c_api%{libnum}
%{_libdir}/libopencsd_c_api.so.%{version}
%{_libdir}/libopencsd_c_api.so.%{libnum}
%files devel
%{_libdir}/libopencsd.so
%{_libdir}/libopencsd_c_api.so
%{_includedir}/opencsd
%files doc
%doc HOWTO.md README.md TODO
%if %{with build_html_doc}
%doc decoder/docs/html/*.html
%endif
%doc decoder/docs/*.md
%changelog