diff options
-rw-r--r-- | openlmi-providers.spec | 41 |
1 files changed, 26 insertions, 15 deletions
diff --git a/openlmi-providers.spec b/openlmi-providers.spec index 282b733..a76f6f4 100644 --- a/openlmi-providers.spec +++ b/openlmi-providers.spec @@ -3,7 +3,7 @@ Name: openlmi-providers Version: 0.4.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Set of basic CIM providers License: LGPLv2+ @@ -25,7 +25,7 @@ BuildRequires: lm_sensors-devel # For openlmi-account BuildRequires: libuser-devel BuildRequires: python2-devel -# for openlmi-account-doc +# for openlmi-*-doc packages BuildRequires: konkretcmpi-python >= %{required_konkret_ver} BuildRequires: python-sphinx # For openlmi-hardware @@ -77,6 +77,13 @@ Obsoletes: cura-fan < 0.0.10-1 %description -n openlmi-fan %{summary}. +%package -n openlmi-fan-doc +Summary: CIM fan provider documentation +Group: Documentation +BuildArch: noarch + +%description -n openlmi-fan-doc +This package contains the documents for OpenLMI fan provider. %package -n openlmi-powermanagement Summary: Power management CIM provider @@ -317,11 +324,10 @@ pushd src/pcp popd # documentation -make -C src/account/doc html +for provider in account fan logicalfile realmd service-dbus; do + make -C src/${provider}/doc html +done make -C src/software/doc/admin html -make -C src/realmd/doc html -make -C src/service-dbus/doc html -make -C src/logicalfile/doc html %install make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} @@ -368,17 +374,16 @@ touch $RPM_BUILD_ROOT/%{_localstatedir}/lib/%{name}/60_LMI_PCP_PMNS.reg touch $RPM_BUILD_ROOT/%{_localstatedir}/lib/%{name}/stamp # documentation -install -m 755 -d $RPM_BUILD_ROOT/%{_docdir}/%{name}/account/admin_guide -cp README COPYING $RPM_BUILD_ROOT/%{_docdir}/%{name} -cp -pr src/account/doc/build/html/* $RPM_BUILD_ROOT/%{_docdir}/%{name}/account/admin_guide -install -m 755 -d $RPM_BUILD_ROOT/%{_docdir}/%{name}/software/admin_guide -cp -pr src/software/doc/admin/build/html/* $RPM_BUILD_ROOT/%{_docdir}/%{name}/software/admin_guide -install -m 755 -d $RPM_BUILD_ROOT/%{_docdir}/%{name}/realmd/admin_guide -cp -pr src/realmd/doc/build/html/* $RPM_BUILD_ROOT/%{_docdir}/%{name}/realmd/admin_guide +install -m 755 -d $RPM_BUILD_ROOT/%{_docdir}/%{name} +install -m 644 README COPYING $RPM_BUILD_ROOT/%{_docdir}/%{name} +for provider in account fan logicalfile realmd; do + install -m 755 -d $RPM_BUILD_ROOT/%{_docdir}/%{name}/${provider}/admin_guide + cp -pr src/${provider}/doc/build/html/* $RPM_BUILD_ROOT/%{_docdir}/%{name}/${provider}/admin_guide +done install -m 755 -d $RPM_BUILD_ROOT/%{_docdir}/%{name}/service/admin_guide cp -pr src/service-dbus/doc/build/html/* $RPM_BUILD_ROOT/%{_docdir}/%{name}/service/admin_guide -install -m 755 -d $RPM_BUILD_ROOT/%{_docdir}/%{name}/logicalfile/admin_guide -cp -pr src/logicalfile/doc/build/html/* $RPM_BUILD_ROOT/%{_docdir}/%{name}/logicalfile/admin_guide +install -m 755 -d $RPM_BUILD_ROOT/%{_docdir}/%{name}/software/admin_guide +cp -pr src/software/doc/admin/build/html/* $RPM_BUILD_ROOT/%{_docdir}/%{name}/software/admin_guide # sphinx theme install -m 755 -d $RPM_BUILD_ROOT/%{python_sitelib}/sphinx/themes/openlmitheme @@ -421,6 +426,9 @@ cp -pr tools/openlmitheme/* $RPM_BUILD_ROOT/%{python_sitelib}/sphinx/themes/open %{_datadir}/%{name}/90_LMI_Fan_Profile.mof %attr(755, root, root) %{_libexecdir}/pegasus/cmpiLMI_Fan-cimprovagt +%files -n openlmi-fan-doc +%{_docdir}/%{name}/fan/ + %files -n openlmi-powermanagement %doc README COPYING %{_libdir}/cmpi/libcmpiLMI_PowerManagement.so @@ -869,6 +877,9 @@ if [ "$1" -eq 0 ]; then fi >> %logfile 2>&1 %changelog +* Thu Oct 17 2013 Michal Minar <miminar@redhat.com> 0.4.0-2 +- Added documentation package for fan provider. + * Tue Oct 15 2013 Tomas Bzatek <tbzatek@redhat.com> 0.4.0-1 - Version 0.4.0 - New journald provider |