[Ovirt-devel] [PATCH docs] Fix spec file so that these docs are not flagged with %doc
Perry Myers
pmyers at redhat.com
Wed Nov 19 21:04:51 UTC 2008
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
More information about the ovirt-devel
mailing list