-
Notifications
You must be signed in to change notification settings - Fork 0
/
emane-node-director.spec.in
60 lines (50 loc) · 1.48 KB
/
emane-node-director.spec.in
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
%define source_date_epoch_from_changelog 0
Summary: Extendable Test Control Environment Tools
Name: emane-node-director
Version: @VERSION@
Release: 1%{?dist}
License: BSD
Group: Development/Libraries
URL: https://adjacentlink.com
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Vendor: Adjacent Link LLC
BuildArch: noarch
%define base_name emane-node-director
%global _description \
EMANE Node Director
%description %{_description}
%package -n python3-%{base_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{base_name}}
BuildRequires: python3-devel
Requires: python3-emane
Requires: python3-pandas
%description -n python3-%{base_name} %{_description}
%prep
%setup -q
%build
%configure
make
%install
make DESTDIR=${RPM_BUILD_ROOT} PYTHON=%{__python3} install
%py3_shebang_fix %{buildroot}%{_bindir}/*
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
%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
%files -n python3-%{base_name}
%defattr(-,root,root,-)
%{_bindir}/emane-node-director
%{python3_sitelib}/*
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif