forked from redhataccess/redhat_access_cfme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rubygem-redhat_access_cfme.spec
171 lines (128 loc) · 4.52 KB
/
rubygem-redhat_access_cfme.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
%{?scl:%scl_package rubygem-%{gem_name}}
%{!?scl:%global pkg_name %{name}}
%global gem_name redhat_access_cfme
%global miq_dir /var/www/miq/vmdb
%global miq_bundlerd_dir %miq_dir/bundler.d
%global miq_role_dir %miq_dir/db/fixtures/miq_product_roles
%global miq_feature_dir %miq_dir/db/fixtures/miq_product_features
%global miq_menu_dir %miq_dir/product/menubar
%global rubygem_redhat_access_cfme_dir %{gem_dir}/gems/%{gem_name}-%{version}
Name: %{?scl_prefix}rubygem-%{gem_name}
Version: 1.0.2
Release: 1%{?dist}
Summary: Summary of RedhatAccess
Group: Development/Languages
License: MIT
URL: http://labs-git.usersys.redhat.com/labs/redhat-access-proactive-cfme
Source0: %{gem_name}-%{version}.gem
Requires: %{?scl_prefix}ruby(release)
Requires: %{?scl_prefix}ruby(rubygems)
Requires: %{?scl_prefix}ruby
Requires: %{?scl_prefix}rubygem-redhat_access_lib >= 0.0.6
BuildRequires: %{?scl_prefix}rubygems-devel
BuildRequires: %{?scl_prefix}ruby-devel
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
# BuildRequires: rubygem(sqlite3)
BuildArch: noarch
%description
Description of RedhatAccess.
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep
%{?scl:scl enable %{scl} - << \EOF}
gem unpack %{SOURCE0}
%{?scl:EOF}
%setup -q -D -T -n %{gem_name}-%{version}
%{?scl:scl enable %{scl} - << \EOF}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%{?scl:EOF}
%build
# Create the gem as gem install only works on a gem file
%{?scl:scl enable %{scl} - << \EOF}
gem build %{gem_name}.gemspec
%{?scl:EOF}
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
# by default, so that we can move it into the buildroot in %%install
%{?scl:scl enable %{scl} - << \EOF}
%gem_install
%{?scl:EOF}
%install
mkdir -p %{buildroot}%{miq_dir}
mkdir -p %{buildroot}%{miq_bundlerd_dir}
mkdir -p %{buildroot}%{miq_role_dir}
mkdir -p %{buildroot}%{miq_feature_dir}
mkdir -p %{buildroot}%{miq_menu_dir}
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
cat <<GEMFILE > %{buildroot}%{miq_bundlerd_dir}/%{gem_name}.rb
gem 'redhat_access_cfme'
GEMFILE
# Copy plugin enablement files
cp -pa .%{rubygem_redhat_access_cfme_dir}/deploy/miq_user_roles/* %{buildroot}%{miq_role_dir}
cp -pa .%{rubygem_redhat_access_cfme_dir}/deploy/miq_product_features/* %{buildroot}%{miq_feature_dir}
cp -pa .%{rubygem_redhat_access_cfme_dir}/deploy/menubar/* %{buildroot}%{miq_menu_dir}
# Run the test suite
%check
pushd .%{gem_instdir}
popd
%files
%defattr(-,root,root,-)
%{miq_role_dir}/redhat_access_user_roles.yml
%{miq_feature_dir}/redhat_access_miq_product_features.yml
%{miq_menu_dir}/redhat_access_insights_section.yml
%{miq_menu_dir}/redhat_access_insights_item_rules.yml
%{miq_menu_dir}/redhat_access_insights_item_systems.yml
%{miq_menu_dir}/redhat_access_insights_item_overview.yml
%{miq_bundlerd_dir}/%{gem_name}.rb
%dir %{gem_instdir}
#%{gem_instdir}
%{gem_instdir}/app
%{gem_instdir}/config
%{gem_instdir}/deploy
%{gem_instdir}/ca
%{gem_libdir}
%license %{gem_instdir}/MIT-LICENSE
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%{gem_instdir}/Rakefile
%doc %{gem_instdir}/README.rdoc
%{gem_instdir}/test
%changelog
* Thu Apr 28 2016 Lindani Phiri <lphiri@redhat.com> - 1.0.2-1
- BZ 1329540
* Mon Mar 7 2016 Lindani Phiri <lphiri@redhat.com> - 1.0.1-1
- Resolves BZ 1315459
* Wed Jan 13 2016 Lindani Phiri <lphiri@redhat.com> - 1.0.0-1
- Resolves BZ 1290744
- Resolves BZ 1297880
* Thu Dec 3 2015 Lindani Phiri <lphiri@redhat.com> - 0.0.7-1
- Resolves BZ 1288193
* Mon Nov 23 2015 Lindani Phiri <lphiri@redhat.com> - 0.0.6-1
- Resolves BZ 1282576
* Mon Nov 16 2015 Lindani Phiri <lphiri@redhat.com> - 0.0.5-1
- Refactor portal client
- Move logs to evm.log
* Wed Oct 28 2015 Lindani Phiri <lphiri@redhat.com> - 0.0.4-1
- Beta2 candidate build 2 - Add missing X-CSRF Token for Angularjs Code
* Mon Oct 26 2015 Lindani Phiri <lphiri@redhat.com> - 0.0.3-2
- Beta2 candidate build - rebuild to fix stale rpm (was missing files)
* Mon Oct 26 2015 Lindani Phiri <lphiri@redhat.com> - 0.0.3-1
- Beta2 candidate build
- Resolves 1272337
* Tue Oct 13 2015 Lindani Phiri <lphiri@redhat.com> - 0.0.2-2
- Pre Beta2 Test Build
* Fri Oct 2 2015 Lindani Phiri <lphiri@redhat.com> - 0.0.2-1
- Switch to use of common redhataccess support lib
- First release with usable code
* Fri Sep 18 2015 Lindani Phiri - 0.0.1-2
- Fix miq application appliance location
* Fri Aug 28 2015 Lindani Phiri - 0.0.1-1
- Initial package