-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemane-spectrum-tools.spec.in
More file actions
126 lines (106 loc) · 4.04 KB
/
emane-spectrum-tools.spec.in
File metadata and controls
126 lines (106 loc) · 4.04 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
%global __brp_check_rpaths %{nil}
%define source_date_epoch_from_changelog 0
Summary: EMANE Spectrum Tools
Name: emane-spectrum-tools
Version: @VERSION@
Release: 1%{?dist}
License: BSD
Group: Development/Libraries
URL: https://github.com/adjacentlink/emane-spectrum-tools
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Vendor: Adjacent Link LLC
Requires: emane-libs
%global _description \
EMANE spectrum tools and utility modules.
%description %{_description}
EMANE spectrum tools and utility modules.
%package -n python3-%{name}
Summary: %{summary}
BuildArch: noarch
%{?python_provide:%python_provide python3-%{name}}
Requires: python3-setuptools
Requires: python3-daemon
Requires: python3-matplotlib
Requires: python3-numpy
Requires: python3-pandas
Requires: python3-zmq
Requires: python3-protobuf
%description -n python3-%{name} %{_description}
%package -n opentestpoint-probe-emane-spectrum-tools
Requires: python3-setuptools
Requires: python3-protobuf
Requires: python3-opentestpoint
Requires: python3-emane
Requires: python3-lxml
Requires: opentestpoint-probe-emane
Summary: OpenTestPoint EMANE Spectrum Tools probe
Group: Development/Libraries
BuildArch: noarch
%description -n opentestpoint-probe-emane-spectrum-tools
OpenTestPoint OpenTestPoint EMANE Spectrum Tools probe
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
make DESTDIR=${RPM_BUILD_ROOT} PYTHON=%{__python3} install
mv %{buildroot}/%{_bindir}/emane-spectrum-analyzer %{buildroot}/%{_bindir}/emane-spectrum-analyzer-%{python3_version}
ln -s emane-spectrum-analyzer-%{python3_version} %{buildroot}%{_bindir}/emane-spectrum-analyzer-3
mv %{buildroot}/%{_bindir}/emane-spectrum-ota-record-tool %{buildroot}/%{_bindir}/emane-spectrum-ota-record-tool-%{python3_version}
ln -s emane-spectrum-ota-record-tool-%{python3_version} %{buildroot}%{_bindir}/emane-spectrum-ota-record-tool-3
mv %{buildroot}/%{_bindir}/emane-spectrum-energy-recording-tool %{buildroot}/%{_bindir}/emane-spectrum-energy-recording-tool-%{python3_version}
ln -s emane-spectrum-energy-recording-tool-%{python3_version} %{buildroot}%{_bindir}/emane-spectrum-energy-recording-tool-3
ln -s emane-spectrum-analyzer-3 %{buildroot}%{_bindir}/emane-spectrum-analyzer
ln -s emane-spectrum-ota-record-tool-3 %{buildroot}%{_bindir}/emane-spectrum-ota-record-tool
ln -s emane-spectrum-energy-recording-tool-3 %{buildroot}%{_bindir}/emane-spectrum-energy-recording-tool
%py3_shebang_fix %{buildroot}%{_bindir}/*-%{python3_version}
find ${RPM_BUILD_ROOT} -name '*.a' -exec rm '{}' \;
find ${RPM_BUILD_ROOT} -name '*.la' -exec rm '{}' \;
mkdir -p ${RPM_BUILD_ROOT}%{_pkgdocdir}
install -t ${RPM_BUILD_ROOT}%{_pkgdocdir} AUTHORS %{!?_licensedir:COPYING} ChangeLog NEWS README SPONSOR
%if 0%{?_licensedir:1}
mkdir -p ${RPM_BUILD_ROOT}%{_licensedir}/%{name}
install -t ${RPM_BUILD_ROOT}%{_licensedir}/%{name} COPYING
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%post
%postun
%files
%defattr(-,root,root,-)
%{_bindir}/emane-spectrum-monitor
%{_libdir}/libemane-spectrum-monitor.*
%{_bindir}/emane-spectrum-ota-recorder
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files -n python3-%{name}
%defattr(-,root,root,-)
%{_bindir}/emane-spectrum-analyzer
%{_bindir}/emane-spectrum-ota-record-tool
%{_bindir}/emane-spectrum-energy-recording-tool
%{_bindir}/emane-spectrum-analyzer-3
%{_bindir}/emane-spectrum-analyzer-%{python3_version}
%{_bindir}/emane-spectrum-ota-record-tool-3
%{_bindir}/emane-spectrum-ota-record-tool-%{python3_version}
%{_bindir}/emane-spectrum-energy-recording-tool-3
%{_bindir}/emane-spectrum-energy-recording-tool-%{python3_version}
%{python3_sitelib}/emane_spectrum_tools*
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif
%files -n opentestpoint-probe-emane-spectrum-tools
%defattr(-,root,root,-)
%{python3_sitelib}/otestpoint*
%{python3_sitelib}/opentestpoint*
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif