Blame SPECS/opencsd.spec

908b74
%global opencsd_tag dac554d62d514b202174506995afc0e109ef3fea
908b74
908b74
Name:           opencsd
908b74
Version:        1.2.0
908b74
Release:        2%{?dist}
908b74
Summary:        An open source CoreSight(tm) Trace Decode library
908b74
908b74
License:        BSD
908b74
URL:            https://github.com/Linaro/OpenCSD
908b74
Source0:        https://github.com/Linaro/OpenCSD/archive/%{opencsd_tag}.tar.gz
908b74
908b74
BuildRequires:  patch
908b74
BuildRequires:  gcc
908b74
BuildRequires:  gcc-c++
908b74
BuildRequires:  git
908b74
BuildRequires:  make
908b74
908b74
%description
908b74
This library provides an API suitable for the decode of ARM(r)
908b74
CoreSight(tm) trace streams.
908b74
908b74
%package devel
908b74
Summary: Development files for the CoreSight(tm) Trace Decode library
908b74
Requires: %{name}%{?_isa} = %{version}-%{release}
908b74
%description devel
908b74
The opencsd-devel package contains headers and libraries needed
908b74
to develop CoreSight(tm) trace decoders.
908b74
908b74
%prep
908b74
%setup -q -n OpenCSD-%{opencsd_tag}
908b74
908b74
%build
908b74
cd decoder/build/linux
908b74
export CFLAGS="$RPM_OPT_FLAGS"
908b74
export CXXFLAGS="$RPM_OPT_FLAGS"
908b74
export LDFLAGS="-pie -z now"
908b74
LIB_PATH=%{_lib} make %{?_smp_mflags}
908b74
908b74
908b74
%install
908b74
cd decoder/build/linux
908b74
PREFIX=%{buildroot}%{_prefix} LIB_PATH=%{_lib} make install DISABLE_STATIC=1 DEF_SO_PERM=755
908b74
908b74
908b74
%check
908b74
# no upstream unit tests yet
908b74
908b74
%files
908b74
%license LICENSE
908b74
%doc HOWTO.md README.md
908b74
%{_libdir}/*so\.*
908b74
%{_bindir}/*
908b74
908b74
%files devel
908b74
%doc decoder/docs/prog_guide/*
908b74
%{_includedir}/*
908b74
# no man files..
908b74
%{_libdir}/*so
908b74
908b74
#------------------------------------------------------------------------------
908b74
%changelog
908b74
* Fri Jan 21 2022 Michael Petlan <mpetlan@redhat.com> - 1.2.0-2
908b74
- Update to upstream 1.2.0 -- fix opencsd_tag
908b74
  Related: rhbz#2041578
908b74
908b74
  * Fri Jan 21 2022 Michael Petlan <mpetlan@redhat.com> - 1.2.0-1
908b74
- Update to upstream 1.2.0
908b74
  Related: rhbz#2041578
908b74
908b74
* Tue Dec 14 2021 Michael Petlan <mpetlan@redhat.com> - 1.0.0-5
908b74
- Added some linker hardening flags to pass annocheck
908b74
  Related: rhbz#2031802
908b74
908b74
  * Tue Dec 14 2021 Michael Petlan <mpetlan@redhat.com> - 1.0.0-5
908b74
- Added gating
908b74
  Related: rhbz#2031794
908b74
908b74
* Tue Dec 07 2021 Michael Petlan <mpetlan@redhat.com> - 1.0.0-4
908b74
- Bump NVR, needed for erratum RHBA-2021:85351
908b74
  Related: rhbz#2029382
908b74
908b74
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.0-3
908b74
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
908b74
  Related: rhbz#1991688
908b74
908b74
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.0-2
908b74
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
908b74
908b74
* Fri Apr  9 2021 Michael Petlan <mpetlan@redhat.com> - 1.0.0-1
908b74
- Rebased to upstream 1.0.0
908b74
908b74
* Wed Sep 23 2020 Jeremy Linton <jeremy.linton@arm.com> - 0.14.3-1
908b74
- Update to upstream 0.14.3
908b74
908b74
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-2
908b74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
908b74
908b74
* Wed Jul 08 2020 Jeremy Linton <jeremy.linton@arm.com> - 0.14.1-1
908b74
- First opencsd package