]> icculus.org git repositories - duncan/yast2-ruby-bindings.git/blob - yast2-ruby-bindings.spec.in
Merge git://git.icculus.org/duncan/yast2-ruby-bindings
[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
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
22 Requires:       ruby
23 Summary:        Ruby bindings for the YaST platform.
24
25 %description
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.
28
29 Author
30
31 %prep
32 %setup -n yast2-ruby-bindings-%{version}
33 %build
34 mkdir build
35 cd build
36 cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \
37       -DLIB=%{_lib} \
38       -DCMAKE_C_FLAGS="%{optflags}" \
39       -DCMAKE_CXX_FLAGS="%{optflags}" \
40       -DCMAKE_BUILD_TYPE=Release \
41       -DCMAKE_SKIP_RPATH=1 \
42       ..
43 make %{?jobs:-j %jobs}
44
45 %install
46 cd build
47 make install DESTDIR=$RPM_BUILD_ROOT
48 cd ..
49
50 %clean
51 rm -rf "$RPM_BUILD_ROOT"
52
53 @CLEAN@
54
55 %files
56 %defattr (-, root, root)
57 %{_libdir}/YaST2/plugin/libpy2lang_ruby.so
58 %{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/yast.so