Skip to content

Commit df63b36

Browse files
committed
build: update RPM build spec
1 parent 44bc258 commit df63b36

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packaging/redhat/caso.spec

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ BuildRequires: python3-devel
1212
BuildRequires: python3-setuptools
1313
BuildRequires: python3-pbr
1414
BuildRequires: python3-rpm-macros
15+
BuildRequires: pyproject-rpm-macros
1516
Requires: python3
1617
Requires: python3-oslo-config
1718
Requires: python3-oslo-concurrency
@@ -29,6 +30,9 @@ Requires: python3-dirq
2930

3031
%?python_enable_dependency_generator
3132

33+
%generate_buildrequires
34+
%pyproject_buildrequires
35+
3236
%description
3337

3438
cASO is an OpenStack Accounting extractor to be used in the EGI.eu
@@ -39,10 +43,10 @@ Federated Cloud Infrastructure.
3943
%autosetup -n caso-%{version}
4044

4145
%build
42-
%py3_build
46+
%pyproject_wheel
4347

4448
%install
45-
%py3_install
49+
%pyproject_install
4650
mv %{buildroot}/usr/etc/ %{buildroot}/etc
4751

4852
%check

0 commit comments

Comments
 (0)