summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAles Ledvinka <aledvink@redhat.com>2014-04-16 08:38:36 +0200
committerAles Ledvinka <aledvink@redhat.com>2014-04-16 08:38:36 +0200
commit1c74a709395b61bf68f35877ad10b90b21416984 (patch)
treef8a007b201737ea2140afc6c9bddd015010ab68e
parentadf13a8af02dbcb6ea83565e134fe5597a7f8b33 (diff)
parent60e05d5c8a6898864da33d4f182c24e7cfeae07e (diff)
downloadopenlmi-providers-1c74a709395b61bf68f35877ad10b90b21416984.tar.gz
openlmi-providers-1c74a709395b61bf68f35877ad10b90b21416984.tar.xz
openlmi-providers-1c74a709395b61bf68f35877ad10b90b21416984.zip
Merge branch 'master' of https://git.fedorahosted.org/git/openlmi-providers
-rw-r--r--openlmi-providers.spec19
1 files changed, 16 insertions, 3 deletions
diff --git a/openlmi-providers.spec b/openlmi-providers.spec
index 1b5ea25..ed0c91f 100644
--- a/openlmi-providers.spec
+++ b/openlmi-providers.spec
@@ -4,7 +4,7 @@
Name: openlmi-providers
Version: 0.4.2
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Set of basic CIM providers
%if 0%{?suse_version}
@@ -446,6 +446,7 @@ BuildArch: noarch
%description -n openlmi-journald-doc
This package contains the documents for OpenLMI Journald provider.
+%if ! 0%{?rhel}
%package -n openlmi-devassistant
Summary: OpenLMI provider templates for Developer Assistant
BuildArch: noarch
@@ -454,6 +455,7 @@ Requires: %{name}-devel%{?_isa} = %{providers_version_release}
%description -n openlmi-devassistant
This package contains template files for Developer Assistant.
+%endif
%prep
%setup -q
@@ -468,10 +470,16 @@ This package contains template files for Developer Assistant.
mkdir -p %{_target_platform}
pushd %{_target_platform}
+%if ! 0%{?rhel}
+%define _cmake_da -DWITH-DEVASSISTANT=ON
+%else
+%define _cmake_da -DWITH-DEVASSISTANT=OFF
+%endif
+
%if 0%{?suse_version}
-%{cmake} ../.. -DWITH-DEVASSISTANT=ON
+%{cmake} ../.. %{_cmake_da}
%else
-%{cmake} .. -DWITH-DEVASSISTANT=ON
+%{cmake} .. %{_cmake_da}
%endif
popd
@@ -737,10 +745,12 @@ cp -pr tools/openlmitheme/* $RPM_BUILD_ROOT/%{python_sitelib}/sphinx/themes/open
%files -n openlmi-journald-doc
%{_docdir}/%{name}/journald/
+%if ! 0%{?rhel}
%files -n openlmi-devassistant
%dir %{_datadir}/devassistant/files/crt/python/openlmi/
%dir %{_datadir}/devassistant/files/crt/c/openlmi/
%{_datadir}/devassistant/
+%endif
%pre
# If upgrading, deregister old version
@@ -1058,6 +1068,9 @@ if [ "$1" -eq 0 ]; then
fi >> %logfile 2>&1
%changelog
+* Mon Apr 14 2014 Tomas Bzatek <tbzatek@redhat.com> 0.4.2-4
+- Disable the openlmi-devassistant subpackage on rhel
+
* Mon Feb 24 2014 Tomas Bzatek <tbzatek@redhat.com> 0.4.2-3
- Added openlmi-devassistant subpackage