forked from Katello/hammer-cli-import
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrubygem-hammer_cli_import.spec
More file actions
95 lines (77 loc) · 2.6 KB
/
rubygem-hammer_cli_import.spec
File metadata and controls
95 lines (77 loc) · 2.6 KB
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
%global gemname hammer_cli_import
%global confdir hammer
%if 0%{?rhel}
%global gem_dir /usr/lib/ruby/gems/1.8
%endif
%global geminstdir %{gem_dir}/gems/%{gemname}-%{version}
Name: rubygem-%{gemname}
Version: 0.7.2
Release: 1%{?dist}
Summary: Sat5-import command plugin for the Hammer CLI
Group: Development/Languages
License: GPLv3
URL: https://github.com/Katello/hammer-cli-import
Source0: %{gemname}-%{version}.gem
Source1: import.yml
Source2: role_map.yml
%if 0%{?rhel} > 6 || 0%{?fedora} > 18
Requires: ruby(release)
%else
Requires: ruby(abi)
%endif
Requires: ruby(rubygems)
Requires: rubygem(hammer_cli)
BuildRequires: ruby(rubygems)
%if 0%{?fedora}
BuildRequires: rubygems-devel
%endif
BuildRequires: ruby
BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version}
%description
Sat5-import plugin for the Hammer CLI
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}
%prep
%setup -q -c -T
mkdir -p .%{gem_dir}
gem install --local --install-dir .%{gem_dir} \
--force %{SOURCE0}
%install
mkdir -p %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d
install -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d/import.yml
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d/role_map.yml
mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%files
%dir %{geminstdir}
%{geminstdir}/
%config(noreplace) %{_sysconfdir}/%{confdir}/cli.modules.d/import.yml
%config(noreplace) %{_sysconfdir}/%{confdir}/cli.modules.d/role_map.yml
%exclude %{gem_dir}/cache/%{gemname}-%{version}.gem
%{gem_dir}/specifications/%{gemname}-%{version}.gemspec
%files doc
%doc %{gem_dir}/doc/%{gemname}-%{version}
%changelog
* Tue Jun 24 2014 Grant Gainey 0.7.2-1
- Subcommand and option name-chgs in response to comments (ggainey@redhat.com)
* Mon Jun 23 2014 Grant Gainey 0.7.1-1
- Update to 0.7.0 (ggainey@redhat.com)
* Mon Jun 23 2014 Grant Gainey 0.6.2-1
- Add some more documentation (mkollar@redhat.com)
- Some sanity checking (mkollar@redhat.com)
- Added some documentation (mkollar@redhat.com)
- let's build rubygem-hammer_cli_import to katello-nightly-rhel6 tag
(tlestach@redhat.com)
* Thu Jun 19 2014 Grant Gainey 0.6.1-1
- * Look for the default repository-map where the gem puts it * Clarify the
output when we decide to enable a repo (ggainey@redhat.com)
- let git ignore .swp files (tlestach@redhat.com)
* Thu Jun 19 2014 Tomas Lestach <tlestach@redhat.com> 0.6.0-1
- initial hammer-cli-import tag