]> icculus.org git repositories - duncan/yast2-ruby-bindings.git/blob - yast2-ruby-bindings.spec.in
- update to new syntax
[duncan/yast2-ruby-bindings.git] / yast2-ruby-bindings.spec.in
1
2
3 #
4 # spec file for package yast2-ruby-bindings (Version 0.1)
5 #
6 # norootforbuild
7
8 Name:           yast2-ruby-bindings
9 Version:        @VERSION@
10 Release:        0
11 License:        GPL
12 Group:          System/YaST
13 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
14 Source0:        yast2-ruby-bindings-%{version}.tar.bz2
15 prefix:         /usr
16
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
21 Requires:       ruby
22 Summary:        Ruby bindings for the YaST platform.
23
24 %description
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.
27
28 Author
29
30 %prep
31 %setup -n yast2-ruby-bindings-%{version}
32 %build
33 mkdir build
34 cd build
35 cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \
36       -DLIB=%{_lib} \
37       -DCMAKE_C_FLAGS="%{optflags}" \
38       -DCMAKE_CXX_FLAGS="%{optflags}" \
39       -DCMAKE_BUILD_TYPE=Release \
40       -DCMAKE_SKIP_RPATH=1 \
41       ..
42 make %{?jobs:-j %jobs}
43
44 %install
45 cd build
46 make install DESTDIR=$RPM_BUILD_ROOT
47 cd ..
48
49 %clean
50 rm -rf "$RPM_BUILD_ROOT"
51
52 @CLEAN@
53
54 %files
55 %defattr (-, root, root)
56 %{_libdir}/YaST2/plugin/libpy2lang_ruby.so
57 %{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/yast.so