1
|
%global gem_name hammer_cli_csv
|
2
|
%global confdir hammer
|
3
|
|
4
|
Summary: CSV input/output command plugin for the Hammer CLI
|
5
|
Name: rubygem-%{gem_name}
|
6
|
Version: 1.0.0
|
7
|
Release: 5%{?dist}
|
8
|
Group: Development/Languages
|
9
|
License: GPLv3
|
10
|
URL: https://github.com/Katello/hammer-cli-csv
|
11
|
Source0: %{gem_name}-%{version}.gem
|
12
|
|
13
|
%if 0%{?rhel} == 6
|
14
|
Requires: ruby(abi)
|
15
|
%else
|
16
|
Requires: ruby(release)
|
17
|
%endif
|
18
|
Requires: ruby(rubygems)
|
19
|
Requires: rubygem(hammer_cli_katello)
|
20
|
BuildRequires: ruby(rubygems)
|
21
|
BuildRequires: rubygems-devel
|
22
|
BuildRequires: ruby
|
23
|
BuildArch: noarch
|
24
|
Provides: rubygem(%{gem_name}) = %{version}
|
25
|
|
26
|
%description
|
27
|
CSV input/output command plugin for the Hammer CLI.
|
28
|
|
29
|
%package doc
|
30
|
Summary: Documentation for %{name}
|
31
|
Group: Documentation
|
32
|
Requires: %{name} = %{version}-%{release}
|
33
|
BuildArch: noarch
|
34
|
|
35
|
%description doc
|
36
|
Documentation for %{name}
|
37
|
|
38
|
%prep
|
39
|
%setup -q -c -T
|
40
|
mkdir -p .%{gem_dir}
|
41
|
gem install --local --install-dir .%{gem_dir} \
|
42
|
--force %{SOURCE0}
|
43
|
|
44
|
%install
|
45
|
mkdir -p %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d
|
46
|
install -m 755 .%{gem_instdir}/config/csv.yml %{buildroot}%{_sysconfdir}/%{confdir}/cli.modules.d/csv.yml
|
47
|
mkdir -p %{buildroot}%{gem_dir}
|
48
|
cp -pa .%{gem_dir}/* \
|
49
|
%{buildroot}%{gem_dir}/
|
50
|
|
51
|
%files
|
52
|
%dir %{gem_instdir}
|
53
|
%{gem_instdir}/lib
|
54
|
%config(noreplace) %{_sysconfdir}/%{confdir}/cli.modules.d/csv.yml
|
55
|
%exclude %{gem_dir}/cache/%{gem_name}-%{version}.gem
|
56
|
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
|
57
|
|
58
|
%files doc
|
59
|
%doc %{gem_dir}/doc/%{gem_name}-%{version}
|
60
|
%doc %{gem_instdir}/config
|
61
|
|
62
|
%changelog
|
63
|
* Thu Mar 05 2015 Eric D. Helms <ericdhelms@gmail.com> 1.0.0-5
|
64
|
- Remove the Fedora check that evaluates to true on EL7 (ericdhelms@gmail.com)
|
65
|
|
66
|
* Thu Mar 05 2015 Eric D. Helms <ericdhelms@gmail.com> 1.0.0-4
|
67
|
- Remove gem_dir definition. (ericdhelms@gmail.com)
|
68
|
|
69
|
* Thu Mar 05 2015 Eric D. Helms <ericdhelms@gmail.com> 1.0.0-3
|
70
|
- Adding default configuration for tags. (ericdhelms@gmail.com)
|
71
|
|
72
|
* Thu Mar 05 2015 Eric D. Helms <ericdhelms@gmail.com> 1.0.0-2
|
73
|
- Adding basic releasers configuration for Koji. (ericdhelms@gmail.com)
|
74
|
- Switch to ReleaseTagger for tito (ericdhelms@gmail.com)
|
75
|
- Require rubygems-devel in all cases. (ericdhelms@gmail.com)
|
76
|
|
77
|
* Thu Mar 05 2015 Eric D. Helms <ericdhelms@gmail.com>
|
78
|
- Require rubygems-devel in all cases. (ericdhelms@gmail.com)
|
79
|
|
80
|
* Wed Mar 04 2015 Adam Price <komidore64@gmail.com> 1.0.0-1
|
81
|
- new package built with tito
|
82
|
|
83
|
* Wed Mar 26 2014 Mike McCune <mmccune@redhat.com> 0.0.1-1
|
84
|
- initial version (mmccune@redhat.com)
|