From 7c3e5ee5298137001cb904639dfe2d7dd13ffbaf Mon Sep 17 00:00:00 2001 From: sagitter Date: Mon, 5 Oct 2020 16:23:24 +0200 Subject: [PATCH] Rebase to 3.75| Remove duplicate doc directory on EPEL7 --- pstoedit.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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.*