# # spec file for package yast2-ruby-bindings (Version 0.1) # # norootforbuild Name: yast2-ruby-bindings Version: @VERSION@ Release: 0 License: GPL Group: System/YaST BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: yast2-ruby-bindings-%{version}.tar.bz2 prefix: /usr BuildRequires: swig cmake gcc-c++ libxcrypt-devel yast2-core-devel BuildRequires: yast2-devtools >= 2.16.3 # libzypp-devel is missing .la requires BuildRequires: ruby-devel Requires: yast2-core >= 2.13.28 Requires: ruby Summary: Ruby bindings for the YaST platform. %description The bindings allow YaST modules to be written using the Ruby language and also Ruby scripts can use YaST agents, APIs and modules. Author %prep %setup -n yast2-ruby-bindings-%{version} %build mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \ -DLIB=%{_lib} \ -DCMAKE_C_FLAGS="%{optflags}" \ -DCMAKE_CXX_FLAGS="%{optflags}" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_SKIP_RPATH=1 \ .. make %{?jobs:-j %jobs} %install cd build make install DESTDIR=$RPM_BUILD_ROOT cd .. %clean rm -rf "$RPM_BUILD_ROOT" @CLEAN@ %files %defattr (-, root, root) %{_libdir}/YaST2/plugin/libpy2lang_ruby.so %{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/yast.so