mirror of
https://github.com/Rudd-O/qubes-network-server.git
synced 2025-03-01 14:22:35 +01:00
Python interpreter fixed at 3 in spec file.
This commit is contained in:
parent
a972656553
commit
a1288b8466
@ -19,7 +19,6 @@ BuildRequires: findutils
|
|||||||
BuildRequires: python3
|
BuildRequires: python3
|
||||||
BuildRequires: python3-rpm-macros
|
BuildRequires: python3-rpm-macros
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
%global pythoninterp %{_bindir}/python3
|
|
||||||
|
|
||||||
Requires: qubes-core-agent-networking >= 4.1
|
Requires: qubes-core-agent-networking >= 4.1
|
||||||
Requires: python3
|
Requires: python3
|
||||||
@ -60,12 +59,12 @@ this software.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
# variables must be kept in sync with install
|
# variables must be kept in sync with install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT SBINDIR=%{_sbindir} UNITDIR=%{_unitdir} PYTHON=%{pythoninterp}
|
make DESTDIR=$RPM_BUILD_ROOT SBINDIR=%{_sbindir} UNITDIR=%{_unitdir} PYTHON=%{__python3}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
# variables must be kept in sync with build
|
# variables must be kept in sync with build
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT SBINDIR=%{_sbindir} UNITDIR=%{_unitdir} PYTHON=%{pythoninterp}
|
make install DESTDIR=$RPM_BUILD_ROOT SBINDIR=%{_sbindir} UNITDIR=%{_unitdir} PYTHON=%{__python3}
|
||||||
mkdir -p "$RPM_BUILD_ROOT"/%{_presetdir}
|
mkdir -p "$RPM_BUILD_ROOT"/%{_presetdir}
|
||||||
echo 'enable qubes-routing-manager.service' > "$RPM_BUILD_ROOT"/%{_presetdir}/75-%{name}.preset
|
echo 'enable qubes-routing-manager.service' > "$RPM_BUILD_ROOT"/%{_presetdir}/75-%{name}.preset
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user