RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/fstrm#5ee8372630957e7983892d75eef0d911589a7f4d
This commit is contained in:
parent
906c3ea3d7
commit
1a706358b3
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
|||||||
|
/fstrm-*.tar.gz
|
162
fstrm.spec
Normal file
162
fstrm.spec
Normal file
@ -0,0 +1,162 @@
|
|||||||
|
%global _hardened_build 1
|
||||||
|
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
||||||
|
|
||||||
|
Name: fstrm
|
||||||
|
Summary: Frame Streams implementation in C
|
||||||
|
Version: 0.6.0
|
||||||
|
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
|
||||||
|
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 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}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
The fstrm-devel package contains header files required to build an application
|
||||||
|
using fstrm library.
|
||||||
|
|
||||||
|
%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.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
# regenerated build scripts to:
|
||||||
|
# - remove RPATHs
|
||||||
|
# - allow dynamic linking and execution of 'make check'
|
||||||
|
autoreconf -fi
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --disable-static
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
make html
|
||||||
|
|
||||||
|
%install
|
||||||
|
# install the library
|
||||||
|
make install DESTDIR=%{buildroot}
|
||||||
|
rm %{buildroot}%{_libdir}/libfstrm.la
|
||||||
|
|
||||||
|
# install documentation
|
||||||
|
mkdir -p %{buildroot}%{_pkgdocdir}/
|
||||||
|
cp -ar html %{buildroot}%{_pkgdocdir}/html
|
||||||
|
|
||||||
|
%check
|
||||||
|
make check
|
||||||
|
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||||
|
# https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets
|
||||||
|
%else
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc COPYRIGHT LICENSE
|
||||||
|
%exclude %{_pkgdocdir}/html
|
||||||
|
%{_libdir}/libfstrm.so.*
|
||||||
|
|
||||||
|
%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
|
||||||
|
%{_libdir}/libfstrm.so
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc %{_pkgdocdir}/html
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
* Thu Oct 10 2019 Tomas Krizek <tomas.krizek@nic.cz> - 0.5.0-1
|
||||||
|
- Update to new upstream version 0.5.0
|
||||||
|
|
||||||
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu May 17 2018 Tomas Krizek <tomas.krizek@nic.cz> - 0.4.0-1
|
||||||
|
- Update to new upstream version 0.4.0 BZ#1577420
|
||||||
|
|
||||||
|
* Thu Apr 05 2018 Tomas Krizek <tomas.krizek@nic.cz> - 0.3.2-1
|
||||||
|
- Update to new upstream version 0.3.2
|
||||||
|
|
||||||
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Oct 23 2016 Jan Vcelak <jvcelak@fedoraproject.org> - 0.3.0-1
|
||||||
|
- new upstream release
|
||||||
|
|
||||||
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Dec 15 2014 Jan Vcelak <jvcelak@fedoraproject.org> 0.2.0-1
|
||||||
|
- initial package
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
|||||||
|
SHA512 (fstrm-0.6.0.tar.gz) = d1b754caadb1bd8b4b4ce3e7394168dd0a20353e0b7ac65f28d016d840aefe6fa1ab1aa778564e775152164855b38a47ab5817866f8bfb0b2d70520b2881225d
|
31
tests/samples/fstrm-sample-program.c
Normal file
31
tests/samples/fstrm-sample-program.c
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
#include <fstrm.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int
|
||||||
|
main(void)
|
||||||
|
{
|
||||||
|
const char *file_path = "/tmp/output.fs";
|
||||||
|
struct fstrm_file_options *fopt;
|
||||||
|
struct fstrm_iothr *iothr;
|
||||||
|
struct fstrm_writer *writer;
|
||||||
|
|
||||||
|
fopt = fstrm_file_options_init();
|
||||||
|
fstrm_file_options_set_file_path(fopt, file_path);
|
||||||
|
writer = fstrm_file_writer_init(fopt, NULL);
|
||||||
|
if (!writer) {
|
||||||
|
fprintf(stderr, "Error: fstrm_file_writer_init() failed.\n");
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
|
iothr = fstrm_iothr_init(NULL, &writer);
|
||||||
|
if (!iothr) {
|
||||||
|
fprintf(stderr, "Error: fstrm_iothr_init() failed.\n");
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
|
fstrm_iothr_destroy(&iothr);
|
||||||
|
fstrm_file_options_destroy(&fopt);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
15
tests/tests.yml
Normal file
15
tests/tests.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: standard-test-basic
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
required_packages:
|
||||||
|
- fstrm-devel
|
||||||
|
- gcc
|
||||||
|
tests:
|
||||||
|
- pkg-config:
|
||||||
|
dir: .
|
||||||
|
run: pkg-config --modversion libfstrm
|
||||||
|
- build-sample-program:
|
||||||
|
dir: samples
|
||||||
|
run: gcc -Wall -Wextra $(pkg-config --cflags --libs libfstrm) -o /dev/null fstrm-sample-program.c
|
Loading…
Reference in New Issue
Block a user