Resolve multiarch problem with Doxygen doc

This commit is contained in:
Linus Walleij 2007-10-24 09:13:05 +00:00
parent 3379919f64
commit e8d26507ce

View File

@ -3,7 +3,7 @@
Name: libmtp Name: libmtp
Version: 0.2.2 Version: 0.2.2
Release: 1%{?dist} Release: 2%{?dist}
Summary: A software library for MTP media players Summary: A software library for MTP media players
URL: http://libmtp.sourceforge.net/ URL: http://libmtp.sourceforge.net/
@ -56,6 +56,17 @@ examples/hotplug -a"SYMLINK+=\"libmtp-%k\"" > libmtp.rules
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=$RPM_BUILD_ROOT install
# Touch generated files to make them always have the same time stamp.
touch -r configure.ac \
$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html/* \
$RPM_BUILD_ROOT%{_includedir}/*.h \
$RPM_BUILD_ROOT%{_libdir}/pkgconfig/*.pc
# Remove the Doxygen HTML documentation, this get different
# each time it is generated and thus creates multiarch conflicts.
# I don't want to pre-generate it but will instead wait for upstream
# to find a suitable solution that will always bring the same files,
# or that Doxygen is fixed not to do this.
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html
# Remove libtool archive remnant # Remove libtool archive remnant
rm -f $RPM_BUILD_ROOT%{_libdir}/libmtp.la rm -f $RPM_BUILD_ROOT%{_libdir}/libmtp.la
# Install udev rules file. # Install udev rules file.
@ -96,6 +107,13 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Wed Oct 24 2007 Linus Walleij <triad@df.lth.se> 0.2.2-2
- Flat out KILL the Doxygen HTML docs to resolve multiarch conflicts.
Either upstream (that's me!) needs to work around the HTML files being
different each time OR Doxygen must stop generating anchors that
hash the system time, creating different files with each generation.
Pre-generating the docs is deemed silly. (Someone will disagree.)
* Fri Aug 17 2007 Linus Walleij <triad@df.lth.se> 0.2.2-1 * Fri Aug 17 2007 Linus Walleij <triad@df.lth.se> 0.2.2-1
- New upstream release. - New upstream release.