Fix build with setuptools
This commit is contained in:
parent
0773c6422d
commit
e3fabbe827
@ -128,6 +128,8 @@ printers.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -S git
|
%autosetup -S git
|
||||||
|
# workaround https://github.com/pypa/setuptools/issues/3143
|
||||||
|
sed -i 's/setup.py install --prefix=$(DESTDIR)$(prefix)/setup.py install --root $(DESTDIR) --prefix=$(prefix)/' Makefile*
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --with-udev-rules
|
%configure --with-udev-rules
|
||||||
@ -235,7 +237,7 @@ rm -rf %{buildroot}%{_bindir}/%{name}-applet \
|
|||||||
%dir %{_sysconfdir}/cupshelpers
|
%dir %{_sysconfdir}/cupshelpers
|
||||||
%config(noreplace) %{_sysconfdir}/cupshelpers/preferreddrivers.xml
|
%config(noreplace) %{_sysconfdir}/cupshelpers/preferreddrivers.xml
|
||||||
%{python3_sitelib}/cupshelpers
|
%{python3_sitelib}/cupshelpers
|
||||||
%{python3_sitelib}/*.egg-info
|
%{python3_sitelib}/*.egg-info/
|
||||||
|
|
||||||
%if 0%{?rhel} <= 8 || 0%{?fedora}
|
%if 0%{?rhel} <= 8 || 0%{?fedora}
|
||||||
%files applet
|
%files applet
|
||||||
|
Loading…
Reference in New Issue
Block a user