1
1
# template: foreman_plugin
2
- %{?scl:%scl_package rubygem-%{gem_name }}
3
- %{! ?scl:%global pkg_name %{name }}
4
-
5
2
%global gem_name foreman_dhcp_browser
6
3
%global plugin_name dhcp_browser
7
- %global foreman_min_version 1.12 .0
4
+ %global foreman_min_version 3.14 .0
8
5
9
6
Summary: DHCP browser plugin for Foreman
10
- Name: %{? scl_prefix } rubygem-%{gem_name }
11
- Version: 0.0.8
12
- Release: 6 %{?foremandist }%{?dist }
7
+ Name: rubygem-%{gem_name }
8
+ Version: 0.1.1
9
+ Release: 1 %{?foremandist }%{?dist }
13
10
Group: Applications/Systems
14
11
License: GPLv3
15
12
URL: https://github.com/theforeman/foreman_dhcp_browser
16
13
Source0: https://rubygems.org/gems/%{gem_name }-%{version }.gem
17
14
18
15
# start specfile generated dependencies
19
16
Requires: foreman >= %{foreman_min_version }
20
- Requires: %{?scl_prefix_ruby }ruby(release)
21
- Requires: %{?scl_prefix_ruby }ruby
22
- Requires: %{?scl_prefix_ruby }ruby(rubygems)
23
- Requires: %{?scl_prefix }rubygem(deface)
24
17
BuildRequires: foreman-plugin >= %{foreman_min_version }
25
- BuildRequires: %{? scl_prefix_ruby } ruby(release)
26
- BuildRequires: %{? scl_prefix_ruby } ruby
27
- BuildRequires: %{? scl_prefix_ruby } rubygems-devel
18
+ Requires: ruby
19
+ BuildRequires: ruby
20
+ BuildRequires: rubygems-devel
28
21
BuildArch: noarch
29
- Provides: %{?scl_prefix }rubygem(%{gem_name }) = %{version }
30
- Provides: foreman-plugin-%{plugin_name }
22
+ Provides: foreman-plugin-%{plugin_name } = %{version }
31
23
# end specfile generated dependencies
32
24
Provides: foreman-plugin-dhcp-browser
33
- %{?scl:Obsoletes: ruby193-rubygem-%{gem_name }}
34
25
35
26
%description
36
27
Plugin for Foreman to browse and add/edit/delete DHCP leases independent of
@@ -40,35 +31,26 @@ Foreman's host creation.
40
31
%package doc
41
32
BuildArch: noarch
42
33
Group: Documentation
43
- Requires: %{?scl_prefix }%{pkg_name } = %{version }-%{release }
44
- %{?scl:Obsoletes: ruby193-rubygem-%{gem_name }-doc}
34
+ Requires: %{pkg_name } = %{version }-%{release }
45
35
Summary: Documentation for %{pkg_name }
46
36
47
37
%description doc
48
38
Documentation for %{pkg_name }.
49
39
50
40
%prep
51
- %{? scl:scl enable %{scl } - << \EOF}
52
41
gem unpack %{SOURCE0 }
53
- %{?scl:EOF}
54
42
55
43
%setup -q -D -T -n %{gem_name }-%{version }
56
44
57
- %{?scl:scl enable %{scl} - << \EOF}
58
45
gem spec %{SOURCE0 } -l --ruby > %{gem_name }.gemspec
59
- %{?scl:EOF}
60
46
61
47
%build
62
48
# Create the gem as gem install only works on a gem file
63
- %{?scl:scl enable %{scl} - << \EOF}
64
49
gem build %{gem_name }.gemspec
65
- %{?scl:EOF}
66
50
67
51
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
68
52
# by default, so that we can move it into the buildroot in %%install
69
- %{?scl:scl enable %{scl} - << \EOF}
70
53
%gem_install
71
- %{?scl:EOF}
72
54
73
55
%install
74
56
mkdir -p %{buildroot }%{gem_dir }
@@ -96,6 +78,9 @@ cp -pa .%{gem_dir}/* \
96
78
%{foreman_plugin_log }
97
79
98
80
%changelog
81
+ * Fri Jan 24 2025 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 0.1.1-1
82
+ - Update to 0.1.1
83
+
99
84
* Mon May 09 2022 Evgeni Golov - 0.0.8-6
100
85
- log plugin installation in posttrans
101
86
0 commit comments