-
Notifications
You must be signed in to change notification settings - Fork 5
/
rubygem-cobbler.spec
107 lines (82 loc) · 3.44 KB
/
rubygem-cobbler.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Generated from cobbler-0.0.1.gem by gem2rpm -*- rpm-spec -*-
%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname cobbler
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
%define installroot %{buildroot}%{geminstdir}
Summary: An interface for interacting with a Cobbler server
Name: rubygem-%{gemname}
Version: 2.0.2
Release: 1%{?dist}
Group: Development/Languages
License: LGPLv2+
URL: https://github.com/duritong/ruby-cobbler
Source0: https://rubygems.org/downloads/%{gemname}-%{version}.gem
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: rubygems
BuildRequires: ruby-flexmock
BuildRequires: rubygems
BuildRequires: rubygem-rake
BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version}
%description
Provides Ruby bindings to interact with a Cobbler server.
%prep
%build
%check
cd %{installroot}
rake test
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir}
gem install --local --install-dir %{buildroot}%{gemdir} --force %{SOURCE0}
chmod +x %{installroot}/examples/*.rb
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root, -)
%{gemdir}/gems/%{gemname}-%{version}/
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
%doc %{geminstdir}/COPYING
%doc %{geminstdir}/NEWS
%doc %{geminstdir}/README
%{geminstdir}/config/cobbler.yml
%changelog
* Fri Jun 27 2014 duritong <[email protected]> - 2.0.2-1
- Fix various problems and add copy support as well as a possibility
to store ks_meta
* Thu May 08 2014 duritong <[email protected]> - 2.0.1-1
- Fix #1 - should not depend on active_support
* Thu Jan 05 2012 duritong <[email protected]> - 2.0.0-1
- Fix all issues when API returns ~ on a nonexisting system
- Add some missing fields to the System model
- Remove unnecessary object abstraction for interfaces
- Fix storing of interfaces
- Rework connection handling
- Rewrite to enable capabilities for all items and to work against 2.0
* Mon Sep 08 2008 Darryl Pierce <[email protected]> - 0.1.0-1
- First official build for Fedora.
* Fri Sep 05 2008 Darryl Pierce <[email protected]> - 0.0.2-4
- Bad BuildRequires slipped into the last version.
* Wed Sep 03 2008 Darryl Pierce <[email protected]> - 0.0.2-3
- Added a build requirement for rubygem-rake.
* Tue Aug 26 2008 Darryl Pierce <[email protected]> - 0.0.2-2
- Fixed the licensing in each source module to show the code is released under
LGPLv2.1.
- Added %check to the spec file to run tests prior to creating the RPM.
* Thu Aug 21 2008 Darryl Pierce <[email protected]> - 0.0.2-1
- Added a call to update prior to saving or updating a system. If the update
fails, then an Exception is raised.
* Wed Aug 13 2008 Darryl Pierce <[email protected]> - 0.0.1-3
- Added caching for the auth_token to prevent extraneous calls to login.
- Reworked and refined how cobbler_collection fields are processed, adding
support for both array and has properties.
- Rewrote the documentation for Cobbler::Base to make it easier to understand
how to extend it to support other Cobbler types.
- Refactored the examples to clean up the code.
* Wed Aug 13 2008 Darryl Pierce <[email protected]> - 0.0.1-2
- Removed markup of cobbler.yml and a config file. Fixed a few small bugs
in the code for using it as a gem.
* Mon Aug 04 2008 Darryl Pierce <[email protected]> - 0.0.1-1
- Initial package