-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathruby-wbem.spec
54 lines (40 loc) · 1.32 KB
/
ruby-wbem.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
%{!?ruby_sitelib: %define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")}
Summary: RubyWBEM is a pure-Ruby library for performing operations using the WBEM management protocol
Name: ruby-wbem
Version: 0.2
Release: 1
License: GPL
Group: Systems Management/Base
URL: http://rubyforge.org/projects/rubywbem
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArchitectures: noarch
Requires: ruby >= 1.8.1
Requires: ruby(abi) = 1.8
BuildRequires: ruby >= 1.8.1
BuildRequires: ruby-devel
Provides: ruby(wbem)
%description
RubyWBEM is a pure-Ruby library for performing CIM operations over
HTTP using the WBEM management protocol. RubyWBEM originated as a
direct port of pyWbem (http://pywbem.sourceforge.net).
%prep
%setup -q
%build
%install
rm -rf $RPM_BUILD_ROOT
mkdir %{buildroot}
%{__install} -d -m0755 %{buildroot}%{ruby_sitelib}
%{__install} -d -m0755 %{buildroot}%{ruby_sitelib}/wbem
%{__install} -p -m0644 lib/wbem/*.rb %{buildroot}%{ruby_sitelib}/wbem
%{__install} -p -m0644 lib/wbem.rb %{buildroot}%{ruby_sitelib}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{ruby_sitelib}/wbem
%{ruby_sitelib}/wbem.rb
%doc AUTHORS CHANGELOG LICENSE README
%changelog
* Wed Sep 20 2006 <sseago@localhost.localdomain> -
- Initial build.