-
Notifications
You must be signed in to change notification settings - Fork 0
/
letce2-plugin-lxc.spec.in
71 lines (58 loc) · 1.68 KB
/
letce2-plugin-lxc.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
61
62
63
64
65
66
67
68
69
70
%define source_date_epoch_from_changelog 0
Summary: letce2 LXC experiment plugin
Name: letce2-plugin-lxc
Version: @VERSION@
Release: 1%{?dist}
License: BSD
Group: Development/Libraries
URL: https://github.com/adjacentlink/letce2-plugin-lxc
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Vendor: Adjacent Link LLC
BuildArch: noarch
%global _description \
Lightweight Experiment Template Configuration Environment LXC plugin \
providing container configuration and node templates along with start \
and stop commands to execute experiments.
%description %{_description}
%package -n python3-%{name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{name}}
BuildRequires: python3-devel
Requires: bash
Requires: iproute
Requires: ethtool
Requires: lxc
Requires: iptables
Requires: openssh-server
Requires: sudo
Requires: procps-ng
Requires: python3-setuptools
Requires: python3-letce2
%description -n python3-%{name} %{_description}
%prep
%setup -q
%build
%configure
%install
make DESTDIR=${RPM_BUILD_ROOT} PYTHON=%{__python3} install
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
%post
%postun
%files -n python3-%{name}
%defattr(-,root,root,-)
%{python3_sitelib}/*
%doc %{_pkgdocdir}
%if 0%{?_licensedir:1}
%dir %{_licensedir}/%{name}
%license %{_licensedir}/%{name}/COPYING
%endif