Blame SPECS/fstrm.spec

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