[packages/openwsman] add with ruby bcond
glen
glen at pld-linux.org
Sun Aug 10 21:17:57 CEST 2014
commit d59a0e35e1b10935c229871c74aff43034f488d4
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Aug 10 22:17:48 2014 +0300
add with ruby bcond
openwsman.spec | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/openwsman.spec b/openwsman.spec
index 0f0891d..61dd840 100644
--- a/openwsman.spec
+++ b/openwsman.spec
@@ -5,7 +5,6 @@
#OPTION( BUILD_LIBCIM "Build CIM plugin" YES )
#OPTION( BUILD_EXAMPLES "Build examples" YES )
#OPTION( BUILD_PYTHON "Build Python bindings" YES )
-#OPTION( BUILD_RUBY "Build Ruby bindings" YES )
#OPTION( BUILD_PERL "Build Perl bindings" YES )
#OPTION( BUILD_CSHARP "Build C# bindings" YES)
#OPTION( BUILD_CUNIT_TESTS "Build serialization tests" NO )
@@ -18,6 +17,7 @@
#
# Conditional build:
%bcond_without java # build without Java bindings
+%bcond_without ruby # build without Ruby bindings
Summary: Implementation of the Web Services Management specification (WS-Management)
Summary(pl.UTF-8): Implementacja specyfikacji Web Services Management (WS-Management)
@@ -165,13 +165,14 @@ Wiązania języka Ruby do bibliotek openwsman.
install -d build
cd build
%cmake .. \
- -DPACKAGE_ARCHITECTURE=%{_target_cpu} \
- -DRUBY_HAS_VENDOR_RUBY:BOOL=ON \
%if %{with java}
-DJAVA_INCLUDE_PATH=%{java_home}/include \
%else
-DBUILD_JAVA=NO \
%endif
+ -DBUILD_RUBY=%{!?with_ruby:NO}%{?with_ruby:YES} \
+ -DRUBY_HAS_VENDOR_RUBY:BOOL=ON \
+ -DPACKAGE_ARCHITECTURE=%{_target_cpu} \
%install
rm -rf $RPM_BUILD_ROOT
@@ -247,8 +248,10 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{py_sitedir}/_pywsman.so
%{py_sitedir}/pywsman.py[co]
+%if %{with ruby}
%files -n ruby-openwsman
%defattr(644,root,root,755)
%attr(755,root,root) %{ruby_vendorarchdir}/openwsman.so
%{ruby_vendorlibdir}/openwsmanplugin.rb
%{ruby_vendorlibdir}/openwsman
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/openwsman.git/commitdiff/d59a0e35e1b10935c229871c74aff43034f488d4
More information about the pld-cvs-commit
mailing list