[libvpx/el5/master] disable docs for el5

Tom Callaway spot at fedoraproject.org
Wed Sep 1 20:45:08 UTC 2010


commit 8ed66029b87c63dd66669bc631fff383ec6025b6
Author: Tom "spot" Callaway <tcallawa at redhat.com>
Date:   Wed Sep 1 16:45:08 2010 -0400

    disable docs for el5

 libvpx.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/libvpx.spec b/libvpx.spec
index 8a244b7..a5054de 100644
--- a/libvpx.spec
+++ b/libvpx.spec
@@ -1,7 +1,7 @@
 Name:			libvpx
 Summary:		VP8 Video Codec SDK
 Version:		0.9.1
-Release:		3%{?dist}
+Release:		3%{?dist}.1
 License:		BSD
 Group:			System Environment/Libraries
 Source0:		http://webm.googlecode.com/files/%{name}-%{version}.tar.bz2
@@ -93,7 +93,9 @@ mv libvpx_g.a libNOTvpx_g.a
 ln -sf libvpx.so.%{version} libvpx.so
 
 make %{?_smp_mflags} verbose=true target=examples
+%if 0%{?rhel} > 5
 make %{?_smp_mflags} verbose=true target=docs
+%endif
 
 # Put them back so the install doesn't fail
 mv libNOTvpx.a libvpx.a
@@ -111,8 +113,10 @@ sed -i "s|@PREFIX@|%{_prefix}|g" %{buildroot}%{_libdir}/pkgconfig/libvpx.pc
 sed -i "s|@LIBDIR@|%{_libdir}|g" %{buildroot}%{_libdir}/pkgconfig/libvpx.pc
 sed -i "s|@INCLUDEDIR@|%{_includedir}|g" %{buildroot}%{_libdir}/pkgconfig/libvpx.pc
 
+%if 0%{?rhel} > 5
 # Simpler to label the dir as %doc.
 mv %{buildroot}/usr/docs doc/
+%endif
 
 %if %{generic_target}
 install -p libvpx.so.%{version} %{buildroot}%{_libdir}
@@ -148,8 +152,10 @@ rm -rf %{buildroot}
 
 %files devel
 %defattr(-,root,root,-)
+%if 0%{?rhel} > 5
 # These are SDK docs, not really useful to an end-user.
 %doc docs/html/
+%endif
 %{_includedir}/vpx/
 %{_libdir}/pkgconfig/libvpx.pc
 %{_libdir}/libvpx.so
@@ -159,6 +165,9 @@ rm -rf %{buildroot}
 %{_bindir}/*
 
 %changelog
+* Wed Sep  1 2010 Tom "spot" Callaway <tcallawa at redhat.com> 0.9.1-3.1
+- disable docs for RHEL 5
+
 * Wed Sep  1 2010 Tom "spot" Callaway <tcallawa at redhat.com> 0.9.1-3
 - only package html docs to avoid multilib conflict (bz 613185)
 


More information about the scm-commits mailing list