Commit ee446641 authored by Federico Vaga's avatar Federico Vaga

bld: build python package

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 220422de
...@@ -53,7 +53,9 @@ export GIT_VERSION=%{?_git_version} ...@@ -53,7 +53,9 @@ export GIT_VERSION=%{?_git_version}
export LINUX=%{with_linux} export LINUX=%{with_linux}
%make_build -C software %make_build -C software
pushd software/PySPEC
%py3_build
popd
# #
# Install # Install
# #
...@@ -64,6 +66,9 @@ export DESTDIR=%{buildroot}/%{_exec_prefix} ...@@ -64,6 +66,9 @@ export DESTDIR=%{buildroot}/%{_exec_prefix}
%make_build -C software/include install %make_build -C software/include install
%make_build -C software/tools install %make_build -C software/tools install
pushd software/PySPEC
%py3_install
popd
# Install manually to avoid running depmod at this stage # Install manually to avoid running depmod at this stage
%{__install} -d %{buildroot}/lib/modules/%{kver}/extra/cern/%{name} %{__install} -d %{buildroot}/lib/modules/%{kver}/extra/cern/%{name}
%{__install} -t %{buildroot}/lib/modules/%{kver}/extra/cern/%{name} software/kernel/*.ko %{__install} -t %{buildroot}/lib/modules/%{kver}/extra/cern/%{name} software/kernel/*.ko
...@@ -98,6 +103,24 @@ The SPEC kmod ...@@ -98,6 +103,24 @@ The SPEC kmod
/lib/modules/%{kver}/extra/cern/%{name}/*.ko /lib/modules/%{kver}/extra/cern/%{name}/*.ko
#
# Python Class
#
%package -n python3-pyspec
Summary: Simple PCIe Carrier (SPEC) Python Class
Requires: Python3
BuildArch: noarch
BuildRequires: python3-devel
%description -n python3-pyspec
The SPEC python class
%files -n python3-pyspec
%license LICENSES/GPL-3.0-or-later.txt
%{python3_sitelib}/PySPEC/
%{python3_sitelib}/*.egg-info
# #
# Tools # Tools
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment