summaryrefslogtreecommitdiffstats
path: root/openlmi-providers.spec
diff options
context:
space:
mode:
authorJan Safranek <jsafrane@redhat.com>2013-10-02 10:42:35 +0200
committerJan Safranek <jsafrane@redhat.com>2013-10-02 10:42:35 +0200
commitc1f06a0b8745c2859c6f09789fd5965d87579c63 (patch)
tree58f9b21cb801578b4bebda59ed81a2a4965848c1 /openlmi-providers.spec
parenta37dff6a40bff57df67d084e8b7bcce0ede78242 (diff)
downloadopenlmi-providers-c1f06a0b8745c2859c6f09789fd5965d87579c63.tar.gz
openlmi-providers-c1f06a0b8745c2859c6f09789fd5965d87579c63.tar.xz
openlmi-providers-c1f06a0b8745c2859c6f09789fd5965d87579c63.zip
Add OpenLMI theme for Sphinx.
Note that the theme is BSD-licensed.
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