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.
This commit is contained in:
Petr Menšík 2020-09-15 13:36:42 +02:00
parent b43ee0dbc5
commit 11573d93e0

View File

@ -4,11 +4,12 @@
Name: fstrm Name: fstrm
Summary: Frame Streams implementation in C Summary: Frame Streams implementation in C
Version: 0.6.0 Version: 0.6.0
Release: 2%{?dist} Release: 3%{?dist}
License: MIT License: MIT
URL: https://github.com/farsightsec/fstrm URL: https://github.com/farsightsec/fstrm
Source0: https://dl.farsightsecurity.com/dist/%{name}/%{name}-%{version}.tar.gz Source0: https://dl.farsightsecurity.com/dist/%{name}/%{name}-%{version}.tar.gz
BuildRequires: autoconf automake libtool BuildRequires: autoconf automake libtool
BuildRequires: libevent-devel
%description %description
Frame Streams is a light weight, binary clean protocol that allows for the 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, format that produces byte sequences, such as Protocol Buffers, XML, JSON,
MessagePack, YAML, etc. 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 %package devel
Summary: Development Files for fstrm library Summary: Development Files for fstrm library
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
@ -30,7 +45,6 @@ using fstrm library.
Summary: API documentation for fstrm library Summary: API documentation for fstrm library
BuildArch: noarch BuildArch: noarch
BuildRequires: doxygen BuildRequires: doxygen
BuildRequires: libevent-devel
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%description doc %description doc
@ -64,8 +78,8 @@ make check
%if 0%{?fedora} || 0%{?rhel} > 7 %if 0%{?fedora} || 0%{?rhel} > 7
# https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets # https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets
%else %else
%post libs -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig %postun -p /sbin/ldconfig
%endif %endif
%files %files
@ -73,12 +87,14 @@ make check
%exclude %{_pkgdocdir}/html %exclude %{_pkgdocdir}/html
%{_libdir}/libfstrm.so.* %{_libdir}/libfstrm.so.*
%files devel %files utils
%doc README.md
%{_bindir}/fstrm_capture %{_bindir}/fstrm_capture
%{_bindir}/fstrm_dump %{_bindir}/fstrm_dump
%{_bindir}/fstrm_replay %{_bindir}/fstrm_replay
%{_mandir}/man1/fstrm_* %{_mandir}/man1/fstrm_*
%files devel
%doc README.md
%{_includedir}/fstrm.h %{_includedir}/fstrm.h
%{_includedir}/fstrm/ %{_includedir}/fstrm/
%{_libdir}/pkgconfig/libfstrm.pc %{_libdir}/pkgconfig/libfstrm.pc
@ -88,6 +104,9 @@ make check
%doc %{_pkgdocdir}/html %doc %{_pkgdocdir}/html
%changelog %changelog
* Tue Sep 15 2020 Petr Menšík <pemensik@redhat.com> - 0.6.0-3
- Move command line tools to utils subpackage
* Tue Sep 15 2020 Petr Menšík <pemensik@redhat.com> - 0.6.0-2 * Tue Sep 15 2020 Petr Menšík <pemensik@redhat.com> - 0.6.0-2
- Rebuilt for libevent rebase - Rebuilt for libevent rebase