Skip to content

Commit 11bade5

Browse files
committed
build: update RPM build spec
1 parent e95904e commit 11bade5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packaging/redhat/caso.spec

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
Name: caso
2-
Version: %{version}
32
Release: 1%{?dist}
43
Summary: cASO is an OpenStack Accounting extractor
54

65
License: ASL 2.0
76
URL: https://github.com/IFCA/caso
8-
Source0: https://github.com/IFCA/caso/caso-%{version}.tar.gz
97

108
BuildArch: noarch
119
BuildRequires: python3-devel
1210
BuildRequires: python3-setuptools
1311
BuildRequires: python3-pbr
1412
BuildRequires: python3-rpm-macros
13+
BuildRequires: pyproject-rpm-macros
1514
Requires: python3
1615
Requires: python3-oslo-config
1716
Requires: python3-oslo-concurrency
@@ -29,6 +28,9 @@ Requires: python3-dirq
2928

3029
%?python_enable_dependency_generator
3130

31+
%generate_buildrequires
32+
%pyproject_buildrequires
33+
3234
%description
3335

3436
cASO is an OpenStack Accounting extractor to be used in the EGI.eu
@@ -39,10 +41,10 @@ Federated Cloud Infrastructure.
3941
%autosetup -n caso-%{version}
4042

4143
%build
42-
%py3_build
44+
%pyproject_wheel
4345

4446
%install
45-
%py3_install
47+
%pyproject_install
4648
mv %{buildroot}/usr/etc/ %{buildroot}/etc
4749

4850
%check

0 commit comments

Comments
 (0)