4 # spec file for package yast2-ruby-bindings (Version 0.1)
8 Name: yast2-ruby-bindings
13 BuildRoot: %{_tmppath}/%{name}-%{version}-build
14 Source0: yast2-ruby-bindings-%{version}.tar.bz2
17 BuildRequires: swig cmake gcc-c++ libxcrypt-devel yast2-core-devel
18 BuildRequires: yast2-devtools >= 2.16.3
19 # libzypp-devel is missing .la requires
20 BuildRequires: ruby-devel
21 Requires: yast2-core >= 2.13.28
23 Summary: Ruby bindings for the YaST platform.
26 The bindings allow YaST modules to be written using the Ruby language and also
27 Ruby scripts can use YaST agents, APIs and modules.
32 %setup -n yast2-ruby-bindings-%{version}
36 cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \
38 -DCMAKE_C_FLAGS="%{optflags}" \
39 -DCMAKE_CXX_FLAGS="%{optflags}" \
40 -DCMAKE_BUILD_TYPE=Release \
41 -DCMAKE_SKIP_RPATH=1 \
43 make %{?jobs:-j %jobs}
47 make install DESTDIR=$RPM_BUILD_ROOT
51 rm -rf "$RPM_BUILD_ROOT"
56 %defattr (-, root, root)
57 %{_libdir}/YaST2/plugin/libpy2lang_ruby.so
58 %{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/yast.so