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 yast2-devtools
18 # libzypp-devel is missing .la requires
19 BuildRequires: ruby-devel
20 Requires: yast2-core >= 2.13.28
22 Summary: Ruby bindings for the YaST platform.
25 The bindings allow YaST modules to be written using the Ruby language and also
26 Ruby scripts can use YaST agents, APIs and modules.
31 %setup -n yast2-ruby-bindings-%{version}
35 cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \
37 -DCMAKE_C_FLAGS="%{optflags}" \
38 -DCMAKE_CXX_FLAGS="%{optflags}" \
39 -DCMAKE_BUILD_TYPE=Release \
40 -DCMAKE_SKIP_RPATH=1 \
42 make %{?jobs:-j %jobs}
46 make install DESTDIR=$RPM_BUILD_ROOT
50 rm -rf "$RPM_BUILD_ROOT"
55 %defattr (-, root, root)
56 %{_libdir}/YaST2/plugin/libpy2lang_ruby.so
57 %{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/yast.so