diff --git a/pstoedit.spec b/pstoedit.spec index 3b48b6a..bc9e8dd 100644 --- a/pstoedit.spec +++ b/pstoedit.spec @@ -67,11 +67,15 @@ mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 install -pm 644 doc/pstoedit.1 $RPM_BUILD_ROOT%{_mandir}/man1/ find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' +%if 0%{?el7} +rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/pstoedit +%endif + %files %doc doc/readme.txt doc/pstoedit.htm doc/changelog.htm doc/pstoedit.pdf %license copying -%{_datadir}/pstoedit +%{_datadir}/pstoedit/ %{_mandir}/man1/* %{_bindir}/pstoedit %{_libdir}/*.so.*