From 11573d93e045e25db094881b1002c4f5b6e7ca1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Tue, 15 Sep 2020 13:36:42 +0200 Subject: [PATCH] Create utils subpackage with fstrm utilities Current command line utilities reside in devel subpackage, where only library and headers should reside. Move them to new utils subpackage. --- fstrm.spec | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/fstrm.spec b/fstrm.spec index 7833324..a42e69a 100644 --- a/fstrm.spec +++ b/fstrm.spec @@ -4,11 +4,12 @@ Name: fstrm Summary: Frame Streams implementation in C Version: 0.6.0 -Release: 2%{?dist} +Release: 3%{?dist} License: MIT URL: https://github.com/farsightsec/fstrm Source0: https://dl.farsightsecurity.com/dist/%{name}/%{name}-%{version}.tar.gz BuildRequires: autoconf automake libtool +BuildRequires: libevent-devel %description Frame Streams is a light weight, binary clean protocol that allows for the @@ -18,6 +19,20 @@ 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 utils +Summary: Frame Streams (fstrm) utilities +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description utils +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. + +The fstrm-utils package contains command line utilities. + %package devel Summary: Development Files for fstrm library Requires: %{name}%{?_isa} = %{version}-%{release} @@ -30,7 +45,6 @@ using fstrm library. Summary: API documentation for fstrm library BuildArch: noarch BuildRequires: doxygen -BuildRequires: libevent-devel Requires: %{name} = %{version}-%{release} %description doc @@ -64,8 +78,8 @@ make check %if 0%{?fedora} || 0%{?rhel} > 7 # https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets %else -%post libs -p /sbin/ldconfig -%postun libs -p /sbin/ldconfig +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig %endif %files @@ -73,12 +87,14 @@ make check %exclude %{_pkgdocdir}/html %{_libdir}/libfstrm.so.* -%files devel -%doc README.md +%files utils %{_bindir}/fstrm_capture %{_bindir}/fstrm_dump %{_bindir}/fstrm_replay %{_mandir}/man1/fstrm_* + +%files devel +%doc README.md %{_includedir}/fstrm.h %{_includedir}/fstrm/ %{_libdir}/pkgconfig/libfstrm.pc @@ -88,6 +104,9 @@ make check %doc %{_pkgdocdir}/html %changelog +* Tue Sep 15 2020 Petr Menšík - 0.6.0-3 +- Move command line tools to utils subpackage + * Tue Sep 15 2020 Petr Menšík - 0.6.0-2 - Rebuilt for libevent rebase