File obs-server-2.9-0012-dist-Make-obs-devel-doc-location-configutrable.patch of Package obs-server

From e2a9f789d47bcffd2f552088fd6519cf963554da Mon Sep 17 00:00:00 2001
From: Oleg Girko <ol@infoserver.lv>
Date: Tue, 28 Jun 2016 19:58:22 +0100
Subject: [PATCH] [dist] Make obs-devel doc location configutrable.

This change introduces OBS_DEVEL_DOC_DIR configuration variable
that specifies location of obs-devel doc.

Signed-off-by: Oleg Girko <ol@infoserver.lv>
---
 Makefile.include | 1 +
 dist/Makefile    | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile.include b/Makefile.include
index 6725715dbf..36c1a5a7e4 100644
--- a/Makefile.include
+++ b/Makefile.include
@@ -10,6 +10,7 @@ OBS_API_PREFIX=$(OBS_DOCUMENT_ROOT)/api
 OBS_APIDOCS_PREFIX=$(OBS_DOCUMENT_ROOT)/docs
 OBS_FILLUP_DIR=/var/adm/fillup-templates
 OBS_FILLUP_FILE=sysconfig.obs-server
+OBS_DEVEL_DOC_DIR=/usr/share/doc/packages/obs-devel
 
 # TODO: find fix for RH in spec/Makefile
 # This here is preparation for multi distro support
diff --git a/dist/Makefile b/dist/Makefile
index 664c4d8921..4a760266eb 100644
--- a/dist/Makefile
+++ b/dist/Makefile
@@ -92,12 +92,12 @@ system_dirs:
 	$(INSTALL) -d -m 755 $(DESTDIR)$(BINDIR)/
 	$(INSTALL) -d -m 755 $(DESTDIR)$(SBINDIR)/
 	$(INSTALL) -d -m 755 $(DESTDIR)$(OBS_FILLUP_DIR)
-	$(INSTALL) -d -m 755 $(DESTDIR)/usr/share/doc/packages/obs-devel
+	$(INSTALL) -d -m 755 $(DESTDIR)$(OBS_DEVEL_DOC_DIR)
 	$(INSTALL) -d -m 755 $(DESTDIR)/usr/lib/obs/tests/appliance
 	$(INSTALL) -d -m 755 $(DESTDIR)$(UNITDIR)
 
 install_devel_docs:
-	$(INSTALL) -m 644 README.devel $(DESTDIR)/usr/share/doc/packages/obs-devel/README.devel
+	$(INSTALL) -m 644 README.devel $(DESTDIR)$(OBS_DEVEL_DOC_DIR)/README.devel
 
 install_overview:
 	$(INSTALL) -d -m 755 $(DESTDIR)$(OBS_DOCUMENT_ROOT)/overview
-- 
2.20.1