-
Notifications
You must be signed in to change notification settings - Fork 7
/
recorder.spec
93 lines (77 loc) · 2.71 KB
/
recorder.spec
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
Name: recorder
Version: 1.0.10
Release: 1%{?dist}
Summary: Lock-free, real-time flight recorder for C or C++ programs
License: LGPLv2+
Url: https://github.com/c3d/%{name}
Source: https://github.com/c3d/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: make >= 3.82
BuildRequires: make-it-quick >= 0.2.5
BuildRequires: gcc
BuildRequires: gcc-c++
%description
Flight recorder for C and C++ programs using printf-like 'record' statements.
%package devel
Summary: Development files for recorder library
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Development files for the flight recorder library.
%package scope
Summary: A real-time graphing tool for data collected by recorder library
License: GPLv3+
%if 0%{?fedora} >= 32
BuildRequires: qt-devel
%else
BuildRequires: qt5-devel
%endif
BuildRequires: qt5-qtcharts-devel
Requires: %{name}%{?_isa} = %{version}-%{release}
%description scope
Instrumentation that draws real-time charts, processes or saves data
collected by the flight_recorder library.
%prep
%autosetup -n %{name}-%{version}
%configure
%build
%make_build COLORIZE= TARGET=opt V=1
(cd scope && \
%{qmake_qt5} \
INSTALL_BINDIR=%{_bindir} \
INSTALL_LIBDIR=%{_libdir} \
INSTALL_DATADIR=%{_datadir} \
INSTALL_MANDIR=%{_mandir} && \
make)
%check
%make_build COLORIZE= TARGET=opt V=1 check
%install
%make_install COLORIZE= TARGET=opt DOC_INSTALL=
%make_install -C scope INSTALL_ROOT=%{buildroot}
%files
%license COPYING
%doc README.md
%doc AUTHORS
%doc NEWS
%{_libdir}/lib%{name}.so.1
%{_libdir}/lib%{name}.so.%{version}
%files devel
%{_libdir}/lib%{name}.so
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_datadir}/pkgconfig/%{name}.pc
%{_mandir}/man3/*.3.*
%files scope
%{_bindir}/recorder_scope
%{_mandir}/man1/*.1.*
%changelog
* Fri Jun 26 2020 Christophe de Dinechin <[email protected]> - 1.0.10-1
- Release 1.0.10, Add _Bool support
* Tue Jun 23 2020 Christophe de Dinechin <[email protected]> - 1.0.9-1
- Release 1.0.9, compatibility with Fedora 33
* Thu Jan 30 2020 Fedora Release Engineering <[email protected]> - 1.0.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Fedora Release Engineering <[email protected]> - 1.0.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri May 3 2019 Christophe de Dinechin <[email protected]> - 1.0.8-1
- Adjust Fedora package to address review comments
* Fri Apr 26 2019 Christophe de Dinechin <[email protected]> - 1.0.7-1
- Initial Fedora package from upstream release