summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2014-06-25 15:09:48 +0200
committerMichal Minar <miminar@redhat.com>2014-06-25 15:17:56 +0200
commitf434f50b3d65cdb1de7b87059773b652ae43f72f (patch)
tree31e479e23acd78b7b7418117f52c4f9a9697a920
parent716e800bd323501096b8fe718dc8e09c627683eb (diff)
downloadopenlmi-providers-f434f50b3d65cdb1de7b87059773b652ae43f72f.tar.gz
openlmi-providers-f434f50b3d65cdb1de7b87059773b652ae43f72f.tar.xz
openlmi-providers-f434f50b3d65cdb1de7b87059773b652ae43f72f.zip
spec: install jobmanager
-rw-r--r--openlmi-providers.spec46
1 files changed, 45 insertions, 1 deletions
diff --git a/openlmi-providers.spec b/openlmi-providers.spec
index a28c2a3..6c485ba 100644
--- a/openlmi-providers.spec
+++ b/openlmi-providers.spec
@@ -21,6 +21,7 @@
%global with_fan 1
%global with_locale 1
%global with_indsender 1
+%global with_jobmanager 1
%if 0%{?rhel} == 6
%global with_journald 0
@@ -31,6 +32,7 @@
%global with_fan 0
%global with_locale 0
%global with_indsender 0
+%global with_jobmanager 0
%global interop root/PG_InterOp
%endif
@@ -40,7 +42,7 @@
Name: openlmi-providers
Version: 0.4.2
-Release: 14%{?dist}
+Release: 15%{?dist}
Summary: Set of basic CIM providers
%if 0%{?suse_version}
@@ -433,6 +435,23 @@ Requires: openlmi-indicationsender-libs%{_isa} = %{providers_version_relea
%{summary}.
%endif
+%if 0%{?with_jobmanager}
+%package -n openlmi-jobmanager-libs
+Summary: Libraries for job manager
+Requires: %{name}%{?_isa} = %{providers_version_release}
+
+%description -n openlmi-jobmanager-libs
+%{summary}.
+
+%package -n openlmi-jobmanager-libs-devel
+Summary: Development files for openlmi-jobmanager-libs
+Requires: %{name}%{?_isa} = %{providers_version_release}
+Requires: openlmi-jobmanager-libs%{_isa} = %{providers_version_release}
+
+%description -n openlmi-jobmanager-libs-devel
+%{summary}.
+%endif
+
%if 0%{?with_pcp}
%package -n openlmi-pcp
Summary: pywbem providers for accessing PCP metrics
@@ -595,6 +614,9 @@ pushd %{_target_platform}
%if ! 0%{with_indsender}
-DWITH-INDSENDER=OFF \
%endif
+%if ! 0%{with_jobmanager}
+ -DWITH-JOBMANAGER=OFF \
+%endif
%{source_dir}
popd
@@ -900,6 +922,19 @@ cp -pr tools/openlmitheme/* $RPM_BUILD_ROOT/%{python_sitelib}/sphinx/themes/open
%{_includedir}/openlmi/ind_sender.h
%endif
+%if 0%{?with_jobmanager}
+%files -n openlmi-jobmanager-libs
+%doc COPYING
+%{_libdir}/libopenlmijobmanager.so.*
+
+%files -n openlmi-jobmanager-libs-devel
+%doc COPYING
+%{_libdir}/libopenlmijobmanager.so
+%{_libdir}/pkgconfig/openlmijobmanager.pc
+%{_includedir}/openlmi/job_manager.h
+%{_includedir}/openlmi/lmi_job.h
+%endif
+
%files -n openlmi
%doc COPYING README
@@ -977,6 +1012,11 @@ fi >> %logfile 2>&1
%postun -n openlmi-indicationsender-libs -p /sbin/ldconfig
%endif
+%if 0%{?with_jobmanager}
+%post -n openlmi-jobmanager-libs -p /sbin/ldconfig
+%postun -n openlmi-jobmanager-libs -p /sbin/ldconfig
+%endif
+
%if 0%{with_fan}
%pre -n openlmi-fan
# If upgrading, deregister old version
@@ -1346,6 +1386,10 @@ fi >> %logfile 2>&1
%endif
%changelog
+* Wed Jun 25 2014 Michal Minar <miminar@redhat.com> 0.4.2-15
+- Added openlmi-jobmanager-libs subpackage
+- Added openlmi-jobmanager-libs-devel subpackage
+
* Fri Jun 20 2014 Michal Minar <miminar@redhat.com> 0.4.2-14
- Added openlmi-indicationsender-libs subpackage
- Added openlmi-indicationsender-libs-devel subpackage