%bcond_without scl %if %{with scl} %global scl isc-bind %endif %{?scl:%scl_package fstrm} %{!?scl:%global pkg_name %{name}} %global _hardened_build 1 %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} Name: %{?scl_prefix}fstrm Summary: Frame Streams implementation in C Version: 0.4.0 Release: 4%{?dist} License: ASL 2.0 URL: https://github.com/farsightsec/fstrm Source0: https://dl.farsightsecurity.com/dist/fstrm/fstrm-%{version}.tar.gz BuildRequires: autoconf automake libtool BuildRequires: %{?scl_prefix}libevent-devel >= 2 %{?scl:BuildRequires: %{scl}-build} %{?scl:Requires: %scl_runtime} %description Frame Streams is a light weight, binary clean protocol that allows for the transport of arbitrarily encoded data payload sequences with minimal framing overhead -- just four bytes per data frame. Frame Streams does not specify an encoding format for data frames and can be used with any data serialization format that produces byte sequences, such as Protocol Buffers, XML, JSON, MessagePack, YAML, etc. %package devel Summary: Development Files for fstrm library Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The fstrm-devel package contains header files required to build an application using fstrm library. %prep %setup -q -n %{pkg_name}-%{version} # regenerated build scripts to: # - remove RPATHs # - allow dynamic linking and execution of 'make check' # autoreconf -fi %build %configure --disable-static make %{?_smp_mflags} %install # install the library make install DESTDIR=%{buildroot} rm %{buildroot}%{_libdir}/libfstrm.la # install documentation mkdir -p %{buildroot}%{_pkgdocdir}/ %check make check %if 0%{!?fedora} || 0%{?fedora} < 28 %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %endif %files %doc COPYRIGHT LICENSE %{_bindir}/fstrm_capture %{_bindir}/fstrm_dump %{_bindir}/fstrm_replay %{_libdir}/libfstrm.so* %{_mandir}/man1/fstrm_* %files devel %doc README.md %{_includedir}/fstrm.h %{_includedir}/fstrm/ %{_libdir}/pkgconfig/libfstrm.pc %changelog * Thu Jan 31 2019 Fedora Release Engineering - 0.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu May 17 2018 Tomas Krizek - 0.4.0-1 - Update to new upstream version 0.4.0 BZ#1577420 * Thu Apr 05 2018 Tomas Krizek - 0.3.2-1 - Update to new upstream version 0.3.2 * Wed Feb 07 2018 Fedora Release Engineering - 0.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 02 2017 Fedora Release Engineering - 0.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun Oct 23 2016 Jan Vcelak - 0.3.0-1 - new upstream release * Wed Feb 03 2016 Fedora Release Engineering - 0.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 0.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Dec 15 2014 Jan Vcelak 0.2.0-1 - initial package