blob: 2413fdc90a09d231aff60188b9de58b4b497c883 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
%define sover 0
%define libname libtinyframe%{sover}
Name: tinyframe
Version: 0.1.1
Release: 1%{?dist}
Summary: Frame Streams encoder/decoder library
Group: Development/Libraries/C and C++
License: LGPL-3.0-or-later
URL: https://github.com/DNS-OARC/tinyframe
# Source needs to be generated by dist-tools/create-source-packages, see
# https://github.com/jelu/dist-tools
Source0: %{name}_%{version}.orig.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig
%description
Minimalistic library for encoding and decoding the Frame Streams protocol.
%package -n %{libname}
Summary: Frame Streams encoder/decoder library
Group: System/Libraries
%description -n %{libname}
Minimalistic library for encoding and decoding the Frame Streams protocol.
%package devel
Summary: Frame Streams encoder/decoder library development files
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
%description devel
Minimalistic library for encoding and decoding the Frame Streams protocol.
%prep
%setup -q -n %{name}_%{version}
%build
sh autogen.sh
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post -n %{libname}
/sbin/ldconfig
%postun -n %{libname}
/sbin/ldconfig
%files -n %{libname}
%defattr(-,root,root,-)
%{_libdir}/libtinyframe.so.%{sover}*
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
# %{_mandir}/man3/*
%{_libdir}/libtinyframe.so
%{_libdir}/pkgconfig/libtinyframe.pc
%exclude %{_libdir}/libtinyframe.a
%exclude %{_libdir}/libtinyframe.la
%{_datadir}/doc/*
%changelog
* Thu Oct 22 2020 Jerry Lundström <lundstrom.jerry@gmail.com> 0.1.1-1
- Release 0.1.1
* This release adds a few assert check on augments to some of the function
calls, fixes a type in configure and adds coverage tests.
- `tinyframe_write_control()`:
- assert arguments and content fields data
- check for valid content field types
- `tinyframe_write_control_start()`: assert arguments
- `tinyframe_write_frame()`: assert arguments
- `tinyframe_write_control_stop()`: assert arguments
- `tinyframe_set_header()`: assert arguments
- Remove `sprintf()` usage from tracing
* Commits:
c6fbfea Travis, configure
ba616b0 Coverage
97dfeb7 Coverage
f69665b Badges
907a894 COPR
f07d4e8 Funding
242b1b2 Trace
8d36cf7 LGTM
* Thu Mar 19 2020 Jerry Lundström <lundstrom.jerry@gmail.com> 0.1.0-1
- Release 0.1.0
|