summaryrefslogtreecommitdiffstats
path: root/openlmi-providers.spec
diff options
context:
space:
mode:
Diffstat (limited to 'openlmi-providers.spec')
-rw-r--r--openlmi-providers.spec17
1 files changed, 17 insertions, 0 deletions
diff --git a/openlmi-providers.spec b/openlmi-providers.spec
index 31d30f2..79f90b2 100644
--- a/openlmi-providers.spec
+++ b/openlmi-providers.spec
@@ -239,6 +239,15 @@ OpenLMI provides a common infrastructure for the management of Linux systems.
This package installs a core set of OpenLMI providers and necessary
infrastructure packages enabling the system to be managed remotely.
+%package -n python-sphinx-theme-openlmi
+Summary: OpenLMI theme for Sphinx documentation generator
+Requires: python-sphinx
+BuildArch: noarch
+
+%description -n python-sphinx-theme-openlmi
+python-sphinx-theme-openlmi contains Sphinx theme for OpenLMI provider
+documentation.
+
%prep
%setup -q
@@ -309,6 +318,11 @@ mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/%{name}
install -m 755 -d $RPM_BUILD_ROOT/%{_docdir}/%{name}/account/admin_guide
cp -pr src/account/doc/build/html/* $RPM_BUILD_ROOT/%{_docdir}/%{name}/account/admin_guide
+# sphinx theme
+install -m 755 -d $RPM_BUILD_ROOT/%{python_sitelib}/sphinx/themes/openlmitheme
+cp -pr tools/openlmitheme/* $RPM_BUILD_ROOT/%{python_sitelib}/sphinx/themes/openlmitheme/
+
+
%files
%doc README COPYING
%dir %{_datadir}/%{name}
@@ -447,6 +461,9 @@ cp -pr src/account/doc/build/html/* $RPM_BUILD_ROOT/%{_docdir}/%{name}/account/a
%files -n openlmi
+%files -n python-sphinx-theme-openlmi
+%{python_sitelib}/sphinx/themes/openlmitheme/
+
%pre
# If upgrading, deregister old version
if [ "$1" -gt 1 ]; then