File yast2-ruby-bindings.spec of Package yast2-ruby-bindings
#
# spec file for package yast2-ruby-bindings (Version 0.3.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: yast2-ruby-bindings
Version: 0.3.2
Release: 2
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: yast2-ruby-bindings-%{version}.tar.bz2
Prefix: /usr
BuildRequires: cmake gcc-c++ libxcrypt-devel swig yast2-core-devel
BuildRequires: yast2-devtools >= 2.16.3
# libzypp-devel is missing .la requires
BuildRequires: ruby-devel
Requires: yast2-core >= 2.16.37
BuildRequires: yast2-ycp-ui-bindings-devel >= 2.16.37
Requires: yast2-ycp-ui-bindings >= 2.16.37
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.
%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"
%files
%defattr (-, root, root)
%{_libdir}/YaST2/plugin/libpy2lang_ruby.so
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/ycp.rb
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/ycpx.so
%changelog
* Tue May 06 2008 aj@suse.de
- Fix spec file for last change.
* Wed Apr 16 2008 dmacvicar@suse.de
- find yast pugins without requiring LD_LIBRARY_PATH
(bnc #353405)
- require 'yast' is now require 'ycp'
- misc. fixes
- 0.3.2
* Thu Feb 21 2008 sh@suse.de
- Added new UI packages to Requires/BuildRequires in .spec file
- V 0.3.1
* Wed Feb 20 2008 coolo@suse.de
- fix against latest yast2-core
* Wed Sep 19 2007 dmacvicar@suse.de
- Lot of improvements, examples and
support for the YaST UI
- 0.2.0
* Thu Aug 09 2007 dmacvicar@suse.de
- Fix build on 64 bits
- Use ruby vendor arch dir
* Mon Aug 06 2007 dmacvicar@suse.de
- Initial release 0.1.0