Blame SPECS/fstrm.spec

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