Update pungi.spec for py3

Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
Haibo Lin 2024-07-12 17:03:09 +08:00
parent 0cb18bfa24
commit d1c0276761

View File

@ -71,11 +71,11 @@ notification to Fedora Message Bus.
%setup -q %setup -q
%build %build
%{__python} setup.py build %{__python3} setup.py build
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot} %{__python3} setup.py install -O1 --skip-build --root %{buildroot}
%{__install} -d %{buildroot}/var/cache/pungi %{__install} -d %{buildroot}/var/cache/pungi
%{__install} -d %{buildroot}/%{_mandir}/man8 %{__install} -d %{buildroot}/%{_mandir}/man8
@ -83,8 +83,8 @@ rm -rf %{buildroot}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%license COPYING GPL %license COPYING GPL
%doc AUTHORS %doc AUTHORS
%{python_sitelib}/%{name} %{python3_sitelib}/%{name}
%{python_sitelib}/%{name}-%{version}-py?.?.egg-info %{python3_sitelib}/%{name}-%{version}-py?.?.egg-info
%{_bindir}/%{name} %{_bindir}/%{name}
%{_bindir}/%{name}-koji %{_bindir}/%{name}-koji
%{_bindir}/%{name}-gather %{_bindir}/%{name}-gather
@ -94,7 +94,7 @@ rm -rf %{buildroot}
%dir %attr(1777, root, root) /var/cache/%{name} %dir %attr(1777, root, root) /var/cache/%{name}
%files utils %files utils
%{python_sitelib}/%{name}_utils %{python3_sitelib}/%{name}_utils
%{_bindir}/%{name}-create-unified-isos %{_bindir}/%{name}-create-unified-isos
%{_bindir}/%{name}-config-dump %{_bindir}/%{name}-config-dump
%{_bindir}/%{name}-config-validate %{_bindir}/%{name}-config-validate