diff --git a/libmtp.spec b/libmtp.spec index 08c2a7e..9ed9a94 100644 --- a/libmtp.spec +++ b/libmtp.spec @@ -3,7 +3,7 @@ Name: libmtp Version: 1.1.13 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A software library for MTP media players URL: http://libmtp.sourceforge.net/ @@ -72,8 +72,10 @@ mkdir -p -m 755 $RPM_BUILD_ROOT%{_pkgdocdir} install -p -m 644 AUTHORS ChangeLog README TODO \ $RPM_BUILD_ROOT%{_pkgdocdir} # Move some autogenerated documentation where we want it -mv $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}/html \ - $RPM_BUILD_ROOT%{_pkgdocdir} +if [ $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}/html != $RPM_BUILD_ROOT%{_pkgdocdir}/html ] ; then \ + mv $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}/html \ + $RPM_BUILD_ROOT%{_pkgdocdir} ; \ +fi # Touch generated files to make them always have the same time stamp. touch -r configure.ac \ $RPM_BUILD_ROOT%{_includedir}/*.h \ @@ -103,6 +105,10 @@ chrpath --delete $RPM_BUILD_ROOT{%{_bindir},/usr/lib/udev}/mtp* %{_libdir}/pkgconfig/libmtp.pc %changelog +* Wed Sep 06 2017 Bastien Nocera - 1.1.13-6 ++ libmtp-1.1.13-5 +- Fix build on EPEL7 where the doc directory is versioned + * Thu Aug 03 2017 Fedora Release Engineering - 1.1.13-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild