Blame SPECS/fstrm.spec

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