You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
2.3 KiB
84 lines
2.3 KiB
%{?!python3_pkgversion:%global python3_pkgversion 3}
|
|
|
|
Name: sponson
|
|
Version: 0.6.0
|
|
Release: 1%{?dist}
|
|
Summary: 'systemd-nspawn' wrapper
|
|
License: GPL-3.0-or-later
|
|
URL: https://code.lapwing.org/devops/sponson/
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
Requires: systemd-container
|
|
Requires: dnsmasq
|
|
Requires: ostree
|
|
Requires: python%{python3_pkgversion}-gobject
|
|
Requires: lsof
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
BuildRequires: python%{python3_pkgversion}-poetry
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
%global _description %{expand:
|
|
Sponson is a tool to create and setup ``systemd-nspawn`` containers
|
|
in a Docker-like way, without using Docker.}
|
|
|
|
%description %_description
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-%{name}
|
|
Summary: %{summary}
|
|
%{?python_provide:%python_provide python3-%{name}}
|
|
|
|
%description -n python%{python3_pkgversion}-%{name} %_description
|
|
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{name}-%{version}
|
|
|
|
%generate_buildrequires
|
|
%pyproject_buildrequires
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
|
|
%install
|
|
%pyproject_install
|
|
%pyproject_save_files %{name}
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}/ \
|
|
%{buildroot}%{_systemd_util_dir}/network/ \
|
|
%{buildroot}%{_libexecdir}/%{name}/ \
|
|
%{buildroot}%{_datadir}/dbus-1/system-services/ \
|
|
%{buildroot}%{_datadir}/dbus-1/system.d/ \
|
|
%{buildroot}%{_datadir}/bash-completion/completions/
|
|
|
|
cp -a services/dbus/* %{buildroot}%{_datadir}/dbus-1/
|
|
cp -a services/libexec/* %{buildroot}%{_libexecdir}/%{name}/
|
|
cp -a services/systemd/* %{buildroot}%{_systemd_util_dir}/
|
|
cp -a services/%{name}-bash-completion.sh %{buildroot}%{_datadir}/bash-completion/completions/%{name}
|
|
|
|
|
|
# Remove ##% to enable checks
|
|
##%%check
|
|
##%%pytest
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{name} -f %{pyproject_files}
|
|
##%%license LICENCE
|
|
##%%doc README.rst
|
|
%{_bindir}/%{name}
|
|
%{_unitdir}/%{name}*.service
|
|
%{_systemd_util_dir}/network/%{name}*.netdev
|
|
%{_systemd_util_dir}/network/%{name}*.network
|
|
%{_libexecdir}/%{name}/*
|
|
%{_datadir}/dbus-1/system-services/org.lapwing.%{name}.*.service
|
|
%{_datadir}/dbus-1/system.d/org.lapwing.%{name}.*.conf
|
|
%{_datadir}/bash-completion/completions/%{name}
|
|
|
|
|
|
%changelog
|
|
* Tue Aug 23 2022 Sam Black <samwwwblack@lapwing.org>
|
|
- Initial SPEC file
|
|
|