|
|
88fbaf |
%global opencsd_tag 3fc611aa5d3c9d6a40a88332903cf4230da74ad3
|
|
|
88fbaf |
|
|
|
88fbaf |
Name: opencsd
|
|
|
88fbaf |
Version: 0.14.1
|
|
|
88fbaf |
Release: 1%{?dist}
|
|
|
88fbaf |
Summary: An open source CoreSight(tm) Trace Decode library
|
|
|
88fbaf |
|
|
|
88fbaf |
License: BSD
|
|
|
88fbaf |
URL: https://github.com/Linaro/OpenCSD
|
|
|
88fbaf |
Source0: https://github.com/Linaro/OpenCSD/archive/%{opencsd_tag}.tar.gz
|
|
|
88fbaf |
Patch0: 0001-opencsd-build-shared-libraries-should-have-x-set.patch
|
|
|
88fbaf |
|
|
|
88fbaf |
BuildRequires: patch
|
|
|
88fbaf |
BuildRequires: gcc
|
|
|
88fbaf |
BuildRequires: gcc-c++
|
|
|
88fbaf |
BuildRequires: git
|
|
|
88fbaf |
BuildRequires: make
|
|
|
88fbaf |
|
|
|
88fbaf |
%description
|
|
|
88fbaf |
This library provides an API suitable for the decode of ARM(r)
|
|
|
88fbaf |
CoreSight(tm) trace streams.
|
|
|
88fbaf |
|
|
|
88fbaf |
%package devel
|
|
|
88fbaf |
Summary: Development files for the CoreSight(tm) Trace Decode library
|
|
|
88fbaf |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
88fbaf |
%description devel
|
|
|
88fbaf |
The opencsd-devel package contains headers and libraries needed
|
|
|
88fbaf |
to develop CoreSight(tm) trace decoders.
|
|
|
88fbaf |
|
|
|
88fbaf |
%prep
|
|
|
88fbaf |
%setup -q -n OpenCSD-%{opencsd_tag}
|
|
|
88fbaf |
%patch0 -p1
|
|
|
88fbaf |
|
|
|
88fbaf |
%build
|
|
|
88fbaf |
cd decoder/build/linux
|
|
|
88fbaf |
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
88fbaf |
export CXXFLAGS="$RPM_OPT_FLAGS"
|
|
|
88fbaf |
LIB_PATH=%{_lib} make %{?_smp_mflags}
|
|
|
88fbaf |
|
|
|
88fbaf |
|
|
|
88fbaf |
%install
|
|
|
88fbaf |
cd decoder/build/linux
|
|
|
88fbaf |
PREFIX=%{buildroot}%{_prefix} LIB_PATH=%{_lib} make install
|
|
|
88fbaf |
|
|
|
88fbaf |
|
|
|
88fbaf |
%check
|
|
|
88fbaf |
# no upstream unit tests yet
|
|
|
88fbaf |
|
|
|
88fbaf |
%files
|
|
|
88fbaf |
%license LICENSE
|
|
|
88fbaf |
%doc HOWTO.md README.md
|
|
|
88fbaf |
%{_libdir}/*so\.*
|
|
|
88fbaf |
%{_bindir}/*
|
|
|
88fbaf |
|
|
|
88fbaf |
%files devel
|
|
|
88fbaf |
%doc decoder/docs/prog_guide/*
|
|
|
88fbaf |
%{_includedir}/*
|
|
|
88fbaf |
# no man files..
|
|
|
88fbaf |
%{_libdir}/*so
|
|
|
88fbaf |
|
|
|
88fbaf |
#------------------------------------------------------------------------------
|
|
|
88fbaf |
%changelog
|
|
|
88fbaf |
* Wed Jul 08 2020 Jeremy Linton <jeremy.linton@arm.com> - 0.14.1-1
|
|
|
88fbaf |
- First opencsd package
|