Use %_docdir in doc cleanup

This is necessary when building with other prefixes, such as in flatpaks.
This commit is contained in:
Yaakov Selkowitz 2021-12-22 21:16:14 +00:00
parent c59fc38d09
commit f9607d53de

View File

@ -36,9 +36,9 @@ of each playback stream separately.
%install %install
%make_install V=1 %make_install V=1
rm $RPM_BUILD_ROOT/usr/share/doc/pavucontrol/README rm -f $RPM_BUILD_ROOT%{_docdir}/pavucontrol/README
rm $RPM_BUILD_ROOT/usr/share/doc/pavucontrol/README.html rm -f $RPM_BUILD_ROOT%{_docdir}/pavucontrol/README.html
rm $RPM_BUILD_ROOT/usr/share/doc/pavucontrol/style.css rm -f $RPM_BUILD_ROOT%{_docdir}/pavucontrol/style.css
%find_lang %{name} %find_lang %{name}