-
Notifications
You must be signed in to change notification settings - Fork 120
/
Copy pathpyslurm.spec
46 lines (36 loc) · 1.16 KB
/
pyslurm.spec
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
%define python3_pkgversion 3.11
Name: python-pyslurm
Version: 24.11.0
%define rel 1
Release: %{rel}%{?dist}
Summary: Python interface to Slurm
License: GPLv2+
URL: https://github.com/PySlurm/pyslurm
Source: pyslurm-%{version}.tar.gz
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-wheel
BuildRequires: python%{python3_pkgversion}-Cython
BuildRequires: python%{python3_pkgversion}-packaging
BuildRequires: python-rpm-macros
BuildRequires: slurm-devel >= 24.11.0
BuildRequires: slurm >= 24.11.0
Requires: python%{python3_pkgversion}
%description
pyslurm is a Python interface to Slurm
%package -n python%{python3_pkgversion}-pyslurm
Summary: %{summary}
%description -n python%{python3_pkgversion}-pyslurm
pyslurm is a Python interface to Slurm
%prep
%autosetup -p1 -n pyslurm-%{version}
%generate_buildrequires
%pyproject_buildrequires -R
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files pyslurm
%files -f %{pyproject_files}
%license COPYING.txt
%doc README.md