Blame SPECS/fstrm.spec

8a8764
%global _hardened_build 1
8a8764
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
8a8764
8a8764
Name: fstrm
8a8764
Summary: Frame Streams implementation in C
8a8764
Version: 0.6.1
8a8764
Release: 3%{?dist}
8a8764
License: MIT
8a8764
URL: https://github.com/farsightsec/fstrm
8a8764
Source0: https://dl.farsightsecurity.com/dist/%{name}/%{name}-%{version}.tar.gz
8a8764
# Patches to libmy library
8a8764
# https://github.com/farsightsec/libmy/pull/4
8a8764
Patch1: fstrm-0.6.1-Fix-deadcode-and-check-return-code.patch
8a8764
Patch2: fstrm-0.6.1-Invalid-dereference.patch
8a8764
Patch3: fstrm-0.6.1-Possible-resource-leak-fix.patch
8a8764
Patch4: fstrm-0.6.1-Fix-CLANG_WARNING.patch
8a8764
BuildRequires: autoconf automake libtool
8a8764
BuildRequires: libevent-devel
8a8764
# Upstream repository without a single release
8a8764
# https://github.com/farsightsec/libmy
8a8764
# Always included as sources copy in farsightsec projects
8a8764
Provides: bundled(libmy)
8a8764
8a8764
%description
8a8764
Frame Streams is a light weight, binary clean protocol that allows for the
8a8764
transport of arbitrarily encoded data payload sequences with minimal framing
8a8764
overhead -- just four bytes per data frame. Frame Streams does not specify
8a8764
an encoding format for data frames and can be used with any data serialization
8a8764
format that produces byte sequences, such as Protocol Buffers, XML, JSON,
8a8764
MessagePack, YAML, etc.
8a8764
8a8764
%package utils
8a8764
Summary: Frame Streams (fstrm) utilities
8a8764
Requires: %{name}%{?_isa} = %{version}-%{release}
8a8764
8a8764
%description utils
8a8764
Frame Streams is a light weight, binary clean protocol that allows for the
8a8764
transport of arbitrarily encoded data payload sequences with minimal framing
8a8764
overhead -- just four bytes per data frame. Frame Streams does not specify
8a8764
an encoding format for data frames and can be used with any data serialization
8a8764
format that produces byte sequences, such as Protocol Buffers, XML, JSON,
8a8764
MessagePack, YAML, etc.
8a8764
8a8764
The fstrm-utils package contains command line utilities.
8a8764
8a8764
%package devel
8a8764
Summary: Development Files for fstrm library
8a8764
Requires: %{name}%{?_isa} = %{version}-%{release}
8a8764
8a8764
%description devel
8a8764
The fstrm-devel package contains header files required to build an application
8a8764
using fstrm library.
8a8764
8a8764
%package doc
8a8764
Summary: API documentation for fstrm library
8a8764
BuildArch: noarch
8a8764
BuildRequires: doxygen
8a8764
BuildRequires: make
8a8764
Requires: %{name} = %{version}-%{release}
8a8764
8a8764
%description doc
8a8764
The fstrm-doc package contains Doxygen generated API documentation for
8a8764
fstrm library.
8a8764
8a8764
%prep
8a8764
%autosetup -p1
8a8764
# regenerated build scripts to:
8a8764
# - remove RPATHs
8a8764
# - allow dynamic linking and execution of 'make check'
8a8764
autoreconf -fi
8a8764
8a8764
%build
8a8764
%configure --disable-static
8a8764
%make_build
8a8764
make html
8a8764
8a8764
%install
8a8764
# install the library
8a8764
%make_install
8a8764
rm %{buildroot}%{_libdir}/libfstrm.la
8a8764
8a8764
# install documentation
8a8764
mkdir -p %{buildroot}%{_pkgdocdir}/
8a8764
cp -ar html %{buildroot}%{_pkgdocdir}/html
8a8764
8a8764
%check
8a8764
make check
8a8764
8a8764
%if 0%{?fedora} || 0%{?rhel} > 7
8a8764
# https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets
8a8764
%else
8a8764
%post -p /sbin/ldconfig
8a8764
%postun -p /sbin/ldconfig
8a8764
%endif
8a8764
8a8764
%files
8a8764
%doc COPYRIGHT LICENSE
8a8764
%exclude %{_pkgdocdir}/html
8a8764
%{_libdir}/libfstrm.so.*
8a8764
8a8764
%files utils
8a8764
%{_bindir}/fstrm_capture
8a8764
%{_bindir}/fstrm_dump
8a8764
%{_bindir}/fstrm_replay
8a8764
%{_mandir}/man1/fstrm_*
8a8764
8a8764
%files devel
8a8764
%doc README.md
8a8764
%{_includedir}/fstrm.h
8a8764
%{_includedir}/fstrm/
8a8764
%{_libdir}/pkgconfig/libfstrm.pc
8a8764
%{_libdir}/libfstrm.so
8a8764
8a8764
%files doc
8a8764
%doc %{_pkgdocdir}/html
8a8764
8a8764
%changelog
8a8764
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com>
8a8764
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
8a8764
  Related: rhbz#1991688
8a8764
8a8764
* Fri Apr 09 2021 Petr Menšík <pemensik@redhat.com> - 0.6.1-2
8a8764
- Apply coverity fixes also to bundled libmy
8a8764
8a8764
* Thu Apr 08 2021 Petr Menšík <pemensik@redhat.com> - 0.6.1-1
8a8764
- Update to 0.6.1 (#1946415)
8a8764
8a8764
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 0.6.0-5
8a8764
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
8a8764
8a8764
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-4
8a8764
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
8a8764
8a8764
* Tue Sep 15 2020 Petr Menšík <pemensik@redhat.com> - 0.6.0-3
8a8764
- Move command line tools to utils subpackage
8a8764
8a8764
* Tue Sep 15 2020 Petr Menšík <pemensik@redhat.com> - 0.6.0-2
8a8764
- Rebuilt for libevent rebase
8a8764
8a8764
* Tue Aug 11 2020 Michał Kępień <michal@isc.org> - 0.6.0-1
8a8764
- Update to new upstream version 0.6.0
8a8764
8a8764
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-3
8a8764
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8a8764
8a8764
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
8a8764
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8a8764
8a8764
* Thu Oct 10 2019 Tomas Krizek <tomas.krizek@nic.cz> - 0.5.0-1
8a8764
- Update to new upstream version 0.5.0
8a8764
8a8764
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-4
8a8764
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
8a8764
8a8764
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-3
8a8764
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8a8764
8a8764
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
8a8764
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8a8764
8a8764
* Thu May 17 2018 Tomas Krizek <tomas.krizek@nic.cz> - 0.4.0-1
8a8764
- Update to new upstream version 0.4.0 BZ#1577420
8a8764
8a8764
* Thu Apr 05 2018 Tomas Krizek <tomas.krizek@nic.cz> - 0.3.2-1
8a8764
- Update to new upstream version 0.3.2
8a8764
8a8764
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-5
8a8764
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8a8764
8a8764
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-4
8a8764
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
8a8764
8a8764
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-3
8a8764
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8a8764
8a8764
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
8a8764
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8a8764
8a8764
* Sun Oct 23 2016 Jan Vcelak <jvcelak@fedoraproject.org> - 0.3.0-1
8a8764
- new upstream release
8a8764
8a8764
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-3
8a8764
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8a8764
8a8764
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
8a8764
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8a8764
8a8764
* Mon Dec 15 2014 Jan Vcelak <jvcelak@fedoraproject.org> 0.2.0-1
8a8764
- initial package