Commit 71245839 authored by Michał Kępień's avatar Michał Kępień

Sync *.spec with Fedora

parent 84d7de30
......@@ -12,17 +12,21 @@
Name: %{?scl_prefix}fstrm
Summary: Frame Streams implementation in C
Version: 0.5.0
Version: 0.6.0
Release: 4%{?dist}
License: MIT
URL: https://github.com/farsightsec/fstrm
Source0: https://dl.farsightsecurity.com/dist/fstrm/fstrm-%{version}.tar.gz
Source0: https://dl.farsightsecurity.com/dist/%{pkg_name}/%{pkg_name}-%{version}.tar.gz
%if 0%{?rhel} != 6
BuildRequires: autoconf automake libtool
BuildRequires: %{?scl_prefix}libevent-devel >= 2
%endif
BuildRequires: %{?scl_prefix}libevent-devel
%{?scl:BuildRequires: %{scl}-build}
%{?scl:Requires: %scl_runtime}
%{?scl:Requires: %{name}-utils%{?_isa} = %{version}-%{release}}
%description
Frame Streams is a light weight, binary clean protocol that allows for the
transport of arbitrarily encoded data payload sequences with minimal framing
......@@ -31,6 +35,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}
......@@ -39,24 +57,44 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
The fstrm-devel package contains header files required to build an application
using fstrm library.
%if 0%{?rhel} != 6
%package doc
Summary: API documentation for fstrm library
BuildArch: noarch
BuildRequires: doxygen
Requires: %{name} = %{version}-%{release}
%description doc
The fstrm-doc package contains Doxygen generated API documentation for
fstrm library.
%endif
%prep
%setup -q -n %{pkg_name}-%{version}
%if 0%{?rhel} != 6
# regenerated build scripts to:
# - remove RPATHs
# - allow dynamic linking and execution of 'make check'
# autoreconf -fi
autoreconf -fi
%endif
%build
%configure --disable-static
make %{?_smp_mflags}
%if 0%{?rhel} != 6
make html
%endif
%install
# install the library
make install DESTDIR=%{buildroot}
rm %{buildroot}%{_libdir}/libfstrm.la
%if 0%{?rhel} != 6
# install documentation
mkdir -p %{buildroot}%{_pkgdocdir}/
cp -ar html %{buildroot}%{_pkgdocdir}/html
%endif
%check
%{?scl:scl enable %scl -- }make check
......@@ -70,10 +108,15 @@ mkdir -p %{buildroot}%{_pkgdocdir}/
%files
%doc COPYRIGHT LICENSE
%if 0%{?rhel} != 6
%exclude %{_pkgdocdir}/html
%endif
%{_libdir}/libfstrm.so.*
%files utils
%{_bindir}/fstrm_capture
%{_bindir}/fstrm_dump
%{_bindir}/fstrm_replay
%{_libdir}/libfstrm.so*
%{_mandir}/man1/fstrm_*
%files devel
......@@ -81,8 +124,26 @@ mkdir -p %{buildroot}%{_pkgdocdir}/
%{_includedir}/fstrm.h
%{_includedir}/fstrm/
%{_libdir}/pkgconfig/libfstrm.pc
%{_libdir}/libfstrm.so
%if 0%{?rhel} != 6
%files doc
%doc %{_pkgdocdir}/html
%endif
%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
- Rebuilt for libevent rebase
* Tue Aug 11 2020 Michał Kępień <michal@isc.org> - 0.6.0-1
- Update to new upstream version 0.6.0
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment