Skip to content

Commit ea1fe7b

Browse files
committed
Use RPM macros to build and install
1 parent 594018d commit ea1fe7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

puppet-jens.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ based on files containing metadata.
2424
%setup -q
2525

2626
%build
27-
CFLAGS="%{optflags}" %{__python3} setup.py build
27+
%py3_build
2828

2929
%install
3030
%{__rm} -rf %{buildroot}
31-
%{__python3} setup.py install --skip-build --root %{buildroot}
31+
%py3_install
3232
%{__install} -D -p -m 644 conf/main.conf %{buildroot}/%{_sysconfdir}/jens/main.conf
3333
mkdir -m 755 -p %{buildroot}/%{_mandir}/man1
3434
%{__install} -D -p -m 644 man/* %{buildroot}/%{_mandir}/man1

0 commit comments

Comments
 (0)