This patch series fixes up the docs spec file so that kickstart syntax like --excludedocs don't affect it. Since the ovirt-docs RPM's only purpose is to package docs, it doesn't make sense to tag the files with %doc. This also changes the location of the files to be in /usr/share/ovirt-docs so we need to update the symlink that ovirt-server uses
Perry Myers
2008-Nov-19 21:04 UTC
[Ovirt-devel] [PATCH docs] Fix spec file so that these docs are not flagged with %doc
Since the only purpose for installing the ovirt-docs rpm is to have these docs, it doesn't make sense to flag the contents with %doc Signed-off-by: Perry Myers <pmyers at redhat.com> --- ovirt-docs.spec.in | 21 +++++++++++---------- 1 files changed, 11 insertions(+), 10 deletions(-) diff --git a/ovirt-docs.spec.in b/ovirt-docs.spec.in index 856d73d..9d09979 100644 --- a/ovirt-docs.spec.in +++ b/ovirt-docs.spec.in @@ -11,6 +11,8 @@ URL: http://www.ovirt.org/ BuildRequires: publican BuildRequires: publican-ovirt +%define app_root %{_datadir}/%{name} + %description Provides the documentation for oVirt @@ -22,25 +24,24 @@ Provides the documentation for oVirt %configure make -mv oVirt_Installation_Guide/publish/en-US/oVirt/1.0/html/Installation_Guide oVirt_Server_Suite_Installation_Guide -mv oVirt_Installation_Guide/publish/en-US/oVirt/1.0/pdf/Installation_Guide/Installation_Guide.pdf oVirt_Server_Suite_Installation_Guide.pdf - -mv Using_the_oVirt_Admin_UI/publish/en-US/oVirt_Server_Suite/0.6/html/Using_the_oVirt_Server_Suite_User_Interface Using_the_oVirt_Server_Suite_User_Interface -mv Using_the_oVirt_Admin_UI/publish/en-US/oVirt_Server_Suite/0.6/pdf/Using_the_oVirt_Server_Suite_User_Interface/Using_the_oVirt_Server_Suite_User_Interface.pdf Using_the_oVirt_Server_Suite_User_Interface.pdf - %install %{__rm} -rf %{buildroot} mkdir %{buildroot} +%{__install} -d -m0755 %{buildroot}%{app_root} +%{__cp} -a oVirt_Installation_Guide/publish/en-US/oVirt_Server_Suite/0/html/Installation_Guide %{buildroot}%{app_root}/oVirt_Server_Suite_Installation_Guide +%{__install} oVirt_Installation_Guide/publish/en-US/oVirt_Server_Suite/0/pdf/Installation_Guide/Installation_Guide.pdf %{buildroot}%{app_root}/oVirt_Server_Suite_Installation_Guide.pdf +%{__cp} -a Using_the_oVirt_Admin_UI/publish/en-US/oVirt_Server_Suite/0.1/html/Using_the_oVirt_Server_Suite_User_Interface %{buildroot}%{app_root}/Using_the_oVirt_Server_Suite_User_Interface +%{__install} Using_the_oVirt_Admin_UI/publish/en-US/oVirt_Server_Suite/0.1/pdf/Using_the_oVirt_Server_Suite_User_Interface/Using_the_oVirt_Server_Suite_User_Interface.pdf %{buildroot}%{app_root}/Using_the_oVirt_Server_Suite_User_Interface.pdf %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, -) -%doc oVirt_Server_Suite_Installation_Guide -%doc oVirt_Server_Suite_Installation_Guide.pdf -%doc Using_the_oVirt_Server_Suite_User_Interface -%doc Using_the_oVirt_Server_Suite_User_Interface.pdf +%{app_root}/oVirt_Server_Suite_Installation_Guide +%{app_root}/oVirt_Server_Suite_Installation_Guide.pdf +%{app_root}/Using_the_oVirt_Server_Suite_User_Interface +%{app_root}/Using_the_oVirt_Server_Suite_User_Interface.pdf %changelog * Thu Sep 18 2008 Perry Myers <pmyers at redhat.com> 0.93-0 -- 1.6.0.3